Solution: Stack traces on actual devices

I've created a tool to work around one of the major problems when developing for CLDC: getting proper stack traces. Using the tool you get stack traces (with correct line number info) on exception situations also when running MIDlets on real devices. You can redirect the trace to any desired destination (e.g. a log file).
There isn't much documentation yet but it works and it's a real time saver. Check it out at [http://jarrut.sourceforge.net].

I believe this does what you're talking about.
yourLoggerName.error("your error message",yourException);Since you are using log4j, check their documentation about the methods:
http://logging.apache.org/log4j/docs/api/index.html
While there, look up debug, info, warn, error, fatal, and if you are using a recent version of log4j also see trace. You'll want the methods that pass the message and Throwable.

Similar Messages

  • How can i solve this Exception that "How can i solve this exception that "End of stack trace from previous location where exception was thrown" in Windows phone 8.

    Hi Sir/Mam,
    Please give me solution for this problem.I tried this in all ways for solve this problem like i checked my all class objects cleared or not when leaving current page to come to before page.
    This Exception came at After saved data in the wp8 device database,then it is coming to back page(when i navigate to another page) then that navigated page running and go to "Public Asyn Void Listmenu()" method ,in this method again retrieve the
    data from database after getting this data,it shows this Exception.
    Note :-This Exception came in WP8 Device only,not in Emulator.In the Emulator it is working fine.
    My Exception:-
    Exception:- System.Exception.Exception.HRESULT:0*80040015
    at
    System.Runtime.CompliterServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at
    System.Runtime.ComplierServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at
    System.Runtime.ComplierServices.TaskAwaiter'1.GetResult()
    at
    _10Min._10MinUserPages.<checkStatusAndSavedDataExistinFormTable>d_e3.MoveNext()
    End of stack trace from previous location where exception was thrown
    at
    system.runtime.Compilerservices.TaskAwater.throwForNonSuccess(Task task)
    at
    System.Runtime.compilerservices.TaskAwaiter.HandlerNonSuccessAndDebuggerNotification(Task task)
    at
    System.Runtime.ComplierServices.TaskAwaiter'1.GetResult()
    at
    _10Min._10MinUserPages.<listmenu>d_8.MoveNext().
    How can i solve this problem please help me. I am suffering from 1 week days with this problem.
    Please help me.any one.
    Thanks & Regards,
    SrinivaaS.

    Is the flow of code to the point where exception occurs:
    1) Data saved in Db
    2) Navigated back
    3)Navigated to another page
    4) Method ListMenu() is called(as soon as navigated to page in step 3) to retrieve the saved data from db & exception occurs.
    Can you paste here the definition of ListMenu(), also does the exception occurs as soon as db is accessed inside this method or else.
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • Exception Handling and Stack Traces in JDK 1.1.8

    Hi,
    I'm presently maintain and upgrading a Web-Objects 4.5 application that uses the JDK 1.18. There are two constantly recurring exceptions that keep getting thrown, exceptions for which there are no stack traces. These are exceptions thrown by methods that do not presently have throws or try/catch code associated with them.
    My questions are:
    1) Why are there no stack traces available? Is it because the exception handling code is not there, or could there be another reason?
    2) Will the inclusion of exception-handling code ALWAYS lead to stack traces and messages becoming available (if I put a e.printStackTrace() in my catch(Excetion e) clause), or will there be situations where it will not be available?
    3) What is the best way for me to handle these types of exceptions in order to gain the most information possible about their root causes and possible solutions?
    Thanks for your help.

    I have never seen a case where there was no stack trace.
    I have seen cases where the stack trace does not provide line numbers. I have also seen cases where it is less than useful as it terminates on a native call (which is to be expected.)
    However, if you don't call printStackTrace() then you don't get it. And if you catch an exception an throw a different one you also loose information. So you might want to check those possibilities.

  • C++ Stack Trace API

    Does anyone know of a **C++** API for Solaris (9 or 10) that would produce a stack trace?
    I'm writing an exception handling framework and there is a lot of information that is lost at the time that an exception is thrown, specifically, the stack info. Capturing and encapsulating this information into an Exception base case would aid developers in debugging.
    Redhat has backtrace() and backtrace_symbols(), but I haven't been able to find anything similar on Solaris. I don't really want to implement an ELF parser and do this myself! :)
    And feedback would be appreciated! Thanks.

    Hmmm, some how, searching for "stack trace" using the Search function of this web page returns THOUSANDS of results. Yet I googled "solaris printstack" and found similar posts. Funny how google can perform better than Sun's own web page search.
    Regardless, I thought I would give a link to the solution (in a previous thread):
    http://forum.sun.com/thread.jspa?threadID=9501&messageID=26747

  • Unwanted stack trace in weblogic.log for thrown JSP Exceptions

    We are throwing a JSP exception within a custom tag when data validation
              errors occur; the errorPage for the JSP page is then invoked to show the
              appropriate errors. However, in the weblogic.log, a stack trace is shown
              indicating the exception (example below). We do not want this stack track
              shown unless there is a real "error" in our system vs. invoking the
              errorPage to show "application" errors. Is there any way to supress this,
              as we are not explicitly causing this to happen. It appears to be a
              weblogic feature. This causes us problems in finding true system errors
              that might be occurring due to these non-problems showing up in the
              weblogic.log.
              Thanks for the help.
              John Bauer
              Wed Dec 20 15:34:49 EST 2000:<E> <ServletContext-General> exception raised
              on '/test/test.jsp'
              javax.servlet.ServletException: runtime failure in custom tag 'testtag'
              at jsp_servlet._test._test._jspService(_test.java:89)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :124)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:
              60)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:
              07)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager
              java:251)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              

    The design of the data entry pages is such that the error page is the same
              page as the data entry page, and a validation JSP tag validates the data and
              if it finds a problem, it will set some variables and throw a JSP exception
              to redisplay the page. Unfortunately, we are forced to live with this
              design. Are you aware of any mechanism to suppress the automatic logging of
              thrown JSP exceptions in the weblogic log?
              Thanks,
              JDB
              Cameron Purdy <[email protected]> wrote in message
              news:[email protected]...
              > Exception handling for custom tags is very poorly handled right now. For
              > one thing, WL hides the actual exception.
              >
              > However, the way that you are doing this seems very odd. The error page
              is
              > for server errors, not user typos.
              >
              > Peace,
              >
              > --
              > Cameron Purdy
              > Tangosol, Inc.
              > http://www.tangosol.com
              > +1.617.623.5782
              > WebLogic Consulting Available
              >
              >
              > "John Bauer" <[email protected]> wrote in message
              > news:[email protected]...
              > > We are throwing a JSP exception within a custom tag when data validation
              > > errors occur; the errorPage for the JSP page is then invoked to show the
              > > appropriate errors. However, in the weblogic.log, a stack trace is
              shown
              > > indicating the exception (example below). We do not want this stack
              track
              > > shown unless there is a real "error" in our system vs. invoking the
              > > errorPage to show "application" errors. Is there any way to supress
              this,
              > > as we are not explicitly causing this to happen. It appears to be a
              > > weblogic feature. This causes us problems in finding true system errors
              > > that might be occurring due to these non-problems showing up in the
              > > weblogic.log.
              > >
              > > Thanks for the help.
              > > John Bauer
              > >
              > > Wed Dec 20 15:34:49 EST 2000:<E> <ServletContext-General> exception
              raised
              > > on '/test/test.jsp'
              > > javax.servlet.ServletException: runtime failure in custom tag 'testtag'
              > > at jsp_servlet._test._test._jspService(_test.java:89)
              > > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > > at
              > >
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > > :124)
              > > at
              > >
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > > l.java:
              > > 60)
              > > at
              > >
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > > l.java:
              > > 07)
              > > at
              > >
              >
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              > > Manager
              > > java:251)
              > > at
              > >
              >
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
              Compiled
              > > Code)
              > >
              > >
              >
              >
              

  • Exact meaning of IL offset within a stack trace.

    I understand that when an exception is thrown (and there's no PDB around) the stack trace exposes the IL offset of where the exception arose (in the lowest frame).
    I'm not very clear though on what this means, is it the IL offset of IL operation that thew the exception or is it the IL Offset of the previously executed IL operation or what?
    I'm examining ILDASM dumps of assemblies and the IL offset sometimes doesn't quite make sense.
    e.g. one null reference exception reports an offset IL_0063 in the stack frame, but that is just an operation br.s
    Any help on exactly how the system determines the IL offset when it reports the stack trace, greatly appreciated.
    Thx

    Regardless of whether or not there is a PDB, managed code is able to provide a full trace with method names for the managed portion of the stack due to the metadata within the assembly. Where are you getting the offset? The offset that visual studio provides
    is the native offset within the jitted native method rather than the IL offset within its managed counterpart (or at least it was in VS2010, I haven't verified it since then).
    My understanding is that, when provided, the IL offset is simply mapped from the native offset using a table generated at JIT time (which may be an approximation due to optimizations). For the leaf native-frame, the native offset is where the exception was
    thrown while non-leaf native frames use the return address from the stack which may make it look like the exception was thrown by the instruction following the one where the exception actually happened.

  • FlexUnit 4 assert failures have "explosive" stack traces

    With FlexUnit 4 in Flash Builder 4 Plugin Beta, I created 1 suite with 1 class with 1 default failing test method. When I ran it, the assert failure had a call stack 60 methods high. Is this a bug?
    The stack trace has several "async" methods, e.g. applyExplosivelyAsync(). This seems strange because  I'm not using async at all. Is this intended behavior?
    Robert
    Test method Not yet implemented
           at flexunit.framework::Assert$/
    fail()[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\fluint\FlexU nit1Lib\src\flexunit\framework\Assert.as:370]
            at WidgetTest/testWidget()[C:\Users\robert.penner\Adobe Flash Builder
    Plug-in Beta 2\TestProject\src\WidgetTest.as:20]
            at Function/http://adobe.com/AS3/2006/builtin::apply()
            at flex.lang.reflect::Method/apply()[C:\Users\mlabriola\Documents\workspaces\net\digitalprim ates\opensource\flexunit\FlexUnit4\src\flex\lang\reflect\Method.as:124]
            at ReflectiveCallable/run()[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\open source\flexunit\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:214]
            at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[C:\Users\mlabriola\Do cuments\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\runn ers\model\FrameworkMethod.as:121]
            at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[C:\Users\mlabriola\D ocuments\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\run ners\model\FrameworkMethod.as:132]
            at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[C:\Users\mlabriola\Doc uments\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\inter nals\runners\statements\InvokeMethod.as:52]
            at org.flexunit.internals.runners.statements::StackAndFrameManagement/evaluate()[C:\Users\ml abriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\fle xunit\internals\runners\statements\StackAndFrameManagement.as:94]
            at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[C:\Users\mlab riola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexu nit\internals\runners\statements\StatementSequencer.as:62]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:82]
            at org.flexunit.token::AsyncTestToken/sendResult()[C:\Users\mlabriola\Documents\workspaces\n et\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as: 70]
            at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete()[C:\Users\mla briola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flex unit\internals\runners\statements\AsyncStatementBase.as:44]
            at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete()[C:\Users\mla briola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flex unit\internals\runners\statements\StatementSequencer.as:103]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:86]
            at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[C:\Users\mlabrio la\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit \internals\runners\statements\StatementSequencer.as:68]
            at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[C:\Users\mlab riola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexu nit\internals\runners\statements\StatementSequencer.as:62]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:82]
            at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[C:\Users\mlabrio la\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit \internals\runners\statements\StatementSequencer.as:68]
            at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()[C:\Users\mlabriola\Documents\w orkspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\runners\Block FlexUnit4ClassRunner.as:104]
            at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()[C:\Users\mlabriola\Doc uments\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\inter nals\runners\ChildRunnerSequencer.as:49]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:82]
            at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[C:\Users\mlabrio la\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit \internals\runners\statements\StatementSequencer.as:68]
            at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[C:\Users\mlab riola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexu nit\internals\runners\statements\StatementSequencer.as:62]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:82]
            at org.flexunit.token::AsyncTestToken/sendResult()[C:\Users\mlabriola\Documents\workspaces\n et\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as: 70]
            at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete()[C:\Users\mla briola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flex unit\internals\runners\statements\AsyncStatementBase.as:44]
            at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete()[C:\Users\mla briola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flex unit\internals\runners\statements\StatementSequencer.as:103]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:86]
            at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[C:\Users\mlabrio la\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit \internals\runners\statements\StatementSequencer.as:68]
            at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[C:\Users\mlab riola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexu nit\internals\runners\statements\StatementSequencer.as:62]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:82]
            at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[C:\Users\mlabrio la\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit \internals\runners\statements\StatementSequencer.as:68]
            at org.flexunit.runners::ParentRunner/run()[C:\Users\mlabriola\Documents\workspaces\net\digi talprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\runners\ParentRunner.as:315]
            at org.flexunit.runners::Suite/runChild()[C:\Users\mlabriola\Documents\workspaces\net\digita lprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\runners\Suite.as:59]
            at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()[C:\Users\mlabriola\Doc uments\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\inter nals\runners\ChildRunnerSequencer.as:49]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:82]
            at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[C:\Users\mlabrio la\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit \internals\runners\statements\StatementSequencer.as:68]
            at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[C:\Users\mlab riola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexu nit\internals\runners\statements\StatementSequencer.as:62]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:82]
            at org.flexunit.token::AsyncTestToken/sendResult()[C:\Users\mlabriola\Documents\workspaces\n et\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as: 70]
            at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete()[C:\Users\mla briola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flex unit\internals\runners\statements\AsyncStatementBase.as:44]
            at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete()[C:\Users\mla briola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flex unit\internals\runners\statements\StatementSequencer.as:103]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:86]
            at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[C:\Users\mlabrio la\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit \internals\runners\statements\StatementSequencer.as:68]
            at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[C:\Users\mlab riola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexu nit\internals\runners\statements\StatementSequencer.as:62]
            at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[C:\Users\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit 4\src\org\flexunit\internals\runners\statements\StatementSequencer.as:82]
            at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[C:\Users\mlabrio la\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit \internals\runners\statements\StatementSequencer.as:68]
            at org.flexunit.runners::ParentRunner/run()[C:\Users\mlabriola\Documents\workspaces\net\digi talprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\runners\ParentRunner.as:315]
            at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()[C:\Users\mlabriola\Documents\wor kspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\runner\FlexUnit Core.as:177]
            at org.flexunit.token::AsyncListenersToken/sendReady()[C:\Users\mlabriola\Documents\workspac es\net\digitalprimates\opensource\flexunit\FlexUnit4\src\org\flexunit\token\AsyncListeners Token.as:59]
            at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()[C:\U sers\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\ org\flexunit\runner\notification\async\AsyncListenerWatcher.as:87]
            at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()[C:\Use rs\mlabriola\Documents\workspaces\net\digitalprimates\opensource\flexunit\FlexUnit4\src\or g\flexunit\runner\notification\async\AsyncListenerWatcher.as:97]
            at flash.events::EventDispatcher/dispatchEventFunction()
            at flash.events::EventDispatcher/dispatchEvent()
            at flexunit.flexui::FlexUnit4TestRunner/handleConnect()[C:\work\flex\ide_builder\com.adobe.f lexbuilder.flexunit\flexunitframework\src\flexunit\flexui\FlexUnit4TestRunner.as:296]
            at flash.events::EventDispatcher/dispatchEventFunction()
            at flash.events::EventDispatcher/dispatchEvent()
            at flash.net::XMLSocket/reflectEvent()

    Not a bug and fully expected behavior.
    FlexUnit 4 is really just a collection of runners that can handle just about anything that is thrown at it as well as handle any pluggable runners that others write. The level of extensibility comes with some complexity. So, by the time that single method of yours is executed, there are actually probably a hundreds methods in the framework for getting everything setup, inspected and ready to go.
    The stacktrace always looks up the stack from your failure to the last point where a particular chunk of code execution began, so the 60 is basically just that number of methods. There isn't a whole lot that can be done about it save for eventually provinding filtering to eliminate showing some of our stuff and making the track more legible.
    Regarding the async thing, your method isn't async but FlexUnit4 is. Inside of the Flash Player we are operating on frames. We don't have the luxury of threads and the like that Java has, so we have to handle the possibility that something might be async on a much deeper level. We also do something called green threading where we actually watch how much time we take in execution. Once we have taken 90% ish of the time available in a given frame, we wait until the next one before we begin executing again. This allows us to run long and compelx test suites without getting a timeout from the flash player (which happens if any single frame takes longer than 15 seconds to execute). So, even though your method isn't doing anything async, all of these other pieces have to account for the chance that something will be. Hence the reason that you see async pieces in the stack trace.
    Hope that helps,
    Mike

  • Want to print the stack trace from the code

    looking for a way to print the stack trace from the CVI code.
    Thanks!

    First I would share the movie. If I was making a DVD, I would use SHARE/To Media Browser in LARGE size.
    Then I would use a free application called MPEG Streamclip,
    Get MPEG Streamclip, which is free. (google MPEG Streamclip from Squared 5)
    Open MPEG Streamclip.
    In the Finder, go to Movies/iMovie Projects, and right click on your project. Then, right-click/Show Package Contents. Navigate to the Movies folder in the package and find the LARGE movie. (Note: you are in the bowels of the Media Browser)
    Drag this movie into MPEG Streamclip. (It will not actually move anywhere. This tells MPEG Streamclip how to find it.)
    In MPEG Streamclip, move the playhead to the frame you want.
    In MPEG Streamclip, click FILE/EXPORT FRAME.
    Choose JPEG, TIFF, or PNG and give it a name.
    You can then drag this photo into iPhoto, iDVD, or wherever you need it.
    (Assuming you already know this) In iDVD, you can find the Media Browser at the lower right of the Window. Navigate to your project and drag it into iDVD.

  • No stack trace outpu on eclipse-jboss project

    Good moring. I am facing a problem and after a few days of googling ia haven't found a solution so I am posting it here.
    The problem is this.
    We have a web portal built on jboss, seam, ejb3, jsf etc. The previous developer sent me an eclipse project folder, so I could work on the project. When I set it up, I have to change some classpath references (different jboss and jre version) and thats all.
    But when i run the project and something wrong happens, there is no stack trace so I can locate the problem and fix it. I have built some other test projects and there is no problem.
    So the question is: Is there any specific adjustment that could suppress the stack trace output? And how could I trim it?
    Thanks.

    I would advise against reverting to very old versions just because you can't get the new versions to work. Try to read the installation instructions and manuals of the new versions and try to get those to work.

  • Rethrow Stack Trace

    I've seen existing code that captures exceptions and rethrows a more general exception where I work. The loss of information is annoying. The stack trace methods in Throwable are all native! Is there any way to copy the stack trace over into the new exception? Failing that, do you have any thoughts on this design pattern? Is it evil?
    (I noticed the CORBA UnknownException stores a Throwable inside itself. I should probably take that as a hint.)
    Code sample:
    class getException extends Exception
       public getException( String arg ) { super( arg); };
    interface getter
        public String getit() throws getException;
    class corbaGetter implements getter
       public String getit() throws getException
         try {
            throw new org.omg.CORBA.portable.UnknownException( new Exception("yada yada") );
            // return "data";
         } catch (org.omg.CORBA.SystemException ex) {
            throw new getException( ex.toString() );
    class httpGetter implements getter
       public String getit() throws getException
         try {
            throw new java.io.IOException( "yada yada" );
            // return "data";
         } catch (java.io.IOException ex) {
            throw new getException( ex.toString() );
    }

    You are talking about simply rethrowing exceptions.
    The actual stack trace information is memorized in the exception you caught. Simply rethrowing this exception will continue to fill its stack trace. Next time you catch it, this exception will contain all the information gathered from the place it was first issued plus the accumulated informations.
    To do this, write the catch block like this:
    catch(Exception _ex)
        throw _ex;
    }(The way you wrote the code you created a new exception which obviously won't know anyting about the stack trace of the exception that created it - only its name which you pass as a parameter in the constructor.)
    On the contrary, if you would call throw _ex.fillInStack() in same place in code, the exception would clear all its previous information and next time you catch it it will only report from this point forward.

  • Stack trace when using translation workflow in CQ5.5

    Hi!
    When we use the translation workflow in 5.5 we get an ugly stack trace in the log (even though everything seems to work fine). We also tried a clean installation with only Geometrixx site and got the same problem. Does anybody have a solution for this? We have installed CQ5.5 and the following packages:
    cq-5.5-security-update-npr-1951.zip
    cq-update-pkg-5.5-1-load5.zip
    crx-hotfixpack-2.2.0.70-2.3.24.zip
    crx-hotfixpack-2.2.0.71-2.3.24.zip
    Here is the stack trace:
    19.10.2012 10:00:44.510 *WARN* [127.0.0.1 [1350633642682] POST /libs/wcm/msm/content/commands/translate HTTP/1.1] com.adobe.granite.i18n.impl.PreferencesLocaleResolverService Error occur resolving locale. javax.jcr.RepositoryException: This session has been closed. See the chained exception for a trace of where the session was closed.
              at org.apache.jackrabbit.core.session.SessionState.checkAlive(SessionState.java:150)
              at org.apache.jackrabbit.core.SessionImpl.sanityCheck(SessionImpl.java:372)
              at org.apache.jackrabbit.core.SessionImpl.getNodeById(SessionImpl.java:533)
              at org.apache.jackrabbit.core.security.user.UserManagerImpl.internalGetAuthorizable(UserMana gerImpl.java:832)
              at org.apache.jackrabbit.core.security.user.UserManagerImpl.getAuthorizable(UserManagerImpl. java:415)
              at com.adobe.granite.i18n.impl.PreferencesLocaleResolverService.resolveLocale(PreferencesLoc aleResolverService.java:93)
              at org.apache.sling.i18n.impl.I18NFilter$I18NHttpServletRequest.getLocaleList(I18NFilter.jav a:202)
              at org.apache.sling.i18n.impl.I18NFilter$I18NHttpServletRequest.getLocale(I18NFilter.java:17 8)
              at javax.servlet.ServletRequestWrapper.getLocale(ServletRequestWrapper.java:318)
              at javax.servlet.ServletRequestWrapper.getLocale(ServletRequestWrapper.java:318)
              at javax.servlet.ServletRequestWrapper.getLocale(ServletRequestWrapper.java:318)
              at org.apache.sling.i18n.impl.I18NFilter$BaseI18NSlingHttpServletRequest.getResourceBundle(I 18NFilter.java:233)
              at org.apache.sling.i18n.impl.I18NFilter$BaseI18NSlingHttpServletRequest.getResourceBundle(I 18NFilter.java:226)
              at com.day.cq.i18n.I18n.getResourceBundle(I18n.java:89)
              at com.day.cq.i18n.I18n.getResourceBundle(I18n.java:79)
              at com.day.cq.i18n.I18n.getVar(I18n.java:182)
              at com.day.cq.wcm.core.impl.LinkCheckerSettingsProviderImpl$RewriteConfigs.localize(LinkChec kerSettingsProviderImpl.java:209)
              at com.day.cq.wcm.core.impl.LinkCheckerSettingsProviderImpl$RewriteConfigs.createSettings(Li nkCheckerSettingsProviderImpl.java:214)
              at com.day.cq.wcm.core.impl.LinkCheckerSettingsProviderImpl.createSettings(LinkCheckerSettin gsProviderImpl.java:89)
              at com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl.createSettings(LinkCheckerImpl.java: 366)
              at com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformer.init(LinkCheckerTransformer.j ava:155)
              at org.apache.sling.rewriter.impl.PipelineImpl.init(PipelineImpl.java:106)
              at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(ProcessorManagerImpl.jav a:445)
              at org.apache.sling.rewriter.impl.RewriterResponse.getProcessor(RewriterResponse.java:172)
              at org.apache.sling.rewriter.impl.RewriterResponse.getWriter(RewriterResponse.java:110)
              at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.getWriter(OnDemandWriter.java: 38)
              at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.write(OnDemandWriter.java:47)
              at java.io.PrintWriter.write(PrintWriter.java:361)
              at org.apache.sling.api.servlets.HtmlResponse.send(HtmlResponse.java:464)
              at org.apache.jsp.libs.wcm.msm.components.commands.translate.POST_jsp._jspService(POST_jsp.j ava:205)
              at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:420)
              at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)
              at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :233)
              at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:85)
              at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:453)
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)
              at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:500)
              at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
              at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:147)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308 )
              at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:257)
              at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
              at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:305)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:89)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:153)
              at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206)
              at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)
              at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
              at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)
              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)
              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:238)
              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )
              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)
              at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
              at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)
              at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)
              at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)
              at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:377)
              at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:351)
              at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:625)
              at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.Exception: Stack trace of  where session-admin-465820 was originally closed
              at org.apache.jackrabbit.core.session.SessionState.close(SessionState.java:275)
              at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:943)
              at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:392)
              at com.day.crx.core.CRXSessionImpl.logout(CRXSessionImpl.java:116)
              at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.sling.jcr.base.SessionProxyHandler$SessionProxyInvocationHandler.invoke(Sessio nProxyHandler.java:109)
              at $Proxy9.logout(Unknown Source)
              at com.day.cq.workflow.impl.CQWorkflowSession.logout(CQWorkflowSession.java:615)
              at org.apache.jsp.libs.wcm.msm.components.commands.translate.POST_jsp._jspService(POST_jsp.j ava:201)
              ... 77 more

    The workaround is [1] do not close session in translate.jsp , Seems that is right way but I am not 100% confident.  Though I verified session analyser and seems getting closed by other thread once request is fullfilled. Internally, I have filled the case(CQ5-22443).  For further assistance please file a daycare.
    [1]   Overlay /libs/wcm/msm/components/commands/translate/POST.jsp  and comment out  or remove wfSession.logout();

  • Determining current stack trace elements

    The task is to determine caller method for some another method.
    Let's assume we have such a class:
    package org.package;
    public class A {
        public static void main(String[] arguments) {
            callerMethod();
        public void callerMethod() {
            analysisMethod();
        public void analysisMethod() {
            /* Logic, which is needed . */
    }And analysisMethod() is interested in its caller information, at least caller class name and caller method name (in the sample above it would be org.package.A and callerMethod accordingly).
    I've thought out one way: throwing an exception in analysis method and then working with its stack trace. This way works but it has some disadvantages:
    * it is expensive (efficiency)
    * it gives only class and method names, while methods can be overloaded (actually this disadvantage is not so important in my case).
    And I've also found that Throwable.fillInStackTrace() is native. And that's bad.
    An interesting problem. Would like to hear what others say.
    Thanks.

    And if you want caller class name and caller method name, why are you dissatisfied with getting the caller classname and caller method name?

  • Logging | Stack trace gets truncated

    I'm trying to diagnose a deployment issue I have with an EJB, and am examining the default trace log. I'm seeing a log entry related to my problem, but the stack trace is truncated:
    at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2161)
    at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)
    ... 16 more
    Is there any way I can configure the application server to not truncate stack traces and log them in their entirety? Or is there a better method of getting a look at what's going on when I'm trying to deploy my EAR file?

    You can configure the size and the storage location for trace files, using the Log Manager in Visual admin.
    The trace files themselves are fine, that's not the problem. I'm talking about the actual stack traces themselves. Once again, here's a snippet from a stack trace:
    Caused by: java.lang.NoClassDefFoundError: nl.hagaziekenhuis.medisurf.ejbs.favorieten.FavorietenException
    at java.lang.Class.getDeclaredMethodsImpl(Native Method)
    at java.lang.Class.getDeclaredMethods(Class.java:599)
    at java.lang.Class.getInterfaceMethodCountImpl(Class.java:848)
    at java.lang.Class.getInterfaceMethodsImpl(Class.java:863)
    at java.lang.Class.getMethods(Class.java:808)
    at com.sap.engine.services.ejb.deploy.verifier.RmiIiopUtils.isValidRmiIIOPInterface(RmiIiopUtils.java:52)
    at com.sap.engine.services.ejb.deploy.verifier.RemoteInterfaceCheck.check(RemoteInterfaceCheck.java:40)
    at com.sap.engine.services.ejb.deploy.verifier.session.SessionBeanCheck.check(SessionBeanCheck.java:76)
    at com.sap.engine.services.ejb.deploy.verifier.Verifier.checkBean(Verifier.java:82)
    at com.sap.engine.services.ejb.deploy.verifier.Verifier.check(Verifier.java:46)
    at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:254)
    at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2161)
    at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)
    ... 16 more
    Now, note that I didn't add the trailing "...16 more" line; something in the system did that. I need the AS to log the entire trace for me, not just the first bit and then saying how much it didn't log.

  • Caught exception still showing stack trace

    I have a piece of code which attempts to draw some data out of a JPEG. The line that actually gets the data will raise a com.sun.image.codec.jpeg.TruncatedFileException: Premature end of input file, if you have a corrupt JPEG. If I put the code in a "try" block, and try to catch com.sun.image.codec.jpeg.TruncatedFileException, the catch never gets executed. But if I do a generic catch by just catching Exception, the catch block DOES get executed. HOWEVER... Even though the catch block is executed, and I have a line that says "System.out.println("Found a problem");" or something like that, Java still outputs a stack trace as well. This is making me think that maybe it is throwing 2 exceptions? But if I put another try block around it, it still does the same thing.... Here is a snippet of my code, followed by the stack trace.
    RenderedImage meanImage = JAI.create("mean", pb, null);
    double[] mean;
    try {
    mean = (double[])meanImage.getProperty("mean");
    } catch (Exception e) {
    System.out.println("Caught in getProperty.");
    return;
    NOTE: The line "mean = (double[])meanImage.getProperty("mean");
    is the one throwing the exception. And I've tried the catch block with and without the return statement.
    Here is the stack trace...
    Corrupt JPEG data: premature end of data segment
    com.sun.image.codec.jpeg.TruncatedFileException: Premature end of input file
    at sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream(Native Method)
    at sun.awt.image.codec.JPEGImageDecoderImpl.decodeAsBufferedImage(JPEGImageDecoderImpl.java:210)
    at com.sun.media.jai.codecimpl.JPEGImage.<init>(JPEGImageDecoder.java:112)
    at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:51)
    at com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:89)
    at com.sun.media.jai.opimage.JPEGRIF.create(JPEGRIF.java:52)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
    at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1669)
    at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
    at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
    at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
    at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1669)
    at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
    at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
    at com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:109)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
    at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1669)
    at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
    at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
    at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:805)
    at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:853)
    at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:874)
    at javax.media.jai.RenderedOp$1.getPropertyNames(RenderedOp.java:1777)
    at javax.media.jai.PropertyEnvironment.mapDefaults(PropertyEnvironment.java:280)
    at javax.media.jai.PropertyEnvironment.getPropertyNames(PropertyEnvironment.java:135)
    at javax.media.jai.WritablePropertySourceImpl.addProperties(WritablePropertySourceImpl.java:306)
    at javax.media.jai.RenderedOp.createPropertySource(RenderedOp.java:1803)
    at javax.media.jai.RenderedOp.getPropertyNames(RenderedOp.java:1837)
    at javax.media.jai.PropertyEnvironment.hashNames(PropertyEnvironment.java:319)
    at javax.media.jai.PropertyEnvironment.<init>(PropertyEnvironment.java:125)
    at javax.media.jai.DescriptorCache.getPropertySource(DescriptorCache.java:1198)
    at javax.media.jai.OperationRegistry.getPropertySource(OperationRegistry.java:1941)
    at javax.media.jai.ThreadSafeOperationRegistry.getPropertySource(ThreadSafeOperationRegistry.java:595)
    at javax.media.jai.OperationRegistry.getPropertySource(OperationRegistry.java:1980)
    at javax.media.jai.ThreadSafeOperationRegistry.getPropertySource(ThreadSafeOperationRegistry.java:608)
    at javax.media.jai.OperationNodeSupport.getPropertySource(OperationNodeSupport.java:624)
    at javax.media.jai.RenderedOp.createPropertySource(RenderedOp.java:1800)
    at javax.media.jai.RenderedOp.getProperty(RenderedOp.java:1924)
    at plugins.medianEvaluator$Evaluate.Caught in getProperty.
    Name: /home/jimdrewes/TEST.JPG Color: java.awt.Color[r=0,g=0,b=0]
    <init>(medianEvaluator.java:74)
    at plugins.medianEvaluator$1.construct(medianEvaluator.java:41)
    at plugins.SwingWorker$2.run(SwingWorker.java:110)
    at java.lang.Thread.run(Thread.java:536)
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
    at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1669)
    at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
    at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
    at com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:109)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
    at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1669)
    at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
    at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
    at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:805)
    at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:853)
    at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:874)
    at javax.media.jai.RenderedOp$1.getPropertyNames(RenderedOp.java:1777)
    at javax.media.jai.PropertyEnvironment.mapDefaults(PropertyEnvironment.java:280)
    at javax.media.jai.PropertyEnvironment.getPropertyNames(PropertyEnvironment.java:135)
    at javax.media.jai.WritablePropertySourceImpl.addProperties(WritablePropertySourceImpl.java:306)
    at javax.media.jai.RenderedOp.createPropertySource(RenderedOp.java:1803)
    at javax.media.jai.RenderedOp.getPropertyNames(RenderedOp.java:1837)
    at javax.media.jai.PropertyEnvironment.hashNames(PropertyEnvironment.java:319)
    at javax.media.jai.PropertyEnvironment.<init>(PropertyEnvironment.java:125)
    at javax.media.jai.DescriptorCache.getPropertySource(DescriptorCache.java:1198)
    at javax.media.jai.OperationRegistry.getPropertySource(OperationRegistry.java:1941)
    at javax.media.jai.ThreadSafeOperationRegistry.getPropertySource(ThreadSafeOperationRegistry.java:595)
    at javax.media.jai.OperationRegistry.getPropertySource(OperationRegistry.java:1980)
    at javax.media.jai.ThreadSafeOperationRegistry.getPropertySource(ThreadSafeOperationRegistry.java:608)
    at javax.media.jai.OperationNodeSupport.getPropertySource(OperationNodeSupport.java:624)
    at javax.media.jai.RenderedOp.createPropertySource(RenderedOp.java:1800)
    at javax.media.jai.RenderedOp.getProperty(RenderedOp.java:1924)
    at plugins.medianEvaluator$Evaluate.<init>(medianEvaluator.java:74)
    at plugins.medianEvaluator$1.construct(medianEvaluator.java:41)
    at plugins.SwingWorker$2.run(SwingWorker.java:110)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.lang.RuntimeException: Unable to process image stream, incorrect format.
    at com.sun.media.jai.codecimpl.JPEGImage.<init>(JPEGImageDecoder.java:114)
    at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:51)
    at com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderImpl.java:148)
    at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:135)
    ... 40 more
    I'm using Forte as my development environment, and JAI to do imaging stuff.
    Any help would be great.
    Thanks,
    -Jim Drewes
    www.jimdrewes.com

    Actually, if you look at the stack trace close enoughI told you I didn't read the stack trace... I never will read anything that you don't bother simplifying down, perhaps since *you* knew where this was you could have pointed it out...
    Because your line is being printed in the middle of the stack trace is a *BIG* hint that the exception you are catching is not the one that is printing the stack trace.
    So its almost like its catching an error
    after it raises a DIFFERENT not-caught error.Which is eactly what I told you... And by the position of your ESystem.out line there is also an (several?) un-caught error after your caught error.
    I tried putting all of those create
    statements in their own try blocks,
    but it still gave me the same error.Are you sure its the same exceptio, and not other exceptions.
    I also stuck in a MediaTracker yesterday...
    The tracker comes back just fine,
    with no errors on the image being
    loaded. But when the data gets drawn
    out, it raises this error again.Maybe have a google for image loading and java.awt.image.ImageObserver for some more clues.

  • Good stack trace for runtime errors?

    Is there any way to get a good stack trace for runtime errors, as in real line numbers and source file text? all i can find via google is posts about 'javap -c', but the posts are a couple of years old. i am hoping we've made some progress in this area.
    thanks,
    tom arnall
    north spit, ca
    usa

    Right now some of the device menufacturers are providing thier tools for realtime on device debugging. As per my knowledge, Motorola, SonyErricsson & Nokia are providing these types of tools.
    Amonst those I have used Motorola KDWP debuger. Its really very helpful. There is one other tool named "MIDWay" which provides trace of debug statments like "System.out.println" on the screen, while running application of the device.

Maybe you are looking for

  • Dynamic Table Creation using RTTS - Question on Issue

    I am using the RTTS services to dynamically create a table.  However, when I attempt to use the get_components method it does not return all the components for all tables that I am working with. Cases and End Results 1) Created structure in data dict

  • Apple Keyboard with number pad the V key will not work

    Apple Keyboard with number pad the V key will not work.  Everyother key works but not the V.  I have a MacBook Pro.  Any suggestions?

  • "500 Internal Server Error" response from asynchronous AquaLogic proxy

    Hi, We have a proxy service deployed to AquaLogic Service Bus (alsb) v3.0 as a WSDL-based SOAP/HTTP service. The WSDL for the proxy defines a single one-way operation (i.e. no response message is defined), making it an asynchronous operation. The pro

  • Remapping System Keys

    Hey I'm a left handed Graphic Artist with a MacBook. Its great except for the stupid 'enter' button on the right next to the keyboard. I cant believe Apple decided to make that key 'enter' instead of 'option' for a symmetrical layout friendly to both

  • Volume control not showing

    In Flash CS3 I am creating an SWF for a live stream. I have added a player control bar ( Play, pause, volume control etc) but when I publish the SWF it does not show up. I want to be able to mute my Flash player. Thanks for any help.