Steps to reproduce:
1. Checkout the glassfish-samples.
2. CD to glassfish-samples/ws/javaee6/rest/message-board-war
3. Edit/Set the properties in ../../../bp-project/build.properties
4. asadmin start-domain domain1
5. asadmin start-database
6. ant run
7. The application get deployed as expected
Expected behavior:
The page at http://localhost:8080/message-board-war/ gets loaded in a browser
window. All the messages should be seen in the page on load, or when the "list
all messages" button is clicked.
Current behavior:
The page gets loaded, but shows a 500 Error in the div which is supposed to
list the messages. The server log shows the following exception:
[#|2009-04-29T11:51:55.856+0530|SEVERE|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=20;_ThreadName=Thread-1;|StandardWrapperValve[Jersey
Web Application]: PWC1406: Servlet.service() for servlet Jersey Web Application
threw exception
java.lang.NullPointerException
at
com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:87)
at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
at
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
at
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1461)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:293)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:187)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:656)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:351)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:249)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:196)
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:740)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:631)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:900)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:162)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Environment
Operating System: All
Platform: All
Affected Versions
[javaee5]