NullPointerException bug
when enabling my installed application, or uninstalling it, I get a nullpointerexception:
SEVERE: Servlet.service() for servlet [RESTServletV1] in context with path [/gateway] threw exception
java.lang.NullPointerException
at com.opentext.otag.common.notifications.NotificationService.writeResponse(NotificationService.java:159)
at com.opentext.otag.common.notifications.NotificationService.writeJsonFromEvents(NotificationService.java:380)
at com.opentext.otag.common.notifications.Connection.send(Connection.java:70)
at com.opentext.otag.common.notifications.ConnectionSet.broadcastMessage(ConnectionSet.java:85)
at com.opentext.otag.common.notifications.ConnectedUsers.broadcastMessageLocally(ConnectedUsers.java:64)
at com.opentext.otag.common.notifications.ConnectedUsers.broadcastMessage(ConnectedUsers.java:59)
at com.opentext.otag.common.notifications.NotificationService.broadcastInternalMessage(NotificationService.java:314)
at com.opentext.otag.common.notifications.NotificationService.broadcastInternalMessage(NotificationService.java:295)
at com.opentext.otag.rest.apps.App.notifyClients(App.java:739)
at com.opentext.otag.rest.impl.AppsImpl.notifyClients(AppsImpl.java:420)
at com.opentext.otag.rest.impl.AppsImpl.uninstallApp(AppsImpl.java:275)
at com.opentext.otag.rest.v1.Apps.uninstallApp(Apps.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.opentext.otag.rest.util.JsonpFilter.doFilter(JsonpFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Comments
-
also, it's impossible to uninstall the application. I have to reinstall AppWorks from scratch to work around it.
0 -
This is very unusual. The stack trace above is from an attempt to uninstall, and the NPE explains why you can't uninstall the app. Why it's happening is the mystery: it looks as though the Gateway has a back-channel connection (to /notifications, typically) with no corresponding HttpServletResponse object. I have never seen this before.
Some questions that might help identify the problem:
Did this happen again after you reinstalled AppWorks, or just the one time?
With your app not installed (fresh AppWorks install), are you able to install and uninstall other apps?
Is the thing you are trying to enable an app (html5 in mobile.zip) only, or is it a service (includes server-side Java)?
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 Services
- 40 OpenText Hackathon
- 33 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 901 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 127 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax