w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
JBoss 7 stops responding
If your JBoss were not listening at 8080, you wouldn't receive a blank page, but a connection error from your browser. And if your application works fine without changing anything in deployment folder after restarting the application, then your application package is correct, but was not deployed/initialized correctly. Are you using a WAR file or exploded deployment? It may be the case, that your hot deployment does not work correctly. I would suggest to use the "restart application" button in eclipse (starts only the application again within JBoss, but not the JBoss itself) after a deploy - at least I experienced a similar behaviour when trying to hot-deploy from within eclipse.

Categories : Java

WPF GUI stops responding as some functions are called in loop
You could Thread or use Async, but its hard to tell if you are touching any UI in your code Thread: private void Button_Click_1(object sender, RoutedEventArgs e) { ThreadPool.QueueUserWorkItem((o) => { pipeline = new MyPipeline(); if (isRunning) { isRunning = false; pipeline.PauseFaceLocation(true); pipeline.Close(); } else { isRunning = true; pipeline.LoopFrames(); } }); } Async private async void Button_Click_1(object sender, RoutedEventArgs e) { await Task.Factory.StartNew(() => { p

Categories : C#

JQuery stops responding after sorting the first time
I don't think your code does what you think it does. You activate the onchange of <select name="typeselector" onchange="showUser(this.value)"> The onchange is sending a GET request using XMLHttpRequest The request is sent to "getSubject.php?q="+str The "response" you are sending back is an entire HTML webpage (<html>...content...</html>) You're then attempting to insert this response into the DIV on the first page using document.getElementById("subjtable").innerHTML=xmlhttp.responseText; Essentially, you're trying to stick a webpage within another webpage. To give you the right direction, change getSubject.php to only be the following, and test it out then: <table id="tablesorter-demo" class="tablesorter" border="1" cellpadding="0" cellspacing="1">

Categories : PHP

Dynamicaly created SerialPort stops responding with no error
It might be that the SerialPort objects get disposed. Try to add every new object to the list: class Class { List<SerialPort> ports = new List<SerialPort>(); private void AddSerialPort(string portName) { ... var sp = new SerialPort(portName, 115200, Parity.None, 8, StopBits.One); ports.Add(sp); ... } }

Categories : C#

Program stops responding after a class member function?
~tower() { int *r = &no; delete r; // <- this is wrong delete [] levels; } You didn't allocate separate space for int no, so you shouldn't be deleting it. The memory for it is included in the memory for the tower object itself, it'll be freed when the tower is freed, you don't have to worry about it. When the print function returns, the two tower objects two and three will be destroyed and their destructors will be called. When they try to delete a pointer to no, which they didn't allocate, your program will incur in undefined behaviour, meaning that anything can happen at that point. Luckily, all that happened to you was that the program crashed, but I've seen worse things happen... http://xkcd.com/292/ Also note that there might still be other problems with your destru

Categories : C++

mysql database stops responding on cloud ec2 in some time
Solved ! Adding the swap page solved ! here is the link you need to go for :- http://www.prowebdev.us/2012/05/amazon-ec2-linux-micro-swap-space.html

Categories : Amazon

UITabBarController not responding
Your tabbar controller might be behind something else on the bottom of the screen. You can test it with code: [self.view bringSubviewToFront: tabctrl] If this fixes your problem, try to find which view is in front of your tabbar controller

Categories : IOS

setOnClickListener not responding
Try moving your listener outside of the AsyncTask. Make it a member variable and initialize it in onCreate() public class List extends ListActivity { ListView lv; ArrayList<HashMap<String, String>> questionList; ... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.listview); questionList = new ArrayList<HashMap<String, String>>(); lv = getListView(); lv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { String Subject = ((TextView) findViewById(R.id.Subject)).getText().toString(); Str

Categories : Android

setOnKeyListener not responding
You could try using a OnEditorActionListener instead: http://developer.android.com/reference/android/widget/TextView.html#setOnEditorActionListener(android.widget.TextView.OnEditorActionListener) You could set on the edittext in XML: android:imeOptions="actionDone" and then in code: myEditText.setOnEditorActionListener( new EditText.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_DONE) { // your action here } } } )};

Categories : Android

SwingWorker not responding
comments @kleopatra that's a documentation bug, fixed in jdk7 at least :-), please which of JDKs those bugs are shown as from carousel ...., wait/notify is for thread, SwingWorker is Future, very bad implemented, means without notifiers, you put something to the tube and waiting on another side, seems like as nothing betweens one and second side of this tube, this reason why I tried to invoke Thread, Runnable, Executor(Runnable) from doInBackground, and to ignore publish, process, setProcess another funny issue is to get() and exception(s) all exception, not only 1st. from one and second side of this tube there are two ways how to use SwingWokrer try to avoid to use SwingWorker use doInBackground as bridge for workers thread, for output to use publish, process, setProcess, wait for

Categories : Java

'OnClickListener' is not responding
The OnTouchListener hooks the click-event. Handle the click event in it instead. Check out the answer on this question

Categories : Android

Labels not responding to changes
I think you have two things you could improve: 1) Use IBOutletCollection instead of creating one for each of your interface controls; 2) Use a shared datasource and get notified when its values changes. Then you can make changes in your controls, inside their own ViewControllers, like that: self.dataStore addObserver:self forKeyPath:@"gameScore" options:0 context:nil]; //... - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { if ([keyPath isEqual:@"gameScore"]) { //update your IBOutletCollections... } } Reference https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/KeyValueObserving/Articles/KVOBasics.html#//apple_ref/

Categories : IOS

Why isn't my html responding?
Well, first of all, your CSS selectors are wrong. They should be: body { background-color: lightblue; } #shadow { text-shadow: -5px -8px 2px lightgreen; font-size: 600%; } #left { float:left;width:30%; } #right { float:right;width:70%; } Secondly, you can't use the src attribute on a div tag. That makes no sense! If you're trying to include content into the page from somewhere else, you need to use an iframe tag. Regardless of my feelings towards using this, it should be more like: <html> <head> <title>Free Jokes!</title> <meta charset="utf-8"> <link href="final project.css" rel="stylesheet"> </head> <body> <h1 id="shadow">Welcome to Free Jokes!</h1> <iframe id="left" src="left.html"&g

Categories : HTML

Responding to Volley JSONException
If you are expecting to get JSON, you should check that your URL is valid. HTML is often returned when the request is invalid. Such examples are when a request returns a 404 not found webpage. If you are trying to get HTML (or XML), you can use a StringRequest to get a String, then convert it to a XML Document or can use a SAXParser to parse it. For example: StringRequest request = new StringRequest(Method.GET, url, new Response.Listener<String>() { @Override public void onResponse(String response) { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); try { Document xml = factory.newDocumentBuilder().parse(response); //TODO: handle XML Document parsing } catch (Throwable t) { return ; }

Categories : Android

Why isn't my html file not responding?
<head> <title>Free Jokes!</title> <meta charset="utf-8" /> <link type="text/css" href="final project.css" rel="stylesheet" /> </head> Link element uses "href" not "src"

Categories : HTML

iOS Nested UIScrollViews Not Responding
self.containerScroll.contentSize = CGSizeMake(self.containerScroll.bounds.size.width*3,1); Looks like the height of your content is set to 1. If a child is larger than its parent, it won't function correctly (works the same for buttons). Also, make sure you know which scrollview you're handling in the delegate methods. All the scrollviews will be handled in the same method and it could cause you problems.

Categories : IOS

UILabel not responding to frame changes?
It will change the frame if [cell sizeLabeldata] is a valid memory and is a connected outlet instance. Try setting the backgroundcolor of the label and see the frame varies or not. [[cell sizeLabelData] setBackgroundColor:[UIColor redColor]];

Categories : Objective C

Html Form-Get not responding
If you have control over the HTML that is generated you can try to use the Razor syntax @using (Html.BeginForm(Objected, IncidentCheck, FormMethod.Get, new { code= [Pass your code value here], message = [Pass your message value here] })) { // Form elements. } instead of <form action="/IncidentCheck/Objected" method="get"> // Form elements. </form>

Categories : C#

Wordpress on GAE - wp_admin URL not responding
.httaccess won't work at all with App Engine. You have to use app.yaml to specify all your redirection handlers. secure: always for /wp-admin/ and wp-login.php enforces https:// SSL protocol for WordPress backend, but it won't work out of the box with your custom domain. So if you ported your site from other hosting and migrated database, you would need to change your wp_options table - siteurl value to https://your-app-name.appspot.com/ in order to log into WordPress backend.

Categories : PHP

Dialog onClick not responding
You never set the onClickListener to the Buttons. That's what's missing: onCreate(Bundle savedInstanceState) { // your existing code smsButton.setOnClickListener(this); emailButton.setOnClickListener(this); cancelButton.setOnClickListener(this); }

Categories : Android

Observing NotifyPropertyChanged and responding to it
If you have a binding on the window, like say a checkbox: <Checkbox IsChecked="{Binding IsApproved}" /> You should get a notification when the property changes. That said, it is possible also to build Dependency Properties that allow for a callback when the property has been changed. This is slightly different from what your example seems to be indicating (but it's worth knowing, because its still closely related). Consider: public partial class InfoBox : UserControl { public static DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(String), typeof(InfoBox), new FrameworkPropertyMetadata(TextPropertyChanged)); public static void TextPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { InfoBox inf

Categories : C#

Jquery on submit not responding
The # sign should not be in the id for the form markup. <form method="post" id="signup-form"> There is also a syntax error in this section of the code. $(document).on('submit', '#signup-form', function(event) { event.preventDefault(); //do not submit form alert ("inside"); // alert is missing ); _gaq.push(['_trackEvent', 'register', 'account', 'form',"", false]); //replace undefined param }); //add ; I'm not sure this code needs to be in listener function. It could simply be included as a regular script since it will not execute until the submit event is fired.

Categories : Jquery

iOS UITextField in UIScrollView not responding
You need to tell the scroll view what its content size is (presumably, in this case, you want it to be the same as page1 UIView): [self.scrollView setContentSize:page1.bounds.size]; [self.scrollView addSubview:page1];

Categories : IOS

CSS Media Query not responding
I made it work: http://jsfiddle.net/F6Xbp/1/ Technique 1 @media screen and (max-width: 480px) { body { background-color:black; } } Technique 2 @media only screen and (max-width: 480px), only screen and (max-device-width: 480px) { body { background-color:black; } } For the difference between max-width and max-device-width, see this.

Categories : HTML

CGI Script not responding through Wamp
Windows does not pay attention to #! lines. You need to make sure that your file extension (.cgi in your case, or .pl more commonly) is associated with your perl executable in the registry. More info: There are two ways to run a perl program/script, one is to execute perl directly with the file name of the main program/script as a parameter: C:wampinperl.exe mydirmyprog.pl Don't ever do this in the cgi directory of your web server. The other way to execute a program is to just name the file to be run and depend on the OS's built in method to find the right program to run it. mydirmyprog.pl On a *nix OS, the 1st two bytes of the file are analyzed to determine what to do with it, if those two bytes are the equivalent of the ASCII string #! then the file is treated as text, & th

Categories : Perl

UIViewController not responding to NSNotifications
You setup: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(viewDeckPanned:) name:@"ViewDeckPanned" object:_deckController]; Which means that you are listening to notification of name "ViewDeckPanned" that come from _deckController (since object: parameter is supposed to define the notification sender). But, that the same time, you post notification: [[NSNotificationCenter defaultCenter] postNotificationName:@"ViewDeckPanned" object:[NSNumber numberWithFloat:offset]]; and you tell that [NSNumber numberWithFloat:offset] is a sender. Since _deckController and instance of NSNumber do not match each other, you get no notification info in your observer. Simple change would be to pass nil as object: parameter (in both places - where you add observer, and where yo

Categories : IOS

MjpegView not responding to UITapGestureRecognizer
By default UIImageView has userInteractionEnabled is false Set the property userInteractionEnabled= YES Try this, @implementation MjpegView - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { if (_endMarkerData == nil) { uint8_t endMarker[2] = END_MARKER_BYTES; _endMarkerData = [[NSData alloc] initWithBytes:endMarker length:2]; } self.contentMode = UIViewContentModeScaleAspectFit; self.userInteractionEnabled=YES; singleTapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onSingleTap:)]; singleTapRecognizer.numberOfTapsRequired = 1; singleTapRecognizer.numberOfTouchesRequired = 1; [self addGestureRecognizer:singleTapRecogni

Categories : IOS

Application in Tomcat is not responding
Memory leak problems are not uncommon. If your Tomcat instance was running for three months and suddenly the contained application became unresponsive maybe that was the case. One solution (and if your resources allow you to do so) could be monitoring that Tomcat instance though JMX using jconsole to see how it behaves

Categories : Java

Responding to DELETE on UIKeyboardTypeDecimalPad
I figured it out... - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { if ([string length] == 0) return YES; NSCharacterSet *nonNumberSet = [[NSCharacterSet decimalDigitCharacterSet] invertedSet]; string = [[string componentsSeparatedByCharactersInSet:nonNumberSet] componentsJoinedByString:@""]; textField.text = [textField.text stringByReplacingCharactersInRange:range withString:string]; return NO; }

Categories : IOS

Stream API in twitter Not responding
The 401 error code indicates that you're not properly authenticated. Are you certain those credentials are correct? A good way to test that would be to connect to the regular streaming API (rather than a user stream) and seeing if you still get a 401. If you do, then your credentials are incorrect. If it works, then there's a problem with the user stream you're requesting.

Categories : Java

next/prev UIButtons not responding
The NavigationButtonView was being assigned as a subView of LabelsView instead of myTitleBar. So even though it was visible, the user cannot interact with it, as it is being clipped.

Categories : IOS

Why is Jquery only responding to first element?
The click event handler is bound to the initial existing elements but dynamically created elements are not bound. Try using live() or on() to bind dynamically created elements.

Categories : PHP

Clonned Select2 is not responding
Before you clone the row, you need to disable Select2 on the select element by calling its destroy method: destroy Reverts changes to DOM done by Select2. Any selection done via Select2 will be preserved. See http://ivaynberg.github.io/select2/index.html After you clone the row and insert its clone in the DOM, you need to enable select2 on both select elements (the original one and the new cloned one). Here's a JSFiddle that shows how it can be done: http://jsfiddle.net/ZzgTG/ Fiddle's code HTML <div id="contents"> <select id="sel" data-placeholder="-Select education level-"> <option></option> <option value="a">High School</option> <option value="b">Bachelor</option> <option value="c">

Categories : Javascript

UIScrollView not responding to delegates
I suggest that you subclass your UIScrollView object and add your touch events inside of it like below.. canvasObject.h #import <UIKit/UIKit.h> @interface canvasObject : UIScrollView @end canvasObject.m #import "canvasObject.h" @implementation canvasObject - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.canCancelContentTouches = false; } return self; } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *) event { //Do Stuff } - (BOOL)textViewShouldBeginEditing:(UITextView *)textView { return YES; } @end Then link your UIScrollView using the identity inspector in interface builder to the new scroll view subclass like below..

Categories : IOS

run not responding for android in eclipse
Using default settings in Eclipse, the Run button and hotkey CTRL + F11 will not work when the xml editor is in focus. It should work if you are working with the Java editor. To use the button or hotkey while editing xml, first click on the project in the package explorer.

Categories : Android

Responding to events when data changes
You could use SqlDependency class that's been available in C#/SQL 2005 since 2.0 to receive notifications inside your static class about changes to the data that you're caching as it is updated in SQL. Then in your code, you don't have to create any kind of dependency across your classes to notify one another of changes. Note that there is a performance impact for having notifications but if, as you say, this data is not changing very often, you should be OK. Also, there are certain restrictions on the SELECT statements that qualify for a notification. That is all listed at that link. In one of my current projects, I have a similar class I use for configurations where I opted to not use dependency but instead used an invalidation method similar to what you're trying to do. The pattern i

Categories : C#

Erlang Eclipse not responding when try to run
I solved it by doing a couple of things 1) reinstalling current Erlide plugin on Eclipse with http://erlide.org/update_nightly/ 2) making sure go to run -> run configuration -> runtimes and set to "short name" I hope this helps anyone. Good luck

Categories : Eclipse

SDL: responding to SDL_Quit, Esc with SDLmain.lib
You have to call one of the event pumping functions to make SDL pump the window's message queue. This has to be done on the thread that created the window. When you try to close the window via the X, an event is queued to SDL's event queue (SDL_QUIT, I think).

Categories : C++

Back button not responding ?
If your viewcontroller is not an rootviewcontroller for a uinavigationcontroller than the method popViewControllerAnimated won't work. So you need to have a uinavigationcontroller behind in order to push/pop a viewcontroller. So in your case you have to use [self dismissViewControllerAnimated:YES completion:nil]; instead of popViewController because you presented modally a view controller.

Categories : IOS

"Service is not responding to control function"? when using IoC
Most likely something is making your BuildContainer() take too long and the service manager is saying, "eh, you too slow". There's no time limits when running the app as a console. I'm not sure if the time limits changed between Windows versions to say why it's only errorring on Win8/2012. It's also possible something on those machines make BuildContainer() take longer than on older systems. Assuming that I'm correct, how do you fix it? It's hard to say without understanding what you're doing in your container. This looks almost exactly like what my Topshelf services look like, so you're on the right track at least. Maybe there's something you can defer doing in your container until later?

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.