0 Replies Latest reply on Jan 18, 2011 6:58 PM by user229683

    Server side session management

    user229683
      Hi All,

      I am trying to achieve server side session management following is my code.

      ***********************************************************************
      public static void main(String[] args) {

      crmod_activity.proxy.ActivityClient myPort=null;
      try {
      myPort = new crmod_activity.proxy.ActivityClient();

      myPort.setUsername("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");

      myPort.setPassword("XXXXXXXXXX");

      System.out.println("calling " + myPort.getEndpoint());

      ActivityQueryPage_Input aqi=new ActivityQueryPage_Input();
      ActivityQueryPage_Output aqo=new ActivityQueryPage_Output();
      QueryType qt=new QueryType();


      qt.set_value("");

      ListOfActivityQuery loaq=new ListOfActivityQuery();
      ActivityQuery aq=new ActivityQuery();
      aqi.setListOfActivity(loaq);

      aq.setActivity(qt);

      loaq.setStartrownum(new BigInteger("0"));
      loaq.setPagesize(new BigInteger("20"));
      loaq.setRecordcountneeded(true);
      loaq.setActivity(aq);

      aqi.setListOfActivity(loaq);
      aqi.setIncludeSubBooks("No");
      aqi.setViewMode("Manager");


      loaq.setActivity(aq);
      ListOfActivityData load = myPort.activityQueryPage("",loaq,"","LDC","false","Manager");
      System.out.println(""+load.getRecordcount());

      } catch (Exception ex) {
      ex.printStackTrace();
      }
      }

      *************************************************************************

      Following is the exception i get

      *************************************************************************
      javax.xml.rpc.soap.SOAPFaultException: Server
           at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:555)
           at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:396)
           at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
           at crmod_activity.proxy.runtime.Activity_Stub.activityQueryPage(Activity_Stub.java:142)
           at crmod_activity.proxy.ActivityClient.activityQueryPage(ActivityClient.java:107)
           at crmod_activity.proxy.ActivityClient.main(ActivityClient.java:83)
      ************************************************************************

      Which is given when the code was not able to create session.

      Please advice.

      Regards,
      JM