Hello,
I am making a EAR of the OFBIZ for Wesphere 6 and receipt errors of NullPointer in the classes of the BeanShell. I was watching the code and arrives until the point of the error that is BshUtil.getMasterInterpreter(null) when a Interpreter is created. You would have some idea? There is some example of template of creation of the EAR for Websphere or another server, I thank for it. Thanks and greetings. It follows log: [21/11/06 18:01:52:062 GMT-03:00] 00000042 BSFManager E Exception : [21/11/06 18:01:52:094 GMT-03:00] 00000042 BSFManager E TRAS0014I: A seguinte exce‡Æo foi registrada java.lang.NullPointerException at sun.misc.Resource.getBytes(Resource.java:108) at java.net.URLClassLoader.defineClass(URLClassLoader.java:471) at java.net.URLClassLoader.access$500(URLClassLoader.java(Inlined Compiled Code)) at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java(Compiled Code)) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code)) at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:170) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:170) at org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:145) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:260) at bsh.classpath.ClassManagerImpl.plainClassForName(ClassManagerImpl.java:202) at bsh.classpath.ClassManagerImpl.classForName(ClassManagerImpl.java:176) at bsh.NameSpace.classForName(NameSpace.java:844) at bsh.NameSpace.getImportedClassImpl(NameSpace.java:820) at bsh.NameSpace.getClassImpl(NameSpace.java:737) at bsh.NameSpace.getClass(NameSpace.java:692) at bsh.Name.consumeNextObjectField(Name.java:282) at bsh.Name.toObject(Name.java:202) at bsh.Name.toObject(Name.java:185) at bsh.NameSpace.get(NameSpace.java:174) at bsh.Interpreter.get(Interpreter.java:697) at bsh.Interpreter.getu(Interpreter.java:709) at bsh.Interpreter.<init>(Interpreter.java:196) at bsh.Interpreter.<init>(Interpreter.java:211) at bsh.Interpreter.<init>(Interpreter.java:245) at org.ofbiz.base.util.BshUtil.getMasterInterpreter(BshUtil.java:145) at org.ofbiz.base.util.OfbizBshBsfEngine.initialize(OfbizBshBsfEngine.java:76) at org.apache.bsf.BSFManager$9.run(Unknown Source) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java:351) at org.apache.bsf.BSFManager.loadScriptingEngine(Unknown Source) at org.apache.bsf.BSFManager.exec(Unknown Source) at org.jpublish.action.ScriptAction.execute(ScriptAction.java:114) at org.jpublish.action.ActionWrapper.execute(ActionWrapper.java:93) at org.jpublish.action.ActionManager.executeGlobalActions(ActionManager.java:288) at org.ofbiz.webapp.view.JPublishWrapper.executeGlobalActions(JPublishWrapper.java:144) at org.ofbiz.webapp.view.JPublishWrapper.render(JPublishWrapper.java:320) at org.ofbiz.webapp.view.JPublishViewHandler.render(JPublishViewHandler.java:84) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:196) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:77) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:626) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) . java.lang.NullPointerException at sun.misc.Resource.getBytes(Resource.java:108) at java.net.URLClassLoader.defineClass(URLClassLoader.java:471) at java.net.URLClassLoader.access$500(URLClassLoader.java(Inlined Compiled Code)) at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java(Compiled Code)) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code)) at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:170) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:170) at org.ofbiz.base.util.CachedClassLoader.loadClass(CachedClassLoader.java:145) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:260) at bsh.classpath.ClassManagerImpl.plainClassForName(ClassManagerImpl.java:202) at bsh.classpath.ClassManagerImpl.classForName(ClassManagerImpl.java:176) at bsh.NameSpace.classForName(NameSpace.java:844) at bsh.NameSpace.getImportedClassImpl(NameSpace.java:820) at bsh.NameSpace.getClassImpl(NameSpace.java:737) at bsh.NameSpace.getClass(NameSpace.java:692) at bsh.Name.consumeNextObjectField(Name.java:282) at bsh.Name.toObject(Name.java:202) at bsh.Name.toObject(Name.java:185) at bsh.NameSpace.get(NameSpace.java:174) at bsh.Interpreter.get(Interpreter.java:697) at bsh.Interpreter.getu(Interpreter.java:709) at bsh.Interpreter.<init>(Interpreter.java:196) at bsh.Interpreter.<init>(Interpreter.java:211) at bsh.Interpreter.<init>(Interpreter.java:245) at org.ofbiz.base.util.BshUtil.getMasterInterpreter(BshUtil.java:145) at org.ofbiz.base.util.OfbizBshBsfEngine.initialize(OfbizBshBsfEngine.java:76) at org.apache.bsf.BSFManager$9.run(Unknown Source) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java:351) at org.apache.bsf.BSFManager.loadScriptingEngine(Unknown Source) at org.apache.bsf.BSFManager.exec(Unknown Source) at org.jpublish.action.ScriptAction.execute(ScriptAction.java:114) at org.jpublish.action.ActionWrapper.execute(ActionWrapper.java:93) at org.jpublish.action.ActionManager.executeGlobalActions(ActionManager.java:288) at org.ofbiz.webapp.view.JPublishWrapper.executeGlobalActions(JPublishWrapper.java:144) at org.ofbiz.webapp.view.JPublishWrapper.render(JPublishWrapper.java:320) at org.ofbiz.webapp.view.JPublishViewHandler.render(JPublishViewHandler.java:84) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:196) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:77) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:626) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) [21/11/06 18:01:52:141 GMT-03:00] 00000042 SystemOut O 117438 (WebContainer : 2) [ ControlServlet.java:199:ERROR] ---- exception report ---------------------------------------------------------- Error in request handler: Exception: org.ofbiz.base.util.GeneralException Message: JPublish execution error (unable to load language: beanshell) ---- stack trace --------------------------------------------------------------- org.ofbiz.base.util.GeneralException: JPublish execution error (unable to load language: beanshell) org.ofbiz.webapp.view.JPublishWrapper.render(JPublishWrapper.java:348) org.ofbiz.webapp.view.JPublishViewHandler.render(JPublishViewHandler.java:84) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:612) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:397) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:196) javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173) com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260) com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142) com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:77) com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:626) com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841) com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) org.apache.bsf.BSFException: unable to load language: beanshell org.apache.bsf.BSFManager.loadScriptingEngine(Unknown Source) org.apache.bsf.BSFManager.exec(Unknown Source) org.jpublish.action.ScriptAction.execute(ScriptAction.java:114) |
Free forum by Nabble | Edit this page |