IGPExecutionContext null in complete() method

I am running a GP/CO in GP runtime environment and not as a standalone Web dynpro .
The execute method is successfully run and the this.executionContext var is populated.
In the complete() method for some reason this variable(IGPExecutionContext instance) is coming as null. I get a nullpointer execption as a result .
Any help?
Thanks
Sid

if you have your complete method in the controller you should get the gpexecutioncontext assuming you've referenced at the controller level as a attribute or parameter there. is that so?
if you have you need the gpexecutioncontext in the interface or view controller you'll need to reference the igpexecutioncontext there.

Similar Messages

  • Error in using complete() method along with Pop-up.

    Hi All,
    I m working on NWDS 7.1(CE) and using GP interface.
    The scenario is on click of a button,'Proceed', a pop-up opens which ask for a confirmation and if this is 'yes', then i have to call complete() method.
    When i m doing so,i m getting following error:
    com.sap.tc.webdynpro.repository.model.Repository$CloseStacktrace: The repository has been closed at this location.
        at com.sap.tc.webdynpro.repository.model.Repository.close(Repository.java:663)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.exit(ClientComponent.java:232)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.deleteComponent(ClientComponent.java:173)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.deleteComponent(ComponentUsage.java:354)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.exit(ClientComponent.java:216)
        ... 112 more
    although, the required task is getting generated and reflected in UWL, but im getting the error as mentioned above, rather than going to next Action placed in Sequential Block.
    Please help.
    Thanks and Regards,
    Sakshi

    Hi All,
    I m working on NWDS 7.1(CE) and using GP interface.
    The scenario is on click of a button,'Proceed', a pop-up opens which ask for a confirmation and if this is 'yes', then i have to call complete() method.
    When i m doing so,i m getting following error:
    com.sap.tc.webdynpro.repository.model.Repository$CloseStacktrace: The repository has been closed at this location.
        at com.sap.tc.webdynpro.repository.model.Repository.close(Repository.java:663)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.exit(ClientComponent.java:232)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.deleteComponent(ClientComponent.java:173)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.deleteComponent(ComponentUsage.java:354)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.exit(ClientComponent.java:216)
        ... 112 more
    although, the required task is getting generated and reflected in UWL, but im getting the error as mentioned above, rather than going to next Action placed in Sequential Block.
    Please help.
    Thanks and Regards,
    Sakshi

  • Current Row is null in AM method from VO instance exposed on Nested AM

    Hello,
    My Jdev version is 11.1.1.6.0 [Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1]
    I have a very simple use case and that is to access the current row in AM method.
    This works well when VO is directly exposed on Root AM but does not work when VO is exposed on nested AM except when taskflow transaction type is "No Controller Transaction".
    Steps to reproduce:
    Model side:
    1. Create a simple entity based on say Employee table
    2. Create a VO based on this entity
    3. Create a child AM and expose this VO on it
    4. Create a method just to get the current row from the VO exposed on this child AM
    5. Expose the method on child AM to make it available on client side
    6. Create a root AM and expose the child AM on it
    View side:
    1. Create employee.jsff showing data from employee VO
    2. Drag and drop child AM's method as ADF Button on employee.jsff
    3. Create a bounded taskflow containing simple view activity referring to employee.jsff
    4. Set the transaction type on taskflow to anything other than "No Controller Transaction". (I noticed that sharing of data control does not matter. It works with "No Controller Transaction" with both settings and does not work with others when checked/un-checked)
    5. Create main.jspx and drag-drop bounded taskflow here.
    Run/Debug the application and check the current row in child AM method using the button on employee.jsff. Current row is retrieved as NULL.
    Is it supposed to behave like this?
    What is affecting the current row when transaction type is other than "No Controller Transaction"?
    As I mentioned earlier, this works well with other transaction types when VO is directly exposed on Root AM.
    Thanks,
    Jai

    Anybody, any thoughts?

  • How to use the complete method for as3 FLV component

    Hi team,
    I am using an FLV component dragged to the stage and then bringing in video content.  How can I make it visible=false when it has finished playing using the COMPLETE event?
    Cheers.
    sub

    if your component's instance name is flv_pb, use:
    flv_pb.addEventListener(Event.COMPLETE,completeF);
    function completeF(e:Event):void{
    flv_pb.visible=false;

  • Taskflow Method call receiving null parameter.

    Hi all,
    I am using 11.1.1.6. I have created in my application an extra project which is pure Java objects and exposed a master class as a POJO DC. In my application, I have a taskflow where I have dragged and dropped one method from my POJO DC - 2 of the parameters of this methods are coming from an application scope bean. I have debugged the application, and made sure that the object being returned by the getter of my app scope bean is not null. So basically, when the breakpoint is in the return statement of my getter the oject is not null and it has been correctly initialized. Just after that, the next breakpoint is in the class receiving the parameter in my POJO DC class. In there, the object is NULL.
    Does anyone knows wat could be the reason??

    Hi Frank Nimphius-Oracle,
    That is precisely the problem.  The object is being passed as to the taskflow as an input parameter (getting it from my application scope bean). If I access the pageFlowScope inside my taskflow I see it and its there, correctely intialized. However, when I call a method call activity that consumes that object as parameter, all what it gets is null.
    The method that consumes this object is in a separate project, and its exposed in a POJO DC. I don't know if it has to be with the complexity of the object I am passing or what but I don't understand why its not being passed correctly to the DC Method.

  • Is it possible to pass a null value to a method?

    is it possible to pass a null value to a method?
    like this
    public String getParameterXX(String testvalue)
    String strX = "whatever";
    if(testvalue!=null)
    strX = strX + " man " ;
    Is this possible ?
    is this legal
    String i = getParameterXX(null);

    I also ran a similar code using null in a method, it just considers null as another string and concatenates it so
    public String getParameterXX(String testvalue)
    String strX = testvalue+"whatever";
    return strX;
    public static void main(String [] args)
    Test tt = new Test();
    String i = tt.getParameterXX(null);
    System.out.println(i);
    Gives me "nullwhatever"

  • Moving methods to a new class

    I have a class with my GUI and methods, but i want to move my methods to their own class.
    import java.awt.Container;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.Insets;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.ArrayList;
    import java.awt.*;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JTextField;
    import javax.swing.*;
    public class Login extends JDialog implements ActionListener
    ArrayList personsList;
    PersonDAO pDAO;
    JLabel userName, passWord;
    JTextField userName1;
    JPasswordField passWord1;
    JButton jbnClear, jbnSubmit, jbnCancel;
    String userName2, passWord2;
    Container cPane;
    public Login(JFrame father) {
    super(father);
    createGUI();
    userName2  = "";
    passWord2   = "";
    personsList = new ArrayList();
    pDAO = new PersonDAO();     
    public void createGUI(){
    cPane = getContentPane();
    setLayout(new GridBagLayout());
    //Arrange components on contentPane and set Action Listeners to each JButton
    arrangeComponents();
    setSize(210,170);
    setTitle("Login");
    setResizable(false);
    setVisible(true);
    setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    public void arrangeComponents(){
    userName = new JLabel("Username");
    passWord = new JLabel("Password");
    userName1   = new JTextField(20);
    passWord1   = new JPasswordField(20);
    jbnClear  = new JButton("Clear");
    jbnSubmit = new JButton("Submit");
    jbnCancel = new JButton("Cancel");
    GridBagConstraints gridBagConstraintsx01 = new GridBagConstraints();
    gridBagConstraintsx01.gridx = 0;
    gridBagConstraintsx01.gridy = 0;
    gridBagConstraintsx01.insets = new Insets(5,5,5,5);
    cPane.add(userName, gridBagConstraintsx01);
    GridBagConstraints gridBagConstraintsx02 = new GridBagConstraints();
    gridBagConstraintsx02.gridx = 1;
    gridBagConstraintsx02.insets = new Insets(5,5,5,5);
    gridBagConstraintsx02.gridy = 0;
    gridBagConstraintsx02.gridwidth = 2;
    gridBagConstraintsx02.fill = GridBagConstraints.BOTH;
    cPane.add(userName1, gridBagConstraintsx02);
    GridBagConstraints gridBagConstraintsx03 = new GridBagConstraints();
    gridBagConstraintsx03.gridx = 0;
    gridBagConstraintsx03.insets = new Insets(5,5,5,5);
    gridBagConstraintsx03.gridy = 1;
    cPane.add(passWord, gridBagConstraintsx03);
    GridBagConstraints gridBagConstraintsx04 = new GridBagConstraints();
    gridBagConstraintsx04.gridx = 1;
    gridBagConstraintsx04.insets = new Insets(5,5,5,5);
    gridBagConstraintsx04.gridy = 1;
    gridBagConstraintsx04.gridwidth = 2;
    gridBagConstraintsx04.fill = GridBagConstraints.BOTH;
    cPane.add(passWord1, gridBagConstraintsx04);
    GridBagConstraints gridBagConstraintsx09 = new GridBagConstraints();
    gridBagConstraintsx09.gridx = 0;
    gridBagConstraintsx09.gridy = 4;
    gridBagConstraintsx09.insets = new Insets(5,5,5,5);
    cPane.add(jbnClear, gridBagConstraintsx09);
    GridBagConstraints gridBagConstraintsx10 = new GridBagConstraints();
    gridBagConstraintsx10.gridx = 1;
    gridBagConstraintsx10.gridy = 4;
    gridBagConstraintsx10.insets = new Insets(5,5,5,5);
    cPane.add(jbnSubmit, gridBagConstraintsx10);
    GridBagConstraints gridBagConstraintsx11 = new GridBagConstraints();
    gridBagConstraintsx11.gridx = 1;
    gridBagConstraintsx11.gridy = 5;
    gridBagConstraintsx11.insets = new Insets(5,5,5,5);
    cPane.add(jbnCancel, gridBagConstraintsx11);
    jbnClear.addActionListener(this);
    jbnSubmit.addActionListener(this);
    jbnCancel.addActionListener(this);
    public void actionPerformed (ActionEvent e){
    if (e.getSource() == jbnClear){
    clear();
    else if (e.getSource() == jbnSubmit){               
    //Submit();
    else if (e.getSource() == jbnCancel){               
    cancel();
    String getUsername() {
    return userName1.getText();
    String getPassword() {
    return new String(passWord1.getPassword());
    public void clear(){
    userName1.setText("");
    passWord1.setText("");
    personsList.clear();
    public void cancel(){
    this.dispose();
    public void Submit(){
    userName2 = getUsername();
    passWord2 = getPassword();
    PersonInfo person = new PersonInfo(userName2, passWord2);
    if(userName2.equals("") || passWord2.equals("")){
    JOptionPane.showMessageDialog(null, "Please complete all fields.");
    else
    pDAO.loginPerson(person);
    }If i do move them to their own class, in the submit method, i need to get the username. If i try
    userName2 = Login.getUsername();I am told i non static method getUsername() cannot be referenced from a static context. How can i overcome this?

    nick2price wrote:
    well, DrLaszloJamf, thats answered it straight away. I always thought that to get an instance of another class, i had to do somthing like
    Login log = new Login();But it can be done just like
    private Login logI think i now understand, the top example creates a new instance of the class and passes it what is in the constructor, which would be good to use if i wanted to run the class through an event or somthing. And the second example just creates a simple instance of the class.No, that is wrong. The second line defines an instance field named log. Unless you initialize it elsewhere, this line leaves the variable with the value null. No constructor is called because of that line.
    Suggestion: you have to learn to crawl before you can learn to walk. You don't even know the fundamentals of Java -- what static means, what it means to define a field. You shouldn't be touching Swing for at least another year. You need to learn the basics, first.

  • Can somebody explain this strange method overloading behavior

    Please check the following code out......
    Snippet 1) compiles while Snippet 2) does not. Can someone explain. Thanks in advance for your help.
    Snippet 1)
    public class AQuestion
    public void method(Object o)
    System.out.println("Object Verion");
    public void method(String s)
    System.out.println("String Version");
    public static void main(String args[])
    AQuestion question = new AQuestion();
    question.method(null);
    // second version of this code.....
    Snippet 2)
    public class AQuestion
    public void method(StringBuffer sb)
    System.out.println("StringBuffer Verion");
    public void method(String s)
    System.out.println("String Version");
    public static void main(String args[])
    AQuestion question = new AQuestion();
    question.method(null);

    foo( SuperClass parm ) {}
    foo( SubClass parm ) {}
    Now somewhere in your code you do this:
    SuperClass myVar = new SubClass();
    foo( myVar );Which one do you want the JVM to call? Well, you want
    it to call the more specific one.
    So it calls foo( SubClass ). But if you sayNo, it doesnt. At compile time the compiler cannot know the complete type of myVar. It can only assure that myVar is of the type SuperClass. And it inserts no dynamic type-checking. And therefore it calls foo(SuperClass).
    It also does that if myVar is null (no dynamic type checking).
    SuperClass myVar = null;
    foo( myVar );
    foo(SuperClass) is called !!!
    foo(null);
    foo(SubClass) is called.
    SuperClass myVar = new SubClass();
    foo( myVar );
    SuperClass myVar = new SuperClass();
    foo( myVar );
    Can you cast myVar as an instance of SuperClass?
    yes.
    Can you cast myVar as an instance of SubClass?
    No.
    This is true of null; null can be cast as SuperClass
    or SubClass.
    No I dont think so. because null doesnt provide any method specified in SuperClass. Thus there can't be done a type cast. Null must be treated specially. It simply fits every class type at compile time.
    If the static (known at compile time) type of a parameter is known (not null) then the method with exactly the same parameter type is called or the one with the most specific parameter type in the line of inheritance of the given parameter - independent from the dynamic (known at runtime) type of the given parameter. If the parameter is null and if there is only one "line of inheritance" then null matches the most specific type by definition. If there are more "lines of inheritance" for the parameters then null would match each most specific type, and thus its not clear which method to use.
    I think this has nothin to do with type casts.

  • DispCache appears to be corrupt. getDispFile() returned null

    Hi all,
    I am deploying web services in production mode on Solaris 8 and Win2K. I get identical
    errors when I invoke the web service from a Java client: "DispCache appears to
    be corrupt. getDispFile() returned null"
    The complete stack trace is posted below.
    The web services work perfectly fine when I use Workshop to deploy within its
    environment.
    WebLogic version 7.0.4.0. Used jwsCompile tool separately on Win2K and Solaris
    to package the ear file to remove any platform dependencies (I noticed while debugging
    the problem that the EJBs generated by the jwsCompile hardcodes the ProjectPath
    and LoaderPath in the deployment descriptor, weird and totally unncessary).
    Any help is highly appreciated.
    Once thing I noticed that WebLogic's web service solution is overly complex to
    deploy in production once developed using Workshop. There is no way in hell I
    can debug this problem, hey it never occurs in the Workshop and there is no other
    debug environment!
    Thanks, Sanjay ----------------------------------------------------------------
    The stack trace (identical from Solaris and Win2K):
    SERVICE FAULT: Code: SOAP-ENV:Server String: DispCache appears to be corrupt.
    getDispFile() returned null. Detail: END SERVICE FAULTweblogic.jws.control.ServiceControlException:
    SERVICE FAULT: Code: SOAP-ENV:Server String: DispCache appears to be corrupt.
    getDispFile() returned null. Detail: END SERVICE FAULT at weblogic.knex.control.ServiceControlImpl.invoke(ServiceControlImpl.java:315)
    at weblogic.knex.control.ControlHandler.invoke(ControlHandler.java:316) at $Proxy123.GetUserAttributes(Unknown
    Source) at EWSWebServiceTest.testGetUserAttributes(EWSWebServiceTest.java:58)
    at java.lang.reflect.Method.invoke(Native Method) at weblogic.knex.dispatcher.DispMethod.invoke(DispMethod.java:211)
    at weblogic.knex.dispatcher.Invocable.invoke(Invocable.java:454) at weblogic.knex.bean.WebBean.invokeBase(WebBean.java:195)
    at weblogic.knex.bean.WebServiceBean.invoke(WebServiceBean.java:70) at weblogic.knex.bean.WebServiceBean_v4x0yn_EOImpl.invoke(WebServiceBean_v4x0yn_EOImpl.java:46)
    at weblogic.knex.bean.WebDispatcherBean.invoke(WebDispatcherBean.java:103) at
    weblogic.knex.bean.RemoteDispatcherBean.invoke(RemoteDispatcherBean.java:127)
    at weblogic.knex.bean.RemoteDispatcherBean_2c75i3_EOImpl.invoke(RemoteDispatcherBean_2c75i3_EOImpl.java:46)
    at weblogic.knex.bean.RemoteDispatcherBean_2c75i3_EOImpl_WLSkel.invoke(Unknown
    Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
    at weblogic.knex.bean.RemoteDispatcherBean_2c75i3_EOImpl_WLStub.invoke(Unknown
    Source) at weblogic.knex.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:120)
    at weblogic.knex.dispatcher.Dispatcher.dispatch(Dispatcher.java:66) at weblogic.knex.dispatcher.HttpServer.exploreExec(HttpServer.java:458)
    at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:364) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)

    Sanjay,
    Would it be possible for you to send us your application, so that we can
    reproduce the error here. Let me know if you are unable to post on a public
    newsgroup, and we can take it offline.
    I would also suggest you to try using version 8.1, because it offers loads
    of features that make web services development a much more richer and easier
    experience.
    Regards,
    Anurag
    "Sanjay" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi all,
    I am deploying web services in production mode on Solaris 8 and Win2K. Iget identical
    errors when I invoke the web service from a Java client: "DispCacheappears to
    be corrupt. getDispFile() returned null"
    The complete stack trace is posted below.
    The web services work perfectly fine when I use Workshop to deploy withinits
    environment.
    WebLogic version 7.0.4.0. Used jwsCompile tool separately on Win2K andSolaris
    to package the ear file to remove any platform dependencies (I noticedwhile debugging
    the problem that the EJBs generated by the jwsCompile hardcodes theProjectPath
    and LoaderPath in the deployment descriptor, weird and totallyunncessary).
    >
    Any help is highly appreciated.
    Once thing I noticed that WebLogic's web service solution is overlycomplex to
    deploy in production once developed using Workshop. There is no way inhell I
    can debug this problem, hey it never occurs in the Workshop and there isno other
    debug environment!
    Thanks,Sanjay ----------------------------------------------------------------
    The stack trace (identical from Solaris and Win2K):
    SERVICE FAULT: Code: SOAP-ENV:Server String: DispCache appears to becorrupt.
    getDispFile() returned null. Detail: END SERVICEFAULTweblogic.jws.control.ServiceControlException:
    SERVICE FAULT: Code: SOAP-ENV:Server String: DispCache appears to becorrupt.
    getDispFile() returned null. Detail: END SERVICE FAULT atweblogic.knex.control.ServiceControlImpl.invoke(ServiceControlImpl.java:315)
    at weblogic.knex.control.ControlHandler.invoke(ControlHandler.java:316) at$Proxy123.GetUserAttributes(Unknown
    Source) atEWSWebServiceTest.testGetUserAttributes(EWSWebServiceTest.java:58)
    at java.lang.reflect.Method.invoke(Native Method) atweblogic.knex.dispatcher.DispMethod.invoke(DispMethod.java:211)
    at weblogic.knex.dispatcher.Invocable.invoke(Invocable.java:454) atweblogic.knex.bean.WebBean.invokeBase(WebBean.java:195)
    at weblogic.knex.bean.WebServiceBean.invoke(WebServiceBean.java:70) atweblogic.knex.bean.WebServiceBean_v4x0yn_EOImpl.invoke(WebServiceBean_v4x0yn
    _EOImpl.java:46)
    at weblogic.knex.bean.WebDispatcherBean.invoke(WebDispatcherBean.java:103)at
    >
    weblogic.knex.bean.RemoteDispatcherBean.invoke(RemoteDispatcherBean.java:127
    atweblogic.knex.bean.RemoteDispatcherBean_2c75i3_EOImpl.invoke(RemoteDispatche
    rBean_2c75i3_EOImpl.java:46)
    atweblogic.knex.bean.RemoteDispatcherBean_2c75i3_EOImpl_WLSkel.invoke(Unknown
    Source) atweblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
    atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :263)
    atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :230)
    atweblogic.knex.bean.RemoteDispatcherBean_2c75i3_EOImpl_WLStub.invoke(Unknown
    Source) atweblogic.knex.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:120)
    at weblogic.knex.dispatcher.Dispatcher.dispatch(Dispatcher.java:66) atweblogic.knex.dispatcher.HttpServer.exploreExec(HttpServer.java:458)
    at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:364) atjavax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1058)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :401)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :306)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5445)
    atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:780)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3105)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    >

  • Target Unreachable, 'firstField' returned null

    Hi everybody!
    Before I begin, I'm sorry but my english is bad.
    I'm using JDeveloper 11.1.1.3 to develop an application.
    My application is linked with database.
    I created a Train with 2 pages: In the first, you can fill out the form. And in the second, we see the data filled
    in the first, and there you can click a button to submit the form.
    Then I create a method in my class "TestServiceImpl.java" which is the method of application module. This method
    add a new row in a table in the database.
    And finally, I'd drag and drop this method in my "confirmationPage". The value of each field of this method is that
    of the corresponding fields the first page where the form was completed (example: # {} backingBeanScope.backing_firstPage.firstField.value).
    I have hidden filds so they are not visible to the user, and I left the button in this method visible (to create item).
    When I run the application, I fill the fields in the form, I click Next, I preview my form;
    BUT when I click on the button (which is the method that I have hidden filelds), I have the following error:
    Target Unreachable, 'firstField' returned null
    Any help is welcome.
    Thank's

    Yes, but it still seems that the value is null when the method attempts to retrieve it.
    Unless there is some other problem in your page or the bindings.
    If you were to try using pageFlowScope parameters, all that you would have to do would be to set the component values in the virst page equal to the pageFlowScope parameter it corresponds to
    something like this:
    <af:inputText id="var1"/>
    value="#{pageFlowScope.variable1}"
    />then you could get the values in the second page using #{pageFlowScope.variable1}.
    Gabriel.

  • Cannot load callable object container: null

    My application is webdynprojava application with GP process.
    One of my scenaio was to create a popup window with ok button after completed the action.
    First I tried from code where i was written to completd the action
    but it did not work because the popcode i was writing before the complete method but it always talking after
    completeso results i was getting error .
    Then for the same action i created one callable object for display.
    That time my application was working after some time I again check
    then its showing    Cannot load callable object container: <null>
    this error for the callable object  which I created for popup window with ok button.
    (once RM will approve ,popup window will come with ok button ).
    Reporting Manager CO                    Callable Object for Execution   
       Resignationmanpowerlink                Callable Object for Display    --I am getting error here
    can u please help me why i am getting    Cannot load callable object container: <null>
    error
    Thanks for your time.
    Thanks & Regards.
    Abhishekh Singh

    Last time I checked contexts and lookups could return null values. And your code is not checking for a null value return.

  • Problem loading xml file with method

    I am using this method to insert into table of xmltype
    INSERT INTO xml_table
    VALUES (XMLType(bfilename('XMLDIR','Test_xml.xml'),
    nls_charset_id('AL32UTF8')));
    xml gives error
    <?xml version="1.0"?>
    <!--<!DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd">-->
    <metadata xml:lang="en"><Esri><MetaID>{299847D5-3DDC-4375-9469-607DC669DD6E}</MetaID><CreaDate>20091029</CreaDate><CreaTime>12035600</CreaTime><SyncOnce>FALSE</SyncOnce><SyncDate>20091029</SyncDate><SyncTime>12054400</SyncTime><ModDate>20091029</ModDate><ModTime>12054400</ModTime></Esri><idinfo><native Sync="TRUE">Microsoft Windows XP Version 5.1 (Build 2600) Service Pack 3; ESRI ArcCatalog 9.3.0.1770</native><descript><langdata Sync="TRUE">en</langdata><abstract>REQUIRED: A brief narrative summary of the data set.</abstract><purpose>REQUIRED: A summary of the intentions with which the data set was developed.</purpose>
    but when i remove
    <!--<!DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd">-->
    it successfully executes and value is inserted of xmltype
    Please suggest how i can insert the original xml without error.

    SQL> call UTL_HTTP.set_proxy('proxy.mydomain.com:8080', NULL);
    Call completed.
    SQL> declare
    2 t_result
    3 varchar2(4000);
    4 begin
    5 t_result := utl_http.request('http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd');
    6 INSERT INTO xml_table
    7 VALUES (XMLType(bfilename('XMLDIR','bas_street_segment.xml'),
    8 nls_charset_id('AL32UTF8')));
    9 end;
    10 /
    declare
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1577
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at line 5
    It is giving error, we made a call to UTL_HTTP.set_proxy, it is ok.
    Is there a way that i have dtd file, fgdc-std-001-1998.dtd on local machine and dtd gets validated when i
    insert the xml without need for oracle to go to internet. I need both dtd validation with internet and from local path options.
    Please help, thankx for timely help
    sivaram

  • How to provide transition comment while completing a process step

    Out of the box, we can indicate transition comment for participant steps when completing a inbox item, which is then displayed as a subheading of a inbox item for next step - which is really helpful.
    but, how can i provide a transition comment, when completing a process step.
    I see the complete method, but dont see where i can provide transition comment.
    complete(WorkItem item, Route route)
    Environment CQ 5.5

    Its workitem metadata which holds the comments info. Can you try this if it works
    workitem.getWorkflowData().getMetaData(); which will return the dictionary object and set "comment" in this object.

  • How to access a static method inside the JSP page

    Here i had wrote the code in java to access databases , i had include the class path to all the class files.
    my problem is when i click the register.jsp page, it will pose eror as null pointer exception i've put my code in this section as follows
    memberchecking.jsp
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,businessclasses.*,businessobjects.*,projectutils.DateUtilities.*,java.util.*" errorPage="" %>
    <html>
    <head>
    <title>Checking Member's Registration Details...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <%
    String loginId = request.getParameter("loginId");
    String resourcePassword = request.getParameter("resourcePassword");
    String confirmPassword = request.getParameter("confirmPassword");
    String resourceStatus=request.getParameter("resourceStatus");
    String nameTitle = request.getParameter("nameTitle");
    String jobTitle = request.getParameter("jobTitle");
    String firstName = request.getParameter("firstName");
    String middleName = request.getParameter("middleName");
    String lastName = request.getParameter("lastName");
    String displayName = request.getParameter("displayName");
    String resourceInitials = request.getParameter("resourceIniitials");
    String countryCode = request.getParameter("countryCode");
    String resourceLanguage = request.getParameter("resourceLanguage");
    //String resourceCurrency = request.getParameter("resourceCurrency");
    String resourceEmail2 = request.getParameter("resourceEmail2");
    String birthMonth = request.getParameter("birthMonth");
    String birthDay = request.getParameter("birthDay");
    String birthYear = request.getParameter("birthYear");
    String resourceGender = request.getParameter("resourceGender");
    String martialStatus = request.getParameter("martialStatus");
    String resourceOccupation = request.getParameter("resourceOccupation");
    String webPage = request.getParameter("webPage");
    String homePhone = request.getParameter("homePhone");
    String homePhone2 = request.getParameter("homephone2");
    String homeFax = request.getParameter("homepFax");
    String phoneOffice = request.getParameter("phoneOffice");
    String phoneOffice2 = request.getParameter("phoneOffice2");
    String officeFax = request.getParameter("officeFax");
    String resourcePager = request.getParameter("resourcePager");
    String resourceMobile = request.getParameter("resourceMobile");
    String resourceType=request.getParameter("resourceType");
    String resourceName = firstName + " " + middleName + " " + lastName;
    //java.util.Date resourceBirthDate = (String)birthMonth + "/" + birthDay + "/" + birthYear;
    session.setAttribute("Name",resourceName);
    session.setAttribute("UserId",loginId);
    out.println("name==========="+resourceName);
    //check whether the input data is valid for insert
    //input validation code goes here.....
    ResourceBC aResourceBC=new ResourceBC();
    //marshall the resource
    ResourceBO resource=new ResourceBO();
    String e1 = (String)resource.getEmail();
    String e2 = (String)resource.getEmail2();
    if(loginId != e1 && resourceEmail2 != e2 ) {
              resource.setStatus( "L");
              resource.setId(5);
              resource.setCountryCode(countryCode);
         //     resource.setResourceTypeCode(resourceType);     
         //     resource.setResourceParent(rs.getLong(6));
         //     resource.setHKey(rs.getLong(7));          
              resource.setName(resourceName);
              resource.setDisplayName(displayName);
              resource.setLogonPassword(resourcePassword);
              resource.setNameTitle(nameTitle);
              resource.setJobTitle(jobTitle);
              resource.setEmail(loginId);
              resource.setEmail2(resourceEmail2);          
         //     resource.setPasswordUpdateDate(rs.getDate(14));
         //     resource.setPasswordExpireDate(rs.getDate(15));
         //     resource.setAccessCode(rs.getString(16));
         //     resource.setLogonUnSuccessTries(0);
              resource.setWebPage(webPage);
              resource.setPhoneOffice(phoneOffice);
              resource.setPhoneOffice2(phoneOffice2);
              resource.setPhoneOfficeFax(officeFax);
              resource.setPhoneHome(homePhone);
              resource.setPhoneHome2(homePhone2);
              resource.setPhoneHomeFax(homeFax);
              resource.setMobile(resourceMobile);
              resource.setPager(resourcePager);
              resource.setStatus(resourceStatus);     
              resource.setGender(resourceGender);     
         //     resource.setBirthDate(resourceBirthDate);
              resource.setMartialStatus(martialStatus);
              resource.setLanguage(resourceLanguage);
    //          resource.setCurrency(resourceCurrency);
    //          resource.setPhoto(photo);
              resource.setInitials(resourceInitials);                         
    //          resource.setCreatedBy(1);
    //          resource.setCreatedDate(rs.getDate(36));
    //          resource.setUpdatedBy(rs.getLong(37));
    //          resource.setUpdatedDate(rs.getDate(38));
              resource.setFirstName(firstName);
              resource.setLastName(lastName);
              resource.setMiddleName(middleName);     
              //resource.setCreatedDate(new java.sql.Date());
              int rowsAdded=aResourceBC.resourceAdd(resource);
              out.println("rowsAdded= "+rowsAdded);
              //add message for success or failure to add resource
              String msg="";
              if(rowsAdded == -1){
                   msg="<font color=red>The ResourceName already exists .Try another</font>";
                   session.setAttribute("message",msg);
                   response.sendRedirect(response.encodeRedirectURL("memberregister.jsp"));
              else if(rowsAdded > 0){
                   msg="<font color=green>Resource Added successfully..........</font>";     
                   session.setAttribute("message",msg);
    %>
                   <jsp:forward page="memberlist.jsp">
                   <jsp:param name="message" value="<%=msg%>"/>
                   </jsp:forward>
    <%}
    %>
    </body>
    </html>
    ResourceBC.java
    package businessclasses;
    import java.sql.*;
    import businessobjects.ResourceBO;
    import java.util.*;
    import dbutilities.DBManager;
    public class ResourceBC
         public Vector resourceList() throws Exception{
         Vector resourceList=new Vector();
         String listSQL="";
         StringBuffer listSQLBuffer=new StringBuffer();
         listSQLBuffer.append("SELECT ");
         listSQLBuffer.append("RES_ID,");
         listSQLBuffer.append("RES_NAME,");
         listSQLBuffer.append("CNTRY_CODE,");
         listSQLBuffer.append("RES_LOGON_PASSWORD,");
         listSQLBuffer.append("RESTYPE_CODE,");
         listSQLBuffer.append("RES_PARENT,");
         listSQLBuffer.append("RES_HKEY,");
         listSQLBuffer.append("RES_DISPLAY_NAME,");
         listSQLBuffer.append("RES_NAME_TITLE,");     
         listSQLBuffer.append("RES_JOB_TITLE,");     
         listSQLBuffer.append("RES_EMAIL,");
         listSQLBuffer.append("RES_EMAIL2,");     
         listSQLBuffer.append("RES_PASSWORD_ACTION,");     
         listSQLBuffer.append("RES_PASSWORD_UPDATE_DATE,");     
         listSQLBuffer.append("RES_PASSWORD_EXPIRE_DATE,");     
         listSQLBuffer.append("RES_ACCESS_CODE,");     
         listSQLBuffer.append("RES_LOGON_UNSUCCESS_TRIES,");     
         listSQLBuffer.append("RES_WEB_PAGE,");
         listSQLBuffer.append("RES_PHONE_OFFICE,");
         listSQLBuffer.append("RES_PHONE_OFFICE2,");
         listSQLBuffer.append("RES_PHONE_OFFICE_FAX,");
         listSQLBuffer.append("RES_PHONE_HOME,");
         listSQLBuffer.append("RES_PHONE_HOME2,");
         listSQLBuffer.append("RES_PHONE_HOME_FAX,");
         listSQLBuffer.append("RES_MOBILE,");
         listSQLBuffer.append("RES_PAGER,");
         listSQLBuffer.append("RES_STATUS,");
         listSQLBuffer.append("RES_GENDER,");
         listSQLBuffer.append("RES_BIRTH_DATE,");
         listSQLBuffer.append("RES_MARTIAL_STATUS,");
         listSQLBuffer.append("RES_LANGUAGE,");
         listSQLBuffer.append("RES_CURRENCY,");
         listSQLBuffer.append("RES_PHOTO,");
         listSQLBuffer.append("RES_CREATED_BY,");
         listSQLBuffer.append("RES_NAME_INITIALS,");          
         listSQLBuffer.append("RES_CREATED_DATE,");
         listSQLBuffer.append("RES_UPDATED_BY");
         listSQLBuffer.append("RES_UPDATED_DATE,");
         listSQLBuffer.append("RES_NAME_FIRST,");
         listSQLBuffer.append("RES_NAME_LAST,");
         listSQLBuffer.append("RES_NAME_MIDDLE");     
         listSQLBuffer.append(" FROM T_RESOURCES ");
         listSQL=listSQLBuffer.toString();
    System.out.println("listSQL---"+listSQL);
         DBManager dbManager=new DBManager();
         Connection con =dbManager.getConnection();
         Statement stmt=con.createStatement();
         ResultSet rs=stmt.executeQuery(listSQL);
         ResourceBO resource=null;
         while(rs.next()){
              resource=new ResourceBO();
              resource.setId(rs.getLong(1));
              resource.setName(rs.getString(2));
              resource.setCountryCode(rs.getString(3));
              resource.setLogonPassword(rs.getString(4));
              resource.setResourceTypeCode(rs.getLong(5));     
              resource.setResourceParent(rs.getLong(6));
              resource.setHKey(rs.getLong(7));          
              resource.setDisplayName(rs.getString(8));
              resource.setNameTitle(rs.getString(9));
              resource.setJobTitle(rs.getString(10));
              resource.setEmail(rs.getString(11));
              resource.setEmail2(rs.getString(12));          
              resource.setPasswordAction(rs.getString(13));
              resource.setPasswordUpdateDate(rs.getDate(14));
              resource.setPasswordExpireDate(rs.getDate(15));
              resource.setAccessCode(rs.getString(16));
              resource.setLogonUnSuccessTries(rs.getLong(17));
              resource.setWebPage(rs.getString(18));
              resource.setPhoneOffice(rs.getString(19));
              resource.setPhoneOffice2(rs.getString(20));
              resource.setPhoneOfficeFax(rs.getString(21));
              resource.setPhoneHome(rs.getString(22));
              resource.setPhoneHome2(rs.getString(23));
              resource.setPhoneHomeFax(rs.getString(24));
              resource.setMobile(rs.getString(25));
              resource.setPager(rs.getString(26));
              resource.setStatus(rs.getString(27));     
              resource.setGender(rs.getString(28));     
              resource.setBirthDate(rs.getDate(29));
              resource.setMartialStatus(rs.getString(30));
              resource.setLanguage(rs.getString(31));
              resource.setCurrency(rs.getString(32));
              resource.setPhoto(rs.getString(33));
              resource.setCreatedBy(rs.getLong(34));
              resource.setInitials(rs.getString(35));                         
              resource.setCreatedDate(rs.getDate(36));
              resource.setUpdatedBy(rs.getLong(37));
              resource.setUpdatedDate(rs.getDate(38));
              resource.setFirstName(rs.getString(39));
              resource.setLastName(rs.getString(40));
              resource.setMiddleName(rs.getString(41));          
              resourceList.add(resource);
              con.close();
              con=null;
              return resourceList;
    //Method to insert the values into the database
    public int resourceAdd(ResourceBO resource){
         System.out.println("in resourceAdd method ");
         //check for duplicate record in the table
         String checkDuplicationSQL="SELECT RES_ID FROM T_RESOURCES WHERE RES_ID='"+resource.getId()+"'";     
         DBManager dbManager=new DBManager();//.getInstance();
         boolean hasDuplicateRecord=dbManager.hasDuplicateRecord(checkDuplicationSQL);
         int rowsAdded=0;
         //insert the record
         //hasDuplicateRecord=false;
              if(!hasDuplicateRecord){
                   //get the next resource id for insertion
              long nextID=dbManager.getNextIDForColumnAndTable("RES_ID","T_RESOURCES");
              System.out.println("nextID================== "+nextID);
    StringBuffer fieldsbuffer=new StringBuffer();
         fieldsbuffer.append("INSERT INTO T_RESOURCES (");
         fieldsbuffer.append("RES_ID,");
         fieldsbuffer.append("RES_NAME,");
         fieldsbuffer.append("CNTRY_CODE,");
         fieldsbuffer.append("RES_LOGON_PASSWORD,");
         fieldsbuffer.append("RESTYPE_CODE,");     
         fieldsbuffer.append("RES_PARENT,");
         fieldsbuffer.append("RES_HKEY,");
         fieldsbuffer.append("RES_DISPLAY_NAME,");     
         fieldsbuffer.append("RES_NAME_TITLE,");
         fieldsbuffer.append("RES_JOB_TITLE,");
         fieldsbuffer.append("RES_EMAIL,");
         fieldsbuffer.append("RES_EMAIL2,");
         fieldsbuffer.append("RES_PASSWORD_ACTION,");
         fieldsbuffer.append("RES_PASSWORD_UPDATE_DATE,");          
         fieldsbuffer.append("RES_PASSWORD_EXPIRE_DATE,");          
         fieldsbuffer.append("RES_ACCESS_CODE,");          
         fieldsbuffer.append("RES_LOGON_UNSUCCESS_TRIES,");     
         fieldsbuffer.append("RES_WEB_PAGE,");
         fieldsbuffer.append("RES_PHONE_OFFICE,");
         fieldsbuffer.append("RES_PHONE_OFFICE2,");
         fieldsbuffer.append("RES_PHONE_OFFICE_FAX,");
         fieldsbuffer.append("RES_PHONE_HOME,");
         fieldsbuffer.append("RES_PHONE_HOME2,");
         fieldsbuffer.append("RES_PHONE_HOME_FAX,");
         fieldsbuffer.append("RES_MOBILE,");
         fieldsbuffer.append("RES_PAGER,");
         fieldsbuffer.append("RES_STATUS,");     
         fieldsbuffer.append("RES_GENDER,");     
         fieldsbuffer.append("RES_BIRTH_DATE,");          
         fieldsbuffer.append("RES_MARTIAL_STATUS,");          
         fieldsbuffer.append("RES_LANGUAGE,");          
         fieldsbuffer.append("RES_CURRENCY,");          
         fieldsbuffer.append("RES_PHOTO,");     
    /*     fieldBuffer.append("RES_CREATED_BY,");
         fieldBuffer.append("RES_NAME_INITIALS,");          
         fieldBuffer.append("RES_CREATED_DATE,");
         fieldBuffer.append("RES_UPDATED_BY");
         fieldBuffer.append("RES_UPDATED_DATE,");
         fieldBuffer.append("RES_NAME_FIRST,");
         fieldBuffer.append("RES_NAME_LAST,");
         fieldBuffer.append("RES_NAME_MIDDLE");     */
         StringBuffer valuesBuffer=new StringBuffer(" VALUES(");
    valuesBuffer.append(nextID+",");
         valuesBuffer.append("'"+resource.getName()+",");
         valuesBuffer.append("'"+resource.getCountryCode()+",");
         valuesBuffer.append("'"+resource.getLogonPassword()+"',");
         valuesBuffer.append("'"+resource.getResourceTypeCode()+",");
         valuesBuffer.append("'"+resource.getResourceParent()+",");
         valuesBuffer.append("'"+resource.getHKey()+",");
         valuesBuffer.append("'"+resource.getDisplayName()+",");
         valuesBuffer.append("'"+resource.getNameTitle()+",");
         valuesBuffer.append("'"+resource.getJobTitle()+",");
         valuesBuffer.append("'"+resource.getEmail()+"',");
         valuesBuffer.append("'"+resource.getEmail2()+"',");
         valuesBuffer.append("'"+resource.getPasswordAction()+",");
         valuesBuffer.append("'"+resource.getPasswordUpdateDate()+",");
         valuesBuffer.append("'"+resource.getPasswordExpireDate()+",");
         valuesBuffer.append("'"+resource.getAccessCode()+",");
         valuesBuffer.append("'"+resource.getLogonUnsuccessTries()+",");     
         valuesBuffer.append("'"+resource.getWebPage()+"',");
         valuesBuffer.append("'"+resource.getPhoneOffice()+"',");
         valuesBuffer.append("'"+resource.getPhoneOffice2()+"',");
         valuesBuffer.append("'"+resource.getPhoneOfficeFax()+"',");
         valuesBuffer.append("'"+resource.getPhoneHome()+"',");
         valuesBuffer.append("'"+resource.getPhoneHome2()+"',");
         valuesBuffer.append("'"+resource.getPhoneHomeFax()+"',");
         valuesBuffer.append("'"+resource.getMobile()+"',");
         valuesBuffer.append("'"+resource.getPager()+"',");
         valuesBuffer.append("'"+resource.getStatus()+"',");
         valuesBuffer.append("'"+resource.getGender()+"',");
         valuesBuffer.append("'"+resource.getBirthDate()+"',");
         valuesBuffer.append("'"+resource.getMartialStatus()+"',");
         valuesBuffer.append("'"+resource.getLanguage()+"',");
         valuesBuffer.append("'"+resource.getCurrency()+"',");
         valuesBuffer.append("'"+resource.getPhoto()+"',");
         valuesBuffer.append("'"+resource.getCreatedBy()+"',");
         valuesBuffer.append("'"+resource.getInitials()+"',");
         valuesBuffer.append("'"+resource.getCreatedDate()+"',");
         valuesBuffer.append("'"+resource.getUpdatedBy()+"',");
         valuesBuffer.append("'"+resource.getUpdatedDate()+"',");
         valuesBuffer.append("'"+resource.getFirstName()+"',");
         valuesBuffer.append("'"+resource.getLastName()+"',");
         valuesBuffer.append("'"+resource.getMiddleName()+"')");
         String insertSQL=fieldsbuffer.toString()+valuesBuffer.toString();
              System.out.println("insertSQL="+insertSQL);
              rowsAdded=dbManager.executeSQL(insertSQL);
              System.out.println("rowsAdded= "+rowsAdded+"hasDuplicateRecord "+hasDuplicateRecord);
              }//end if
              else{
                   //throw new Exception("Has a duplicate Record");
                   return -1;
              return rowsAdded;
    public int resourceUpdate(ResourceBO resource){
              int rowsUpdated=0;
    /*          String orgCodeStr=null;
              if(resource.getOrgCode()==0){
                   orgCodeStr="NULL";
         }else{
                   orgCodeStr=""+resource.getOrgCode();
              StringBuffer updateSQLBuffer=new StringBuffer();
         updateSQLBuffer.append("UPDATE T_RESOURCES SET ");          
         updateSQLBuffer.append("RES_NAME='"+resource.getName()+"',");
         updateSQLBuffer.append("CNTRY_CODE='"+resource.getCountryCode()+"',");
         updateSQLBuffer.append("RES_LOGON_PASSWORD='"+resource.getLogonPassword()+"',");
         updateSQLBuffer.append("RESTYPE_CODE="+resource.getResourceTypeCode()+",");
         updateSQLBuffer.append("RES_PARENT="+resource.getResourceParent()+",");
         updateSQLBuffer.append("RES_HKEY="+resource.getHKey()+",");
         updateSQLBuffer.append("RES_DISPLAY_NAME="+resource.getDisplayName()+",");
         updateSQLBuffer.append("RES_NAME_TITLE="+resource.getNameTitle()+",");
         updateSQLBuffer.append("RES_JOB_TITLE="+resource.getJobTitle()+",");
         updateSQLBuffer.append("RES_EMAIL='"+resource.getEmail()+"',");
         updateSQLBuffer.append("RES_EMAIL2='"+resource.getEmail2()+"',");
         updateSQLBuffer.append("RES_PASSWORD_ACTION="+resource.getPasswordAction()+",");
         updateSQLBuffer.append("RES_PASSWORD_UPDATE_DATE="+resource.getPasswordUpdateDate()+",");
         updateSQLBuffer.append("RES_PASSWORD_EXPIRE_DATE="+resource.getPasswordExpireDate()+",");
         updateSQLBuffer.append("RES_ACCESS_CODE="+resource.getAccessCode()+",");
         updateSQLBuffer.append("RES_LOGON_UNSUCCESS_TRIES="+resource.getLogonUnsuccessTries()+",");     
         updateSQLBuffer.append("RES_WEB_PAGE='"+resource.getWebPage()+"',");
         updateSQLBuffer.append("RES_PHONE_OFFICE='"+resource.getPhoneOffice()+"',");
         updateSQLBuffer.append("RES_PHONE_OFFICE2='"+resource.getPhoneOffice2()+"',");
         updateSQLBuffer.append("RES_PHONE_OFFICE_FAX='"+resource.getPhoneOfficeFax()+"',");
         updateSQLBuffer.append("RES_PHONE_HOME='"+resource.getPhoneHome()+"',");
         updateSQLBuffer.append("RES_PHONE_HOME2='"+resource.getPhoneHome2()+"',");
         updateSQLBuffer.append("RES_PHONE_HOME_FAX='"+resource.getPhoneHomeFax()+"',");
         updateSQLBuffer.append("RES_MOBILE='"+resource.getMobile()+"',");
         updateSQLBuffer.append("RES_PAGER='"+resource.getPager()+"',");
         updateSQLBuffer.append("RES_STATUS='"+resource.getStatus()+"',");
         updateSQLBuffer.append("RES_GENDER='"+resource.getGender()+"',");
         updateSQLBuffer.append("RES_BIRTH_DATE='"+resource.getBirthDate()+"',");
         updateSQLBuffer.append("RES_MARTIAL_STATUS='"+resource.getMartialStatus()+"',");
         updateSQLBuffer.append("RES_LANGUAGE='"+resource.getLanguage()+"',");
         updateSQLBuffer.append("RES_CURRENCY='"+resource.getCurrency()+"',");
         updateSQLBuffer.append("RES_PHOTO='"+resource.getPhoto()+"',");
         updateSQLBuffer.append("RES_NAME_INITIALS='"+resource.getInitials()+"',");
         updateSQLBuffer.append("RES_NAME_FIRST='"+resource.getFirstName()+"',");
         updateSQLBuffer.append("RES_NAME_LAST='"+resource.getLastName()+"',");
         updateSQLBuffer.append("RES_NAME_MIDDLE='"+resource.getMiddleName()+"'");
         updateSQLBuffer.append("WHERE RES_ID="+resource.getId());
         String updateSQL=updateSQLBuffer.toString();
              //String updateSQL="UPDATE T_RESOURCES SET CLIENT_NAME='"+resource.getName()+"',CLIENT_STATUS='"+resource.getStatus()+"',CLIENT_EMAIL_PRIMARY='"+resource.getEmailPrimary()+"',CLIENT_EMAIL_ALTERNATIVE='"+resource.getEmailAlternate()+"',CLIENT_CURRENCY_SYMBOL='"+resource.getCurrencySymbol()+"',CLIENT_CURRENCY_DIGITS="+resource.getCurrencyDigits()+",CLIENT_DIRECTORY_DOCUMENT='"+resource.getDirectoryDocument()+"',CLIENT_DIRECTORY_TEMPLATE='"+resource.getDirectoryTemplate()+"',CLIENT_STORAGE_QUOTA="+resource.getStorageQuota()+",CLIENT_KEY='"+resource.getKey()+"' WHERE CLIENT_ID="+resource.getId();
              System.out.println("updateSQL---"+updateSQL);
              DBManager dbManager=new DBManager();
              rowsUpdated=dbManager.executeSQL(updateSQL);
              return rowsUpdated;
    public int resourceDelete(long resourceId){
              int rowsDeleted=0;
              DBManager dbManager=new DBManager();
              String deleteSQL="DELETE FROM T_RESOURCES WHERE RES_ID="+resourceId;
              System.out.println("deleteSQL==="+deleteSQL);
              rowsDeleted=dbManager.executeSQL(deleteSQL);
              System.out.println("rowsDeleted= "+rowsDeleted);
              return rowsDeleted;
    public ResourceBO getResourceById(long resourceId)throws Exception{
              StringBuffer selectSQLBuffer=new StringBuffer();
              selectSQLBuffer.append("SELECT ");
              selectSQLBuffer.append("RES_ID,");
              selectSQLBuffer.append("RES_NAME,");
              selectSQLBuffer.append("CNTRY_CODE,");
              selectSQLBuffer.append("RES_LOGON_PASSWORD,");
              selectSQLBuffer.append("RESTYPE_CODE,");
              selectSQLBuffer.append("RES_PARENT,");
              selectSQLBuffer.append("RES_HKEY,");
              selectSQLBuffer.append("RES_DISPLAY_NAME,");
              selectSQLBuffer.append("RES_NAME_TITLE,");          
              selectSQLBuffer.append("RES_JOB_TITLE,");     
              selectSQLBuffer.append("RES_EMAIL,");
              selectSQLBuffer.append("RES_EMAIL2,");     
              selectSQLBuffer.append("RES_PASSWORD_ACTION,");     
              selectSQLBuffer.append("RES_PASSWORD_UPDATE_DATE,");     
              selectSQLBuffer.append("RES_PASSWORD_EXPIRE_DATE,");     
              selectSQLBuffer.append("RES_ACCESS_CODE,");     
              selectSQLBuffer.append("RES_LOGON_UNSUCCESS_TRIES,");     
              selectSQLBuffer.append("RES_WEB_PAGE,");
              selectSQLBuffer.append("RES_PHONE_OFFICE,");
              selectSQLBuffer.append("RES_PHONE_OFFICE2,");
              selectSQLBuffer.append("RES_PHONE_OFFICE_FAX,");
              selectSQLBuffer.append("RES_PHONE_HOME,");
              selectSQLBuffer.append("RES_PHONE_HOME2,");
              selectSQLBuffer.append("RES_PHONE_HOME_FAX,");
              selectSQLBuffer.append("RES_MOBILE,");
              selectSQLBuffer.append("RES_PAGER,");
              selectSQLBuffer.append("RES_STATUS,");
              selectSQLBuffer.append("RES_GENDER,");
              selectSQLBuffer.append("RES_BIRTH_DATE,");
              selectSQLBuffer.append("RES_MARTIAL_STATUS,");
              selectSQLBuffer.append("RES_LANGUAGE,");
              selectSQLBuffer.append("RES_CURRENCY,");
              selectSQLBuffer.append("RES_PHOTO,");
              selectSQLBuffer.append("RES_CREATED_BY,");
              selectSQLBuffer.append("RES_NAME_INITIALS,");          
              selectSQLBuffer.append("RES_CREATED_DATE,");
              selectSQLBuffer.append("RES_UPDATED_BY");
              selectSQLBuffer.append("RES_UPDATED_DATE,");
              selectSQLBuffer.append("RES_NAME_FIRST,");
              selectSQLBuffer.append("RES_NAME_LAST,");
              selectSQLBuffer.append("RES_NAME_MIDDLE");     
              selectSQLBuffer.append(" FROM T_RESOURCES WHERE RES_ID="+resourceId);
              String fetchSQL=selectSQLBuffer.toString();
    System.out.println("fetchSQL---"+fetchSQL);
                   DBManager dbManager=new DBManager();
                   Connection con =dbManager.getConnection();
                   Statement stmt=con.createStatement();
                   ResultSet rs=stmt.executeQuery(fetchSQL);
                   ResourceBO resource=new ResourceBO();
                   while(rs.next()){                    
                   resource.setId(rs.getLong(1));
                   resource.setName(rs.getString(2));
                   resource.setCountryCode(rs.getString(3));
                   resource.setLogonPassword(rs.getString(4));
                   resource.setResourceTypeCode(rs.getLong(5));     
                   resource.setResourceParent(rs.getLong(6));
                   resource.setHKey(rs.getLong(7));          
                   resource.setDisplayName(rs.getString(8));
                   resource.setNameTitle(rs.getString(9));
                   resource.setJobTitle(rs.getString(10));
                   resource.setEmail(rs.getString(11));
                   resource.setEmail2(rs.getString(12));          
                   resource.setPasswordAction(rs.getString(13));
                   resource.setPasswordUpdateDate(rs.getDate(14));
                   resource.setPasswordExpireDate(rs.getDate(15));
                   resource.setAccessCode(rs.getString(16));
                   resource.setLogonUnSuccessTries(rs.getLong(17));
                   resource.setWebPage(rs.getString(18));
                   resource.setPhoneOffice(rs.getString(19));
                   resource.setPhoneOffice2(rs.getString(20));
                   resource.setPhoneOfficeFax(rs.getString(21));
                   resource.setPhoneHome(rs.getString(22));
                   resource.setPhoneHome2(rs.getString(23));
                   resource.setPhoneHomeFax(rs.getString(24));
                   resource.setMobile(rs.getString(25));
                   resource.setPager(rs.getString(26));
                   resource.setStatus(rs.getString(27));     
                   resource.setGender(rs.getString(28));     
                   resource.setBirthDate(rs.getDate(29));
                   resource.setMartialStatus(rs.getString(30));
                   resource.setLanguage(rs.getString(31));
                   resource.setCurrency(rs.getString(32));
                   resource.setPhoto(rs.getString(33));
                   resource.setCreatedBy(rs.getLong(34));
                   resource.setInitials(rs.getString(35));                         
                   resource.setCreatedDate(rs.getDate(36));
                   resource.setUpdatedBy(rs.getLong(37));
                   resource.setUpdatedDate(rs.getDate(38));
                   resource.setFirstName(rs.getString(39));
                   resource.setLastName(rs.getString(40));
                   resource.setMiddleName(rs.getString(41));          
                   con.close();
                   con=null;
                   return resource;
    }//end of class
    plz help me to solve this problem....
    rajkumar

    The JSP wil be converted into a java file and then compiled into a class. If you are using tomcat, the java file will be somewhere in the work folder of your tomcat installation. Find the java file and check the line that is reported in the exception to see where the null-pointer is coming from.

  • Calling a method via invokeMethod (JDI)

    Hi !
    Does anybody know how to invoke a method
    via the invokeMethod method of the Java Debug Interface (JDI).
    This suspends the execution of the program !
    I've read somewhere that the vm must be resumed,
    but I don't see how, as a vm.resume() after the
    invocation is never reached !
    Thanx for any help !
    Alex

    I have the same problem ..Null pointer exception thrown. here is my sample code that I did:
    public void methodExitEvent(MethodExitEvent event)
    ObjectReference obj = objectReference(event);
    if(obj!=null && !event.method().name().equals("<init>"))
    System.out.println(" Leaving the method " + event.method().name() + "() Object " + obj.hashCode());
    List objMethodsList= event.method().declaringType().methodsByName("methodA");
    Method emptyState= (Method)objMethodsList.get(0);
    //ClassType myClass= (ClassType)obj.referenceType();
    //Method emptyState= myClass.concreteMethodByName("methodA","()V");
    try
    Value myValue= obj.invokeMethod(event.thread(), emptyState ,null,ObjectReference.INVOKE_SINGLE_THREADED);
    catch(Exception e)
    e.printStackTrace();
    System.out.println("Error in invoking method "+e.getMessage());
    else if(obj!=null && event.method().name().equals("<init>"))
    System.out.println("Object " + obj.hashCode()+" END its life");
    and here is the trace that i got from the exception thrown:
    java.lang.NullPointerException
    at com.sun.tools.jdi.MirrorImpl.validateMirrorsOrNulls(MirrorImpl.java:8
    2)
    at com.sun.tools.jdi.ObjectReferenceImpl.invokeMethod(ObjectReferenceImp
    l.java:355)
    at EventThread.methodExitEvent(EventThread.java:186)
    at EventThread.handleEvent(EventThread.java:69)
    at EventThread.run(EventThread.java:35)
    Error in invoking method null
    Need help ASAP especially those of you who have created debugger. Im trying to create a tracer and try to invoke the method of the debugee object....

Maybe you are looking for

  • Will iTunes Match work for me?

    My music library (which isn't very big) is split between albums I've downloaded from the iTunes Store and older albums I've imported from CD.  Every time I buy a new machine (or need to wipe my current one), I download all my iTunes Store-purchased m

  • How do I do multiple alarms in ical as a default

    How do you set a default alarm for iCal so it always comes upt with two bells / alrams?

  • Bridge 1.0.4 update fails on Leopard (Intel mac)

    Howdy! I just installed Photoshop CS2 on a new Macbook Pro running Leopard, and then downloaded the Bridge 1.0.3 and 1.0.4 updates. The 1.0.3 update appears to install correctly, and when I bring up Bridge it says it's 1.0.3. But the 1.0.4 update won

  • Spry horizontal menu goes wrong in Internet Explorer

    I have designed the start of a site and the client is pleased, except  that for some reason the Spry menu goes bananas in Internet Explorer 8.  I have checked it in Safari, Opera, Firefox and Chrome and it looks  fine. Earlier in the design process I

  • Java Application using Swig Running Visual C++ 6.0

    i, I am using Swig with Java ,I'm trying launch a Java application using a Windows executable, I'm using VC++6.0, and followed the instruction in Swig Documentation chaper 20,Section 20.2.8. I Build my dll in Vc++ i get this error Anyone know this,pl