Note that there are some explanatory texts on larger screens.

plurals
  1. POJBoss Beans @Inject throwing a null exception
    primarykey
    data
    text
    <p>I have a bean which is injected in a class which is throwing a null pointer exception. </p> <p>exception </p> <pre><code>org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) </code></pre> <hr> <p>The funny thing is that the same code works on another computer. But same settings and same code. Can anyone help out?</p> <hr> <p>Edit</p> <p>code: </p> <p>@Inject private NameBean nameBean;</p> <pre><code>@GET @Produces("application/json") @Path("/abc") public String getname() { return nameBean.getName().toJSON().toString(); } </code></pre> <hr> <p>JBoss Version 7.1.1</p> <hr> <p>OS Windows 7</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload