Hello, 

I am getting a NPE exception in my code during the stress test after about
10 users are logged in. Please take a look at the following code. I need to
fix this thing ASAP and any help from user community will be truly
appreciated.

TIA 
-RK 

----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------


Exception Log : 
--------------------- 


           Mar 13, 2007 9:55:47 AM EDT> <Info>
<org.apache.beehive.netui.pageflow.PageFlowRequestProcessor> <000000>
<Attempting to instantiat

e SharedFlowControllers for request
/MDMWeb/com/jnj/mdm/customer/view/approveRequest.do> 
<Mar 13, 2007 9:55:47 AM EDT> <Info>
<org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler>
<000000> <Handling Throwa

ble java.lang.NullPointerException> 
[/MDMWeb] Unhandled exception caught in Global.app: 
java.lang.NullPointerException 
        at
com.jnj.mdm.customer.view.ViewController.validateCustomerRequest(ViewControl
ler.java:1449) 
        at
com.jnj.mdm.customer.view.ViewController.approveRequest(ViewController.java:
652) 
        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:585) 
        at
org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowCont
roller.java:869) 
        at
org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(Flow
Controller.java:808) 
        at
org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowControl
ler.java:477) 
        at
org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlo
wController.java:305) 
        at
org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java
:335) 

CONTROLLER CODE SNIPPETS 
-------------------------------- 

@Jpf.Controller 
public class ViewController extends com.jnj.mdm.common.MDMPageFlowController
{ 

        // Decalare the controls 
               @Control() 
        private com.jnj.mdm.customer.common.controls.CustomerViewCtrl
customerViewCtrl; 
            ..... 
            ..... 
            ..... 
            ..... 
        

        private boolean validateCustomerRequest(CustomerViewForm form) { 

            ..... 

                String[] results = customerViewCtrl.validateRequest(logNum);
<----------- Line 1449. This is were we are getting the NPE

            ..... 

        } 
} 

Reply via email to