BJ wrote:
>Sun app server = Sun Java System Application Server 9.1 (build b58c-fcs)
>When trying to bring up the wsdl file of the webservice, I get the following
>error:
>
>Logger
>
>javax.enterprise.system.container.web
>Name-Value Pairs
>
>_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=ff974e19-29cf-4177-8e5e-9ee1c2c4fe57;
>Record Number
>
>161
>Message ID
>
>StandardWrapperValve[OrderManagerService]
>Complete Message
>
>PWC1406: Servlet.service() for servlet OrderManagerService threw exception
>java.lang.NullPointerException
>at
>us.co.douglas.ordermanagement.filter.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.
>java:51) at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
>at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
>at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
>at
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
>at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
>at
>org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
>at
>org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
>at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
>at
>org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
>at
>org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
>at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
>at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
>at
>org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
>at
>org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
>at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
>at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
>at
>com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
>at
>com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
>at
>com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
>at
>com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
>at
>com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
>at
>com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
>at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>at
>com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
>
>
It's hard to say what's causing the NPE without having access to the
source code of
us.co.douglas.ordermanagement.filter.HibernateSessionRequestFilter,
which is the
class that is triggering the NPE.
Do you happen to have the source code for this class?
Thanks,
Jan