Stack trace gives line numbers when src is present in package hierachy?

hi,
does anyone know why the lines numbers of the source code are only given in exception traces when the source code is present alongside the class files in the package hierachy?
I'm guessing this is because there is not enough information in the class files alone?
in which case, how does it work with the source file present??
thanks,
asjf

It has nothing to do with source code files... forget that idea completely.
However, it may be something to do with your just-in-time compiler.
At runtime, HotSpot might compile the java byte code ( solely in your class file ) into native/machine code and thus lose the line number information during that internal translation.
Try running your application with the -Xint parameter for java.exe. It will turn off the Just-in-time compiler so you should
get the line number information. ( assuming you compiled the class files with javac -g )

Similar Messages

  • No line numbers in stack trace from Java Stored Procedure exception

    I have a Java Stored Procedure which can generate an exception. In one database (11.1.0.6) the Java stack trace contains line numbers for my code, but not for the classes loaded by default with the JVM. In another database (same version) the Java stack trace does NOT contain line numbers for my code, but does contain them for some of the classes loaded by default with the JVM!
    Neither of the schemas where I am running the the Java stored procedure has a JAVA$OPTIONS tables as described here:
    http://download.oracle.com/docs/cd/B28359_01/java.111/b31225/chtwo.htm#BABIGFGA
    So the Java should have been compile "-debug" by default in both schemas. I specifically set the debug option to true using:
    exec dbms_java.set_compiler_option('', 'debug', 'true');
    but this had no effect.
    Can anyone explain this behavior or tell me how to always get line number in the Java stack trace?

    Hi,
    Try using java.util.logging package. Using these packages you can configure your logging information to include context down to the class name. Then each log message would be unique enough to know where it came from.
    -Priyanka

  • Printing Line numbers while dumping stack trace during crash..

    Hi,
    I want to dump the stack trace of all threads with the line numbers when the program crashes. I am able to do that by cathing the signals and invoking "pstack" utility to dump the stack. But it does not dump the line numbers of each function. Is there some way of doing that?
    Thanks
    Atul

    If you run the executable under dbx then you can type 'where' when the program crashes or set a breakpoint in your signal handler. Line numbers will only show up in the dbx stack trace if the application was compiled with -g and not stripped.

  • JSP stack trace line numbers?? used to be there?

    I could have swore that JDev RC showed line numbers in JSP
    stack traces?
    Anyway, they'd be great. How can the JIT/ojvm be configured to
    make them available to the actual .jsp line numbers.
    Thanks, curt

    The line numbers are there if you aren't using the jsp include tag:
    <%@ include file="some.jsp" %>
    Since this is a compile time include, I still feel that line numbers should be
    present in the stack trace... Well, I wish they were anyway.
    Thanks, curt Curt:
    This depends on which JVM you are using. For 9.0.2, I believe ojvm does not give line numbers. (I think we are changing to show line numbers for 9.0.3.) If you use hospot ('java -hotspot ...') you should see the line numbers.
    Thanks.
    Sung

  • Line number error in Exception stack trace does not work in J2SDK 1.4

    why the line number when your progam fails (in Java 1.3)
    don�t shows the line number but in Java 1.4.2:
    in a run fail prints something like:
    at SomeClass.someMethod()<unknow source>
    why: <unknow source>
    should I modify the (java or javaw) command arguments to specify that prints the line numbers when has throwns any exception and print the StackTrace ??

    Hi,
    I have another but related question:
    I am using a testing tool, called as Fitnesse. When an exception is thrown, it shows the exception trace but the line numbers are not shown, because the source code is unknown to the tool. It is an open source tool, so I want to change the settings such that it shows the line numbers.
    I know, maybe I should ask the question to the tool-forum. But I think, this problem is a general one, not related to a specific tool. How can "java" know the line number of the source code, where an exception is thrown?
    Thanks and best regards
    Mert Nuhoglu

  • Instrument stack trace on config.xml

    I upgraded my aplication from weblogic 6.1 to 8.1,
    "instrument stack trace" is working fine with 6.1.
    it is not making any difference with 8.1,(i.e)
    i could't see any server side exception stack trace from the client when application got deployed on 8.1.
    what should i do in order to see the stack trace

    Hi,
    have you checked that whether InstrumentStackTraceEnabled is true or not ?
    With this attribute enabled, if a client issues an RMI call to a server subsystem or to a module running within the server, and if the subsystem or module generates an exception that includes a stack trace, the server will return the exception as well as the stack trace. With this attribute disabled, the server will return exceptions without the stack trace details.
    Regards
    Anilkumar kari

  • CE10, RAS 10: Stack overflow at line

    I am using Crystal 10, RAS 10 using Crystal Interactive Viewer. The error occurs when closing the viewer window.
    I receive a java alert: "Stack Overflow at line: 63"
    When I debugged I fount the error in the rendered javascript.
    The debugger stopped on this line: CR_oldOnunload_182861812.apply(this, arguments);
    I have found no help so far in getting rid of this error. Since this is rendered by Crystal I have no access to this code.

    There's no way to modify an internal JavaScript within the viewer - does this exception also appear if you try viewing a report using ePortfolio Lite (the sample portal)? 
    The specific JavaScript is trying to invoke some cleanup after the browser is closed.
    Are you on the latest Service Pack for Crystal 10?
    Sincerely,
    Ted Ueda

  • CE 10: Stack overflow at line

    I am using Crystal 10, RAS 10 using Crystal Interactive Viewer.  The error occurs when closing the viewer
    window.
    I receive a java alert: "Stack Overflow at line: 63"
    When I debugged I found the error in the rendered javascript. 
    The debugger stopped on this line: CR_oldOnunload_182861812.apply(this, arguments);
    I have found no help so far in getting rid of this error.  Since this is rendered by Crystal I have no
    access to this code.

    There's no way to modify an internal JavaScript within the viewer - does this exception also appear if you try viewing a report using ePortfolio Lite (the sample portal)? 
    The specific JavaScript is trying to invoke some cleanup after the browser is closed.
    Are you on the latest Service Pack for Crystal 10?
    Sincerely,
    Ted Ueda

  • Stack overflow at line

    I am Crystal 10, RAS 10 using Crystal Interactive Viewer.  The errro occurs when closing the viewer window.
    I receive a java alert: "Stack Overflow at line: 63"
    When I debugged I fount the error in the rendered javascript. 
    The debugger stopped on this line: CR_oldOnunload_182861812.apply(this, arguments);
    I have found no help so far in getting rid of this error.  Since this is rendered by Crystal I have no access to this code.

    If you are using the Crystal Reports Application Server out of the box (e.g.; no code customization), please post to the query to the Business Objects Enterprise Administration forum:
    BI Platform
    If his is in a Java application, please post to the Java Development forum:
    Java SDK Application Development
    Thank you for your understanding,
    Ludek

  • Line numbers appearing with imported Word Doc - InDesign CS2

    For some reason I keep getting line numbers when I try to place a document from Word. I checked to see if Word had line numbering on..nope. I tried saving the file as a .txt and .rtf file and that doesn't help either. Any suggestions as to what I am doing wrong?
    Thanks all,
    ejo

    As it happens with standard text as well, it has nothing to do with the Word file.
    You probably re-defined your Basic Paragraph style to include paragraph numbers.

  • WebLogic Server crash and Stack Trace Log

    Hello? ^-^
    Current system details:
    SEQUENT Dynix/ptx v 4.4.7
    Classic VM (1.2.1, green threads)
    WebLogic 5.1
    Apache 1.3.20
    Current System crashes down too often and web service can not be available.
    Heres a stack trace of the process when it has locked up.
    The entire stack trace log file is...
    http://members.tripod.lycos.co.kr/bach1685/dump.txt
    Could it be possible to think this is the problem between JVM and OS library?
    If this is a problem of OS, I think that Just changing OS could solve the problem.
    How would I go about trying to figure out just where the problem is?
    Thanks for readming my broken English...^^

    Make sure you have a supported platform -
    http://www.weblogic.com/platforms/index.html
    For JDK 1.2.1 - pay attention to what the platform page says about setting JVMARGS.
    Mike
    Kim, Jihun <[email protected]> wrote:
    Hello? ^-^
    Current system details:
    SEQUENT Dynix/ptx v 4.4.7
    Classic VM (1.2.1, green threads)
    WebLogic 5.1
    Apache 1.3.20
    Current System crashes down too often and web service can not be available.
    Heres a stack trace of the process when it has locked up.
    The entire stack trace log file is...
    http://members.tripod.lycos.co.kr/bach1685/dump.txt
    Could it be possible to think this is the problem between JVM and OS
    library?
    If this is a problem of OS, I think that Just changing OS could solve
    the problem.
    How would I go about trying to figure out just where the problem is?
    Thanks for readming my broken English...^^

  • Printing line numbers in eclipse

    I'm on Windows XP and I must print out the line numbers when I print out source code. However, I can't find how to do this in eclipse. Does anyone know?? I've tried everything.

    never mind... I found it

  • Query Key Definition when Inheritance is present

    Let me describe the domain model I am working with. There is a ProjectAgreement class that is a Contract (via extends) that is a VersionedObject (via extends). There is also a ProjectAgreementVersion class that is a ContractVersion (via extends) that is an ObjectVersion (via extends). The domain model also specifies that a VersionedObject has a collection of ObjectVersion instances.
    From the data model perspective, there are four tables of interest : CONTRACT, PROJECT_AGREEMENT, CONTRACT_VERSION, and PROJECT_AGREEMENT_VERSION. The persistent VersionedObject and ObjectVersion attributes are captured in these tables. The CONTRACT_ID column is present on both CONTRACT and PROJECT_AGREEMENT tables and is the primary key in both those tables. The CONTRACT_VERSION_ID column is present on both CONTRACT_VERSION and PROJECT_AGREEMENT_VERSION and is the primary key on both those two tables. There is also a CONTRACT_FK column on the CONTRACT_VERSION table to house the one to many relationship there.
    What I am attempting to do is add a OneToOneQueryKey to the Descriptor, at Descriptor definition time, for ProjectAgreementVersion so that I can write an expression of the form projectAgreementVersionExpression.get("projectAgreementQueryKey").get("someAspectOfAProjectAgreementInstance") ... While TOPLink doesn't complain at startup, I do get an invalid query key exception at run time when this relationship is attempted to be traversed via this query key.
    Here is one version of the query key as I have it defined against the ProjectAgreementVersion Descriptor:
    OneToOneQueryKey projectAgreementQueryKey = new OneToOneQueryKey();
              projectAgreementQueryKey.setName("projectAgreementQueryKey");
              projectAgreementQueryKey.setReferenceClass(ProjectAgreement.class);
              ExpressionBuilder x = new ExpressionBuilder();
              projectAgreementQueryKey.setJoinCriteria(x.getField("CONTRACT_VERSION.CONTRACT_VERSION_ID").equal(x.getParameter("PROJECT_AGREEMENT_VERSION.CONTRACT_VERSION_ID"))
              .and(x.getField("PROJECT_AGREEMENT.CONTRACT_ID").equal(x.getParameter("CONTRACT_VERSION.CONTRACT_FK"))));
              result.addQueryKey(projectAgreementQueryKey);
    Anybody have some ideas of the right combination of getField() and getParameter() calls against the ExpressionBuilder so that the query key is valid in TOPLink's eyes? Could the problem be that I must define the query key via a descriptor amendment method?
    Thanks,
    Doug

    James, thanks for the response. I had originally created and added the OneToOneQueryKey against the ProjectAgreementVersion Descriptor as the Descriptor was being built. I later attempted to defer the QueryKey creation and addition to the Descriptor to Descriptor amendment time, but got the same result.
    I also verify the Descriptor's QueryKeys after adding the OneToOneQueryKey and at the time an Expression is being built to use the QueryKey. At both times, a QueryKey exists by the given name as well as how you suggested. It appears that the QueryKey is present on the ProjectAgreementVersion Descriptor, but is simply invalid. Here is the stack trace this is generated when the ReadAllQuery is executed with the built Expression that uses this QueryKey:
    [java] [2005-07-06 15:53:31.407] LOCAL EXCEPTION STACK:
    [java] EXCEPTION [TOPLINK-6015] (TopLink - 9.0.3 (Build 423)): oracle.topli
    nk.exceptions.QueryException
    [java] EXCEPTION DESCRIPTION: Invalid query key [projectAgreementQueryKey]
    in expression.
    [java] QUERY: ReadAllQuery(ProjectAgreement)
    [java] at oracle.toplink.exceptions.QueryException.invalidQueryKeyInExp
    ression(Unknown Source)
    [java] at oracle.toplink.internal.expressions.RelationExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.SQLSelectStatement.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.SubSelectExpression.norma
    lize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.FunctionExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.CompoundExpression.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.expressions.SQLSelectStatement.normal
    ize(Unknown Source)
    [java] at oracle.toplink.internal.queryframework.ExpressionQueryMechani
    sm.buildNormalSelectStatement(Unknown Source)
    [java] at oracle.toplink.internal.queryframework.ExpressionQueryMechani
    sm.prepareCursorSelectAllRows(Unknown Source)
    [java] at oracle.toplink.queryframework.CursorPolicy.prepare(Unknown So
    urce)
    [java] at oracle.toplink.queryframework.ReadAllQuery.prepare(Unknown So
    urce)
    [java] at oracle.toplink.queryframework.DatabaseQuery.checkPrepare(Unkn
    own Source)
    [java] at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown S
    ource)
    [java] at oracle.toplink.queryframework.ReadQuery.execute(Unknown Sourc
    e)
    [java] at oracle.toplink.publicinterface.Session.internalExecuteQuery(U
    nknown Source)
    [java] at oracle.toplink.threetier.ServerSession.internalExecuteQuery(U
    nknown Source)
    [java] at oracle.toplink.threetier.ClientSession.internalExecuteQuery(C
    lientSession.java:269)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Unknown S
    ource)
    [java] at oracle.toplink.publicinterface.Session.executeQuery(Unknown S
    ource)
    Any other ideas?
    Thanks,
    Doug

  • How to get Line numbers in KVM stack traces

    Hello!
    I am fairly new to kvm programming and might have missed the obvious. When my program dumps a stack trace under kvm it gives me an offset (I dont know what the number corresponds to) from the method but not source line numbers like I am used to seeing under J2SE. I complie the code using -g and run it using kvm_g. For example, I see soemething like
    java.lang.NullPointerException
    at myclass.mymethod(+5)
    at parentclass.parentmethod(+10)
    Where I dont know what the +5 or +10 stand for as it relates to my source code.
    Can somebody help with trying to correlate the stack trace to my source code.
    Thanks.
    Ranga.

    I would like to know too. Has anyone found an answer?

  • Is it possible to obtain line numbers in the stack trace of an exception

    Is it possible for e.StackTrace in the following code to contain line numbers?
    try
    catch(Exception e)
    LogStackTrace("Stack Trace:" + e.StackTrace);}
    Hong

    Thank you for your response.
    The linked article is for Windows Phone and it points out "it's not possible to deploy the PDB alongside the EXE/DLL". Is this also the case for Windows Store app, or Windows Store app is different and it can be deployed with a .pdb file as you
    pointed out?
    The Windows Store app package is like the following:
    My App_1.3.0.5_AnyCPU.appxupload
    It is a zip file that contains the following two files:
    My App_1.3.0.5_AnyCPU.appx
    My App_1.3.0.5_AnyCPU.appxsym
    Hong

Maybe you are looking for

  • How to connect oracle10g with dev10g

    hi all i installed oracle database10g then dev10g on winXP, everything was good but i can't connect the dev with the engin, the problem was i the TNS Protocole. any suggeetions?

  • BUG with antialiasing of two near figures

    Hi, Please consider two black squares (picture attached, just a simple illustration of a problem). Squares are precisely aligned to be side-by-side. And as you can see, there is an artifact between squares. Artifact was generated by Illustrator`s ant

  • PO Needs to Be Resent

    I created a PO, but there was a document error and need to resend it for approval. How would I do this? I also tried to cancel the PO, but since the approval status is "in process" I can't do that either.

  • Workflow Subscription Time out

    Hi, I did a simple subscription workflow on manual activity. When status change from Pending to In Progress, I set a field. The workflow works fine almost all day. However, I had seen many time out exceptions on event viewer e some other systems work

  • Launch as administrator warning - captivate 6

    Every time I open Captivate 6 the program suggests that I launch the program as administrator to make sure that all the features of the program works. See attached screenshot. How can I get rid of that?