Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: Error 500--Internal Server Error - java.lang.NullPointerException

  1. #1
    Join Date
    Dec 2009
    Posts
    27

    Default Error 500--Internal Server Error - Invoke Transfromation from JSP

    Dear Kettle,
    I tried to launch carte and sending transformation file to it using J2EE application, it works OK.
    But, I try to invoke java bean which launch Carte and send transformation from JSF/JSP page, it generates error.
    The same error is generated if used JSP tags directly to embed java code for launching carte and sending transformation.
    Code:
             ClusterGenerator cg = new ClusterGenerator();
               CarteLauncher cl = new CarteLauncher("localhost", 1500);
               cl.run();
               cg.launchSlaveServers();
                KettleEnvironment.init();
                TransMeta transMeta = new TransMeta("C:/Users/Rashed/workspace/kettle_test/trans/tests/excel2XML.ktr");
                Trans trans = new Trans(transMeta);
                 trans.getTransMeta().setInternalKettleVariables(trans);
                TransExecutionConfiguration jec = new TransExecutionConfiguration();
                jec.setRemoteServer(cg.LOCAL_TEST_SLAVES[0]);
                trans.sendToSlaveServer(transMeta, jec, null);
    Code:
    Error 500--Internal Server Error
    
    javax.faces.FacesException: #{transUI_backing.commandButton1_action}: java.lang.NullPointerException
    	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
    	at javax.faces.component.UICommand.broadcast(UICommand.java:387)
    	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    	at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    	at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
    	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
    	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
    	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
    	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    	... 25 more
    Caused by: java.lang.NullPointerException
    	at org.pentaho.di.trans.StepLoader.initStepPluginMeta(StepLoader.java:113)
    	at org.pentaho.di.trans.StepLoader.init(StepLoader.java:154)
    	at org.pentaho.di.trans.StepLoader.init(StepLoader.java:165)
    	at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:20)
    	at running.Send2Carte.runTransformation(Send2Carte.java:62)
    	at running.transUI_backing.commandButton1_action(transUI_backing.java:35)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    	at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
    	... 26 more
    Last edited by rdkhalil; 07-24-2010 at 10:58 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.