Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error: java.lang.NullPointerException(runs fine locally but not on the server)
Error: java.lang.NullPointerException [message #1012424] Thu, 21 February 2013 14:39 Go to next message
Nadeem B is currently offline Nadeem BFriend
Messages: 3
Registered: February 2013
Junior Member
Hi,

I am new to using eclipse and tomcat. I am trying to get my web application working server side. I am getting a strange error message "Error: java.lang.NullPointerException" when I run a query in my deployed web application from the server. The server runs Apache web server 2.2, tomcat 5.5.27, and Java 1.6.0_26 and MySQL version 5.0.95. The web application runs fine locally within eclipse. However deployed on the server (via an war export and upload through lamda probe) it suddenly throws an excepction. I have checked web.xml, servlet config, properties files all seem ok. I feel like I have exhauseted every possible option but I am completely stumped as to why this issue is occuring. I know this is rather specific but if anyone can help or point me in the right direction I would be really grateful. Also if posting any config files etc would help then I can do that also. Hope someone can help!

Cheers
Re: Error: java.lang.NullPointerException [message #1012578 is a reply to message #1012424] Thu, 21 February 2013 20:41 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2/21/2013 12:40 PM, Nadeem B wrote:
> Hi,
>
> I am new to using eclipse and tomcat. I am trying to get my web
> application working server side. I am getting a strange error message
> "Error: java.lang.NullPointerException" when I run a query in my
> deployed web application from the server. The server runs Apache web
> server 2.2, tomcat 5.5.27, and Java 1.6.0_26 and MySQL version 5.0.95.
> The web application runs fine locally within eclipse. However deployed
> on the server (via an war export and upload through lamda probe) it
> suddenly throws an excepction. I have checked web.xml, servlet config,
> properties files all seem ok. I feel like I have exhauseted every
> possible option but I am completely stumped as to why this issue is
> occuring. I know this is rather specific but if anyone can help or point
> me in the right direction I would be really grateful. Also if posting
> any config files etc would help then I can do that also. Hope someone
> can help!
>
> Cheers

There is much more detail to this than you give. In what class and
method does the NPE occur? You should see a stack trace in
logs/catalina.out (where that log file is depends on how/where you
installed Tomcat).

You're probably missing one of the JARs you depend on. When you add a
library to your Build Path, you need also to include it in your
Deployment Assembly if you want the WAR Eclipse builds to contain it.

This question really belongs in the Eclipse web tools platform (not
newcomers') forum, but you can keep using this thread if you like.
Re: Error: java.lang.NullPointerException [message #1012587 is a reply to message #1012578] Thu, 21 February 2013 20:50 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2/21/2013 1:41 PM, Russell Bateman wrote:
> On 2/21/2013 12:40 PM, Nadeem B wrote:
>> [snip]
>
> There is much more detail to this than you give. In what class and
> method does the NPE occur? You should see a stack trace in
> logs/catalina.out (where that log file is depends on how/where you
> installed Tomcat).
>
> You're probably missing one of the JARs you depend on. When you add a
> library to your Build Path, you need also to include it in your
> Deployment Assembly if you want the WAR Eclipse builds to contain it.
>
> This question really belongs in the Eclipse web tools platform (not
> newcomers') forum, but you can keep using this thread if you like.

Oops, I wasn't very helpful in giving the path. It might be something like:

/var/log/tomcat5/catalina.out
Re: Error: java.lang.NullPointerException [message #1012851 is a reply to message #1012587] Fri, 22 February 2013 10:30 Go to previous messageGo to next message
Nadeem B is currently offline Nadeem BFriend
Messages: 3
Registered: February 2013
Junior Member
Thank you for your advice. Okay so I had a look at the log file you mentioned. Seems there is two being used..

The stack trace for catalina.out show this :-

java.lang.NullPointerException
at java.io.StringReader.(StringReader.java:33)
at org.ngrl.alignment.blast.BLASTReportParser.parseToBioJavaResults(BLASTReportParser.java:64)
at org.ngrl.alignment.blast.BLASTReportParser.parse(BLASTReportParser.java:77)
at org.ngrl.alignment.blast.BLASTProgram.singleRun(BLASTProgram.java:130)
at org.ngrl.snpcheck.SNPCheck.performCheckOnExistingPair(SNPCheck.java:160)
at org.ngrl.snpcheck.SNPCheck.performCheckOnExistingPair(SNPCheck.java:136)
at org.ngrl.snpcheck.service.SNPCheckRemote.getResultDto(SNPCheckRemote.java:130)
at org.ngrl.snpcheck.service.SNPCheckRemote.performCheckOnExistingPair(SNPCheckRemote.java:79)
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:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy161.performCheckOnExistingPair(Unknown Source)
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:597)
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
at org.directwebremoting.spring.DwrController.handleRequestInternal(DwrController.java:234)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.concurrent.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:95)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:662)


The stack trace for catalina.2013-02-22.log shows this:-

Feb 22, 2013 9:58:48 AM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.log4j.Appender. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1272)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod0(Class.java:2679)
at java.lang.Class.getMethod(Class.java:1603)
at org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod(MethodUtils.java:535)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:209)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:162)
at org.jstripe.tomcat.probe.tools.logging.log4j.Log4JLoggerAccessor.populateAppenders(Log4JLoggerAccessor.java:41)
at org.jstripe.tomcat.probe.tools.logging.log4j.Log4JLoggerAccessor.getAppenders(Log4JLoggerAccessor.java:26)
at org.jstripe.tomcat.probe.tools.logging.commons.CommonsLoggerAccessor.getDestinations(CommonsLoggerAccessor.java:48)
at org.jstripe.tomcat.probe.controllers.logs.ListLogsController.handleRequestInternal(ListLogsController.java:94)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
at org.jstripe.tomcat.probe.ProbeServlet.doDispatch(ProbeServlet.java:49)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:120)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:662)
Feb 22, 2013 10:08:45 AM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.log4j.Appender. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1272)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod0(Class.java:2679)
at java.lang.Class.getMethod(Class.java:1603)
at org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod(MethodUtils.java:535)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:209)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:162)
at org.jstripe.tomcat.probe.tools.logging.log4j.Log4JLoggerAccessor.populateAppenders(Log4JLoggerAccessor.java:41)
at org.jstripe.tomcat.probe.tools.logging.log4j.Log4JLoggerAccessor.getAppenders(Log4JLoggerAccessor.java:26)
at org.jstripe.tomcat.probe.tools.logging.commons.CommonsLoggerAccessor.getDestinations(CommonsLoggerAccessor.java:48)
at org.jstripe.tomcat.probe.controllers.logs.ListLogsController.handleRequestInternal(ListLogsController.java:94)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
at org.jstripe.tomcat.probe.ProbeServlet.doDispatch(ProbeServlet.java:49)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:120)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:662)


I hope the above is clear I tried to copy and past the relevant part from the trace I felt was the cause of the issue. However I still don't get whats going on. Can you shed any light? Hope you can help Smile
Re: Error: java.lang.NullPointerException [message #1012858 is a reply to message #1012851] Fri, 22 February 2013 10:43 Go to previous messageGo to next message
Nadeem B is currently offline Nadeem BFriend
Messages: 3
Registered: February 2013
Junior Member
and I also found this bit I should add in catalina.out :-

2013-02-22 10:36:46,879 WARN [org.directwebremoting.dwrp.BaseCallMarshaller] - <--Erroring: batchId[0] message[java.lang.NullPointerException]>
Feb 22, 2013 10:37:37 AM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.log4j.Appender. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
Re: Error: java.lang.NullPointerException [message #1012941 is a reply to message #1012851] Fri, 22 February 2013 13:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 02/22/2013 03:30 AM, Nadeem B wrote:
> Thank you for your advice. Okay so I had a look at the log file you
> mentioned. Seems there is two being used..
>
> The stack trace for catalina.out show this :-
>
> java.lang.NullPointerException
> at java.io.StringReader.(StringReader.java:33)
> at
> org.ngrl.alignment.blast.BLASTReportParser.parseToBioJavaResults(BLASTReportParser.java:64)
>
> at
> org.ngrl.alignment.blast.BLASTReportParser.parse(BLASTReportParser.java:77)
> at org.ngrl.alignment.blast.BLASTProgram.singleRun(BLASTProgram.java:130)
> at org.ngrl.snpcheck.SNPCheck.performCheckOnExistingPair(SNPCheck.java:160)
> at org.ngrl.snpcheck.SNPCheck.performCheckOnExistingPair(SNPCheck.java:136)
> at
> org.ngrl.snpcheck.service.SNPCheckRemote.getResultDto(SNPCheckRemote.java:130)
>
> at
> org.ngrl.snpcheck.service.SNPCheckRemote.performCheckOnExistingPair(SNPCheckRemote.java:79)
>
> [snip]
>
> I hope the above is clear I tried to copy and past the relevant part
> from the trace I felt was the cause of the issue. However I still don't
> get whats going on. Can you shed any light? Hope you can help :)

First, catalina.out contains what you were reporting. The second entry
you posted is from an "archived log"; Tomcat rolls this log and only
writes actively to catalina.out. It's so you can do as you wish to older
entries (delete those files, archive them somewhere else, scrape them
for reports using Splunk, etc.).

Second, this isn't an Eclipse forum question, but a beginning Java one.
I'll try to help a bit anyway.

You're not missing anything or you'd get a ClassNotFound error. I was
thinking of something else yesterday when I answered the first time. CNF
is the first thing to think of when there's a discrepancy between how
something behaves outside of Eclipse versus inside.

In the way you're calling StringReader, something's wrong. If method
BLASTReportParser.parseToBioJavaResults() is under your control, or you
have the source to it, line 64 is the call in StringReader. Look there
and/or crawl back up the stack (which is illustrated by the stack trace
in reverse order, deepest to most shallow for the thread) examining the
lines numbered in the trace. Ask yourself why something you're providing
to StringReader is either null or its effect causes this class to
attempt to manipulate an object that's null because of what you pass.
You should be able to intuit your problem, which would include
formulating a theory on why this occurs in natural deployment and not
when under Eclipse's control.

I hope this helps.
Re: Error: java.lang.NullPointerException [message #1012947 is a reply to message #1012858] Fri, 22 February 2013 13:59 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 02/22/2013 03:43 AM, Nadeem B wrote:
> and I also found this bit I should add in catalina.out :-
>
> 2013-02-22 10:36:46,879 WARN
> [org.directwebremoting.dwrp.BaseCallMarshaller] - <--Erroring:
> batchId[0] message[java.lang.NullPointerException]>
> Feb 22, 2013 10:37:37 AM org.apache.catalina.loader.WebappClassLoader
> loadClass
> INFO: Illegal access: this web application instance has been stopped
> already. Could not load org.apache.log4j.Appender. The eventual
> following stack trace is caused by an error thrown for debugging
> purposes as well as to attempt to terminate the thread which caused the
> illegal access, and has no functional impact.
> java.lang.IllegalStateException

Is log4j-nnn.jar in your deployment? Is log4j.properties doing what you
want even when running under Eclipse?

Etc.

Ultimately, why is BaseCallMarshaller only warning of a NPE. That class
probably belongs to you.

It's bewildering at first, but perserverence will make you more
comfortable with finding and fixing errors using the stack trace.
Previous Topic:Why is the Eclipse main download page not working?
Next Topic:Need connection object used by EntityManager
Goto Forum:
  


Current Time: Thu Apr 25 17:21:44 GMT 2024

Powered by FUDForum. Page generated in 0.09102 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top