public static void parseit(String thexml){
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser saxParser;
try {
saxParser = factory.newSAXParser();
DefaultHandler handler = new DefaultHandler() {
public void startElement(String uri, String localName, String qName, Attributes att...
Some math functions in a program I recently wrote are returning unacceptable values, such as NaN (possibly due to not checking some function's input params). The problem is that it's being quite difficult to track down which functions are passing the wrong values. This results in errors being propagated throughout the code and making the...
Code:
String myVar = "1255763710960";
int myTempVar=0;
try
{
myTempVar = Integer.valueOf(myVar);
}
catch (NumberFormatException nfe)
{
System.out.println(nfe.toString());
}
Output:
java.lang.NumberFormatException:
For input string: "1255763710960"
I have absolutely no idea why this is.
...
I could not find the information where are exception class instances created during exception handling ? In which memory area (stack, heap, static storage, etc.) ? I assume it is not on the stack because of stack-unwinding ...
...
I have following situation (simplified, of course):
MyDomain.groovy:
class MyDomain {
MyAnotherDomain anotherDomain // lazy loaded
}
MyService.groovy:
class MyService {
boolean transactional = true
def doSomething(id) {
// ... some code...
}
}
MYController.groovy:
class MyController {
def myService
def doAction = {
...
In my WCF client class I'm handling the Faulted() event so that if the remote service throws an exception and faults the channel I can still at least shut it down gracefully. Here's my code:
protected void RemoteDataRetriever_Faulted(object sender, EventArgs e)
{
(sender as ICommunicationObject).Abort();
this.Dispose();
thro...
Does a JVM exit when a stack overflow exception occurs in one of the executing threads?
...
I am using Quratz 1.6.3 API in a Maven project. This is the error message I get when I run it:
java.lang.NoClassDefFoundError: org/apache/commons/collections/SetUtils
at org.quartz.JobDetail.(JobDetail.java:85)
.....
commons.collections 3.2 dependency is included in the project's pom.xml file. What could be the reason for this error?
...
Assuming I didn't start in debug mode, is there a way to make the eclipse debugger automatically start if my app throws an exception inside the emulator?
Alternatively, is there a way to get a more useful error message out of the emulator (something more useful than "Sorry, your app terminated unexpectedly").
...
I am currently writing a C++ extension for Python using Boost::Python. A function in this extension may generate an exception containing information about the error (beyond just a human-readable string describing what happened). I was hoping I could export this exception to Python so I could catch it and do something with the extra inf...
I have this code:
public void setPanelHalfHorizontalScreen(Panel p)
{
if (p != null)
{
p.Width = Screen.PrimaryScreen.Bounds.Width / 2 - 2;
this.panelsForHalfScreen.Add(p.Name, p);
// http://stackoverflow.com/questions/2261828/does-an-event-gets-executed-tw...
I'm looking for tips/suggestions/insights to help debug an on application load issue; Could not load file or assembly...
The solution/project where I'm experiencing this issue is a conversion from a working copy in Visual Studio 2008 to the Visual Studio 2010 Release Candidate. The conversion process appeared to be successful, and all t...
Hi,
I have ADFS RC setup at Windows 2008 Server Standard Edition SP2 64 bit. As soon as I login to provisioning.aspx using domain user account CardRequestFailedException occurs.
I checked the diagnostic logs, ADFS eventing logs and security logs of the machine but could not find anything relevant to this exception.
I'm not using silen...
I am trying to execute a program developed elsewhere, and I see the following exception:
org.jdom.RuntimeException: http://apache.org/xml/features/validation/schema
feature not recognized for SAX driver org.apache.cimson.parser.XMLReaderImpl
This program ran successfully a few months ago, but my development platform was rebuilt (appa...
When loading a MP3 to a flash.media.Sound object the id3 property gives an error:
SecurityError: Error #2000: No active security context.
Offcourse, like many errors in Flex, the Flex documentation doesn't mention a thing about this, except that it exists...
The MP3 is valid (i've checked it with MediaPlayer and iTunes), the Sound ob...
Hi,
The cloneNode() method in the following minimal example works on java 1.6 but throws an DOMException with code 14 under android 5.
Code 14 according to sdk docs means:
"NAMESPACE_ERR
If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces."
Has anybody an idea why this might be?
Th...
My web app is using GWT 2.0.2, GXT 2.1.1, Hibernate 3.5-CR1, Javassist 3.11.0 and Gilead 1.3.1 (latest from SVN).
My app was running just fine with GWT 1.7.1 + Gilead 1.2.
I want to take advantage of some of the features of GWT 2.0, and figured I'd upgrade to the latest Gilead in the process. I pointed to the new gwt.xml file in Gil...
I attempted to adapt a class I had found on the web for a dynamic array of ints for a dynamic array of "Entities," but now I am getting a "NullPointerException."
The code raising the exception is:
public void initialize()
{
buffer = new BufferedImage(800,600,BufferedImage.TYPE_INT_RGB);
Entities.put(Entities.getCurrentPos()+1, ...
The Control.Exception documentation says I can do the following to create my own exception:
data MyException = ThisException | ThatException
deriving (Show, Typeable)
instance Exception MyException
If I paste this into a file and compile (after importing Control.Exception and Data.Typeable), I get:
exp.hs:6:20:
Can't make...
Hi, everyone
I'm using Xcode in my development work. Sometime I debug my application and it report error via console window. Like example below:
2009-12-10 22:13:58.968 Sunrise Cam[1023:207] * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)'
2009-12-10 2...