Why am I getting (Unknown Source) instead of a line number?

In the past couple of weeks, using Tomcat with a Servlet/java bean app, I've started getting exceptions listing such as this:
Exception in: R( /webman + /servlet/CreateJobServlet + null) - java.lang.NullPointerException
at CreateJobServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
The thing that bothers me is the "(Unknown Source)" bit. I no longer get the line numbers where the error occured on any of my source files, whereas I'm sure I DID get line numbers a few weeks ago. I thought it might have to do with my changing to JDK1.4, but after changing back to 1.3, the problem persists. Why are the line numbers no longer available, and what can I do to fix it? I've always accepted the frustration of getting NullPointerExceptions in JSP pages, but I don't want to be forced to put lots of System.outs in to help me track down the problems in compiled files!!

It could be one of the following:
- you have not specified -g on compile
(means debug info, check IDE or ANT task if you dont
use command line)
- you have specified -O on compile
(means optimize, which could hinder debug infos)
bottom line:
you should have debuginfos on and optimze off during
compile. Most IDEs have debug info default-on during
compile, when using ANT most people forget to define
the debug=on
<javac srcdir="${src}"
destdir="${build}"
classpath="xyz.jar"
debug="on"
/>
Hope this helps

Similar Messages

  • Compiling with ant--getting 'Unknown Source' in my exceptions

    I am compiling using this ant stanza:
         <property name="src" value="src"/>
         <property name="resources" value="src/resources"/>
         <property name="target" value="target"/>
        <target name="compile">
               <javac sourcepath="" srcdir="${src}"
                      destdir="${target}"  compiler="javac1.5" debuglevel="lines,source">
                    <include name="**/*.java"/>
               </javac>   
             <copy todir="${target}/resources">
                 <fileset dir="${resources}"/>
               </copy>
        </target> Note the debuglevel="lines,source" specification. But I'm still getting 'Unknown Source' in exceptions in this code. Yes, I've done a clean compile. Yes, I checked, and it's recreating the files and the jars. I'm reasonably sure there aren't any other build.xml files I could be running.
    I don't see why this wouldn't work.

    I have the same problem. Even If I have something like this.
    <javac debug="on" debuglevel="lines,vars,source" ... />

  • Why do I get unknown error when I try to add to my iCloud storage

    Why do I get unknown error when I try and add storage to iCloud account ? I have funds in account but I do not have a credit card # on file.

    This didn't solve it for me. Card details already there, and iTunes purchases working fine.
    But just to be sure I' have re-entered and resaved my card info and checked, re-entered and re-checked my appleID info.
    Still not working.
    Anyone got any other suggestions?

  • Getting  "unknown source" when creating new applicatoin

    Hi,
    Any idea why am I getting an error message "unknown source" everytime I create a new application?
    The past two days I reran "Configure Database " , “Deploy to App Server” , “Product Instance Registration”, "Data Source Configure" , create new application using new Product instance and new Configure Data Source, but still am getting the message "unknown source" . I attch the Planning Tomcat log. I don't see that error when I start Planning.
    Have you seen that error before?
    in cpp-Created Application:PLAN2 1051414
    java.lang.NullPointerException
    at com.hyperion.planning.HspJSHomeImpl.setProductInstanceInfo *(Unknown Source)*   at com.hyperion.planning.HspManageApplication.deleteDataSourceFromHpPiXm
    l(Unknown Source)
    at com.hyperion.planning.HspManageApplication.createApp*(Unknown Source)*
    at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication
    +(Unknown Source)+
    at HspCreateApp.Handle(Unknown Source)
    at HspCreateApp.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:237)
    Edited by: user643332 on Apr 15, 2009 9:06 AM

    Solution:
    Need to set the parameter Use_CustomerExit_ParameterProvider of the portal service com.sap.portal.appintegrator to TRUE and then restart it.
    Roy

  • Why do I get ?'s instead of images when e-mails are received?

    Why do I get a question mark instead of an image when I receive e-mails?

    When you receive email in HTML format (that is, as a web page), the message will usually contain links to images hosted on a remote server. When you display those images, the sender of the message will know that you've read his message, when you read it, who your ISP is, and approximately where you are. You may regard this as an invasion of your privacy. If the message is spam, then your address has been confirmed as valid and you've been confirmed as someone who opens spam messages. That will ensure you get even more spam.
    If you're using the Mail application, you can prevent that information from being sent out. Select
    Mail ▹ Preferences ▹ Viewing
    from the menu bar and uncheck the box marked
    Display remote images in HTML messages
    You'll still be able to display images when you want to by clicking the button marked
    Load Images
    in the top right corner of the message window. If you do want the images to load automatically, check the box.

  • Getting Unknown Source Error While Deploying the Planning Application

    Hi,
    Getting following error while trying to Deploy Planning Application from BPMA
    Started Time : Tuesday, January 08, 2008 5:43:40 PM
    Submitted Time : Tuesday, January 08, 2008 5:43:40 PM
    Last Updated Time : Tuesday, January 08, 2008 5:44:32 PM
    User Name : hpadmin
    Process Name :
    Thread : 0
    Server : DimServer
    Detail : App Creation failed with Exceptionjava.lang.RuntimeException: Exception occurred while creating the application. Check log for details     at com.hyperion.planning.appdeploy.HspAppDefinition.deployAppFromXML(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition.access$000(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition$1.run(Unknown Source)

    Hi,
    I am getting the same error:-
    Started Time : Tuesday, February 26, 2008 4:14:31 PM
    Submitted Time : Tuesday, February 26, 2008 4:14:31 PM
    Last Updated Time : Tuesday, February 26, 2008 4:15:39 PM
    User Name : hpadmin
    Process Name :
    Thread : 0
    Server : DimServer
    Detail : App Creation failed with Exceptionjava.lang.RuntimeException: Exception occurred while creating the application. Check log for details     at com.hyperion.planning.appdeploy.HspAppDefinition.deployAppFromXML(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition.access$000(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition$1.run(Unknown Source)
    1---Have created new user for new App as well datasource
    2-Bounced the EPMA as well planning server but no avail.
    how I can I get detail log ? or if is it possible to tell me which directory to look into
    thanks in advance
    Sanjay

  • Why Do I Get "Unknown" Publisher?

    I am wondering why I always get an "unknown publisher" every time that I try to install the Java EE 6 SDK on my Windows 7 64-bit system?? I always get "Oracle" as the pubisher when I first install the Java Standard Edition SDK. What goes wrong in the downloading process that I repeatedly get this error message?

    Don't know (this is not Oracle tech support, just a forum for programmers). You can always just install Glassfish manually, the JEE SDK is only a bundle package with quite a bad installer that needs special care on 64 bits systems. You're not the only one having trouble installing it out of the box. There was a thread some time ago where someone gave the solution how to properly install it, which required a command line switch for the installer, but I didn't keep a bookmark to it.

  • Why do I get "unknown error" when trying to download apps with my iPhone when I put the correct password in?

    I keep getting "unknown error" message come up when I try to get an app. I have put my password in correctly but I then get a message saying I've put my password in incorrectly too many times. So I change my password but I still get the "unknown error" message. I have changed my password 4 times now and nothing is working

    I received this email from Apple and this corrected the problem for me...  I only had to reset the iTunes cache
    1) Open iTunes
    2) At the top menu, click File > Preferences (iTunes > Preferences on a Mac)
    3) In the Preferences menu, click the Advanced tab
    4) In the Advanced menu, you should see a button that says "Reset Cache". Please click this button.

  • Why do I get "unknown validation error" when I sign into MobileME and Aperture on my laptop?

    I am unable to sign into my Mobile Me in System Preference and therefore Aperture will not load photos from my stream.  When I attempt to do so I get "Unknown Validation Error    Your MobileMe member name or password may be invalid. Please enter a different name or password"
    Yet I am able to sign into iCloud and all my devices with the EXACT same Apple ID and password. What's up?

    I hate to break it to you, but MobileMe no longer exists.

  • Why do I get "Unknown user name or bad password" on Windows 7 when trying to connect to an SMB share on my Mac?

    Before installing the update to 10.7.3 I could connect to an SMB share on my Mac from Windows 7 but I can't any longer. When I try I get the error "Unknown user name or bad password" on the Windows 7 system.
    When I try to connect using the "net use..." command I get the error: "System error 86 has occurred".
    Does anyone know how to resolve this? What really confuses me is that it was working fine until I installed the update to 10.7.3.

    Check the Wins Tab in the Advanced section of Network in system preferences.
    If you don't have the same workgroup name and the correct NetBIOS name showing up in the WINS tab you will get the Bad username or password.
    I know I deal with this everyday.
    There is something wrong with Lion and it does not automatically fill in those entries in the WINS tab.
    What I have to do on every reboot/startup is open System preferences go to Sharing and uncheck File Sharing then recheck it. That will fill in the WINS tab entries.

  • Why did I get Unknown Error Message -50??

    Hi, Last weekend I updated and changed a bunch of album art on my 60 GB video iPod, and this morning I noticed a couple of songs still had the old picture. So going through this before, I hooked up my iPod to my computer and unchecked the "Display Album Art" and then disconnected my iPod when it finished updating. Then I plugged it back in and re-checked the "Display Album Art" check box and it gets all the way to the end and then I get this error message "Undable to update iPod Unknown Error - 50". I even rebooted my computer and tried this and no luck.
    Does anyone have any ideas? I am thinking that I need to reload the iPod and wow I did so much work to the songs stored on my iPod I'd have to think I lost it all.
    Thanks in advance for your help.
    Have A Great Day !!

    gee, no responses thanks peoples

  • Why am I getting a date instead of a sum?

    I admit I am no spreadsheet wiz, but for years I simply added columns by typing "=sum(A1:A24)" and got a sum. Now, in my new never-before-used Numbers, I get a date: January 20, 2020. Yes, the columns of figures are formatted for currency. I am going nuts not being able to figure this out. Remember when Apple software was easy? I do. This isn't.

    From the Formulas and Functions User Guide:
    The SUM function returns the sum of a collection of numbers.
    There is one case where all values do not have to be of the same type. If exactly one date/time value is included, any number values are considered to be numbers of days and all numbers and duration values are added to the date/time value.
    Date/time values can’t be added together, so only one date/time value (as discussed above) is permitted.
    So, if there is exactly one typo that forms a date/time value, Numbers has no way of knowing that anything is invalid. The fact that the result is a date is, in effect, your error notice, and it indicates that exactly one of the entries being summed is a date.

  • Why do i get integer values instead of decimals when selecting a mysql table through an oracle xe DB?

    Hi
    My company just started a new project that implies migrating every hour operational data from a mysql database located at another company to our main DB (oracle10gR2). Between these two DB, we have an oracle XE DB which contains the database links to both DB and a procedure to get (from mysql) and insert (oracle10g) the values. What happens is that in the mysql DB, the values have decimals and, when i select the table in oracle, i only see integer values (no decimals). Here is an example of the select i use:
    SELECT "v_hour", "v_date", "v_type", "v_tabstamp","v_value"
    FROM "tab1"@mysql;
    How can i work around this problem?
    Many thanks!

    Maybe just a HS_LANGUAGE setting issue.
    You could try that:
    1a) in the gateway init file, please set HS_LANGUAGE=GERMAN_GERMANY.WE8ISO8859P1
    2a) now open a new SQL*Plus session ans select from your table using the gateway based database link
    => if the values are now including the decimal part then your foreign database is set up to use a comma as the decimal separator and you have to make sure that the HS_LANGUAGE contains a territory that uses as decimal separator a comma.
    If you still do not get the decimal values, then change it to:
    1b) HS_LANGUAGE=american_america.we8iso8859P1
    2b) Make sure you start again a new SQL*Plus session (the gateway init file is only read when you use the database link in your session for the first time (or explicit closed it before). Select again from your table.
    => is the decimal part now visible?
    More details can be found in the gateway note: Gateway and Decimal Digits(Doc ID 1453148.1) available from My Oracle Support portal.
    - Klaus

  • Why am I getting Time Warner instead of Firefox after I downloaded Firefox?

    I downloaded the latest Mozilla Firefox yesterday, and after several tries to use it, I'm getting Time Warner website. The only part of Firefox I can see on the monitor is at the top right corner and it's part of a ribbon across the top and includes Yahoo and Google. Perhaps this is the correct information I should have received but I expected a stand-alone Firefox website from which to work.
    Did it not download properly, or is this what I should have and just haven't discovered how to use it, or maybe is this an error? I have Windows 7, 64 bit, a wireless setup, haven't installed anything else lately and I seriously would like to enable Firefox because I read good things about it.

    Do this happen when you try to go to a website and it redirects you to Time Warner's site or is it something different? I have TWC and it redirects me every time I enter a non-valid URL.
    Can you give me a screenshot so I know what you're seeing? Please see [[How do I create a screenshot of my problem?]] to create a screenshot<br>
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.

  • HT204150 why do i get unknown contacts adding up to my contact list while using icloud over wifi ?

    pls anyone there with the answer

    Welcome to the Apple Community.
    Are you allowing someone else to use your Apple ID.

Maybe you are looking for

  • RE: [iPlanet-JATO] EJB in iMT

    Matt, Thanks for your clarifications.That helps a lot. We have found in a lot of cases, that your new components can be implemented as JATO ModelsI don't understand this.Is it that EJB acts as the Data Model or something Thanks, Gajendran. "Matthew S

  • Org.xml.sax.SAXParseException: Line 1, Column 1 : XML-0108: (Fatal Error)

    Hi , I am using SAX parser in a java code , which compiles and parses an xml correctly in the local JVM. But the same code in OC4J(10g) - version 9.0.4.2 throws the following exception when traced the error stack. 08/04/04 17:48:40 Loading file worki

  • Challenge & Response error messages in OAM

    Hi, I want to change the challenge response error messages in OAM. I am not able to locate the file which is responsible for the error messages (e.g old response is not correct) .. Can anyone update on this.. Thanks inadvance.. Regards, Srikanth

  • Where to find API documentation on massage handling from Email to PDA?

    Where to find API documentation on massage handling from Email to PDA? and vice versa..?

  • Deleting files migrated during initial setup??

    Hello everyone. I'm hoping someone could help me out on this so please bear with me. I recently purchased a new 15", 2.3 GHz Intel Core i7, 500GB MBP and during the computer's initial set up, I was asked if I wanted to migrate all my files from a dif