StackOverFlow Exception while getting the context

Here is my problem.
Environment : WLS 4.5.1 SP 9
We are hosting a set of servlets in our environment. We started seeing problems in the recent past that after sometime, WLS Server throws StackOverFlow Exception for getInitialContext:
getInitialContext method :
private Context getInitialContext(String urlValue) throws Exception {
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.T3InitialContextFactory");
p.put(Context.PROVIDER_URL, urlValue);
return new InitialContext(p);
The service runs for 2 to 3 hours, after all of a sudden, it fails with the following exception.
Our service fails at different place in our application, but all related to getting the initial context.
Any help would be appreciated.
Thanks
Siva
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.lang.System.getProperty(Compiled Code)
at weblogic.jndi.Environment.getProperty(Compiled Code)
at weblogic.jndi.Environment.getProviderClient(Compiled Code)
at weblogic.jndi.Environment.getSecurityUser(Compiled Code)
at weblogic.jndi.toolkit.WLContextStub.<init>(Compiled Code)
at weblogic.common.internal.ClassTableEntry.newInstance(Compiled Code)
at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compiled Code)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compiled Code)
at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled Code)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compiled Code)
at weblogic.rmi.extensions.AbstractInputStream2.readObject(Compiled Code)
at weblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Compiled Code)
at weblogic.jndi.internal.RemoteContextFactoryImpl_ServiceStub.getContext(Compiled Code)
at weblogic.jndi.WLInitialContextFactory.newContext(Compiled Code)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
at javax.naming.spi.NamingManager.getInitialContext(Compiled Code)
at javax.naming.InitialContext.getDefaultInitCtx(Compiled Code)
at javax.naming.InitialContext.<init>(Compiled Code)
at sbs.ebservices.EBTBean.server.EBTBean.getInitialContext(Compiled Code)
at sbs.ebservices.EBTBean.server.EBTBean.getPutSchedule(Compiled Code)
at sbs.ebservices.EBTBean.server.EBTBeanEOImpl.getPutSchedule(Compiled Code)
at sbs.ebservices.EBTBean.server.EBTBeanEOImpl_ServiceStub.getPutSchedule(Compiled Code)
at sbs.ebservices.servlet.GetPutSchedule.doPost(Compiled Code)
at sbs.ebservices.servlet.EBServletAdaptor.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)

We are using JDK117.
Rob Woollen <[email protected]> wrote:
What JDK are you using? The stack overflow occurs in JDK code not WLS
code.
-- Rob
Sivakumar Anna wrote:
Here is my problem.
Environment : WLS 4.5.1 SP 9
We are hosting a set of servlets in our environment. We started seeing problems in the recent past that after sometime, WLS Server throws StackOverFlow Exception for getInitialContext:
getInitialContext method :
private Context getInitialContext(String urlValue) throws Exception {
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.T3InitialContextFactory");
p.put(Context.PROVIDER_URL, urlValue);
return new InitialContext(p);
The service runs for 2 to 3 hours, after all of a sudden, it fails with the following exception.
Our service fails at different place in our application, but all related to getting the initial context.
Any help would be appreciated.
Thanks
Siva
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.util.Properties.getProperty(Compiled Code)
at java.lang.System.getProperty(Compiled Code)
at weblogic.jndi.Environment.getProperty(Compiled Code)
at weblogic.jndi.Environment.getProviderClient(Compiled Code)
at weblogic.jndi.Environment.getSecurityUser(Compiled Code)
at weblogic.jndi.toolkit.WLContextStub.<init>(Compiled Code)
at weblogic.common.internal.ClassTableEntry.newInstance(Compiled Code)
at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compiled Code)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compiled Code)
at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled Code)
at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compiled Code)
at weblogic.rmi.extensions.AbstractInputStream2.readObject(Compiled Code)
at weblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Compiled Code)
at weblogic.jndi.internal.RemoteContextFactoryImpl_ServiceStub.getContext(Compiled Code)
at weblogic.jndi.WLInitialContextFactory.newContext(Compiled Code)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
at javax.naming.spi.NamingManager.getInitialContext(Compiled Code)
at javax.naming.InitialContext.getDefaultInitCtx(Compiled Code)
at javax.naming.InitialContext.<init>(Compiled Code)
at sbs.ebservices.EBTBean.server.EBTBean.getInitialContext(Compiled Code)
at sbs.ebservices.EBTBean.server.EBTBean.getPutSchedule(Compiled Code)
at sbs.ebservices.EBTBean.server.EBTBeanEOImpl.getPutSchedule(Compiled Code)
at sbs.ebservices.EBTBean.server.EBTBeanEOImpl_ServiceStub.getPutSchedule(Compiled Code)
at sbs.ebservices.servlet.GetPutSchedule.doPost(Compiled Code)
at sbs.ebservices.servlet.EBServletAdaptor.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)

Similar Messages

  • Exception while getting the server instance. Stateless bean problem

    Hi,
    New to OC4J, I'm moving an ear that was running ok under jboss.
    1- The wep app deploys. This is a piece of code inside the init() method of a struts plugin:
         System.out.println("0");
         AddressFacadeHome addressFacadeHome = HomeFactory.getAddressFacadeHome();
         System.out.println("1.0");
         AddressFacade addressFacade = addressFacadeHome.create();
         System.out.println("1.5");
    2- The code is run when the web app is initialized. This is the error message I get. system.out show that the error occurs on addressFacadeHome.create().
    AddressFacade is a remote/local stateless bean. HomeFactory returns the jndi lookup/narrow of the remote object.
    0
    1.0
    caught exception while getting the server instance null
    java.lang.NullPointerException
    com.evermind.security.User com.evermind.server.ThreadState.getCurrentUser()
    ThreadState.java:637
    com.evermind.security.User com.evermind.server.ThreadState.getUser()
    ThreadState.java:371
    fda.common.address.ejb.interfaces.AddressFacade AddressFacadeHome_StatelessSessionHomeWrapper7.create(
    AddressFacadeHome_StatelessSessionHomeWrapper7.java:66
    void fda.web.oaa.struts.plugin.ApplicationInit.init(org.apache.struts.action.ActionServlet, org.apache
    .struts.config.ModuleConfig)
    void org.apache.struts.action.ActionServlet.initModulePlugIns(org.apache.struts.config.ModuleConfig)
    ActionServlet.java:1105
    void org.apache.struts.action.ActionServlet.init()
    ActionServlet.java:468
    void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
    GenericServlet.java:258
    com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.loadServlet(com.
    evermind.util.ByteString)
    HttpApplication.java:1956
    com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.findServlet(com.
    evermind.util.ByteString)
    HttpApplication.java:4355
    void com.evermind.server.http.HttpApplication.initPreloadServlets()
    HttpApplication.java:4455
    void com.evermind.server.http.HttpApplication.initDynamic(com.evermind.server.http.HttpApplicationConf
    ig)
    HttpApplication.java:662
    void com.evermind.server.http.HttpApplication.<init>(com.evermind.server.Application, com.evermind.ser
    ver.http.HttpSite, com.evermind.server.http.HttpApplicationConfig, java.lang.String, java.lang.String, boolean
    My guess is that it's a jaas issue (because i see security and getCurrentUser), but at init time, no user is authenticated.
    Any clue would be very much appreciated. Let me know if I can provide anything else, such as deployment descriptors.
    Thanks,
    Christophe.

    After spending some time on this, I looked at the source code for com.evermind.server.ThreadState
    This is the code that throws the exception:
    if(applicationThread != null && applicationThread.httpHandler != null && applicationThread.servletInfo != null)
    try
    server = applicationThread.httpHandler.request.getApplication().getApplication().getServer();
    catch(Throwable t)
    System.out.println("caught exception while getting the server instance " + t.getMessage());
    t.printStackTrace(System.out);
    It looks like this method expects a httpRequest, and would find null because I'm in the servlet.init()
    (at least, that's my interpretation)
    I tested my code (the remoteFacade.create()) inside of a jsp, and it worked...
    So, the next logical question is:
    Can I make EJB calls from within the init method of a servlet? (or more specifically from a struts plugin, which I believe should be more or less the same thing)
    If so, do I need to take extra steps?
    Again, any experience/help on this will be much appreciated.
    Thanks,
    Christophe.

  • Getting the exception : Exception while getting default policy provider

    Using WLST, I shutdown a server, HomePageServer_1 which is part of a cluster, HomePageCluster, successfully. But I am unable to re-start it wither using WLST or admin console. I am getting the following error as per managed server log :
    +The dynamic loading of the OPSS java security policy provider class oracle.security.jps.internal.policystore.JavaPolicyProvider failed due to problem inside OPSS java security policy provider. Exception was thrown when loading or setting the JPSS policy provider. Enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider+
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1394)
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1018)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)
    at weblogic.security.SecurityService.start(SecurityService.java:141)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    Truncated. see log file for complete stacktrace
    +Caused By: oracle.security.jps.JpsRuntimeException: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider+
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:269)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:261)
    The following snippet is from AdminServer log :
    +<Apr 24, 2010 4:02:39 PM PDT> <Error> <oracle.jps.policymgmt> <BEA-000000> <Error reading java policies for Application: cn=systempolicy,cn=apmdomain,cn=JPSContext,cn=d8b2d, Reason: oracle.security.jps.service.policystore.PolicyStoreException: javax.naming.CommunicationException: stakb09.us.oracle.com:3060 [Root exception is java.net.ConnectException: Connection refused]>+
    Please provide any workarounds/suggestions.

    what you can try to do is edit the config.xml file (located in the ${DOMAIN_HOME}/config directory).
    Look for the security configuration, realm elements. Just below realm you can add the default authenticator, for example,
    <security-configuration>
        <name>base_domain</name>
        <realm>
          <sec:authentication-provider xsi:type="wls:default-authenticatorType"></sec:authentication-provider>
          <sec:authentication-provider xsi:type="wls:default-identity-asserterType">
            <sec:active-type>AuthenticatedUser</sec:active-type>
          </sec:authentication-provider>
    </security-configuration>

  • Exception while getting InitialContext

    Hello,
    I am facing the following exception while trying to get the Initial Context. Following
    is the snippet of code that I use for getting the Context -
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");p.
    put(Context.PROVIDER_URL, url);
    if (user != null) {
    p.put(Context.SECURITY_PRINCIPAL, user);
    if (password == null)
    password = "";
    p.put(Context.SECURITY_CREDENTIALS, password);
    return new InitialContext(p);
    The following is the exception that I encounter -
    javax.naming.AuthenticationException. Root exception is java.lang.SecurityException:
    attempting to add an object which is not an instance of java.security.Principal
    to a Subject's Principal Set
    Am i missing anything. Thanks for your time.
    Please see attached the trace file for details of the exception
    Thanks,
    Ashutosh Shinde
    [trace.txt]

    I think this happens when you have JAAS classes in the classpath - check
    your classpath and make sure
    weblogic.jar is in front.
    "Ashutosh Shinde" <[email protected]> wrote in message
    news:3d7765ec$[email protected]..
    >
    Hello,
    I am facing the following exception while trying to get the InitialContext. Following
    is the snippet of code that I use for getting the Context -
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");p.
    put(Context.PROVIDER_URL, url);
    if (user != null) {
    p.put(Context.SECURITY_PRINCIPAL, user);
    if (password == null)
    password = "";
    p.put(Context.SECURITY_CREDENTIALS, password);
    return new InitialContext(p);
    The following is the exception that I encounter -
    javax.naming.AuthenticationException. Root exception isjava.lang.SecurityException:
    attempting to add an object which is not an instance ofjava.security.Principal
    to a Subject's Principal Set
    Am i missing anything. Thanks for your time.
    Please see attached the trace file for details of the exception
    Thanks,
    Ashutosh Shinde--
    Dimitri

  • Watched folder error - "Exception while getting principal from Directory manager"

    Hi! I've been having problems with a LiveCycle ES installation.
    I've configured a watched folder that starts a process with an Office
    Document, converts it to PDF and applies a Rights Management Policy.
    It runs on behalf of an Active Directory user.
    Sometimes it works flawlessly, but most of the time it fails, giving a
    ridiculously long failure log with the longest trace stacks I've ever
    seen in life... resumed:
    =======================
    ALC-DSC-600-000: com.adobe.idp.dsc.provider.service.scheduler.impl.SchedulerRuntimeException : Failure to invoke the job [watched_folder_endpoint_name]
    Caused by: ALC-FEP-011-000: com.adobe.idp.dsc.service.file.impl.FileProviderRuntimeException: Failed to get the context on behalf of user [username], domain [company_domain] for watch folder [watched_folder_endpoint_name]
    Caused by: | [com.adobe.idp.um.api.impl.AuthenticationManagerImpl] errorCode:16386 errorCodeHEX:0x4002 message:Exception while getting principal from Directory manager| [IDPLoggedException] errorCode:12801 errorCodeHEX:0x3201 message:Exception while getting principal from Directory manager
    chainedException:javax.ejb.TransactionRolledbackLocalException: null;
    CausedByException is:
    nullchainedExceptionMessage:null; CausedByException is:
    null chainedException
    trace:javax.ejb.TransactionRolledbackLocalException: null;
    CausedByException is:
    null
    =======================
    I vaguely suspect is the server's clock going out of sync with the domain controller's clock, but I tried everything I knew of about it with no consistent results.
    It's LiveCycle 8.0.1 SP2 installed on a Windows 2003 Server.
    Manual install, JBoss Clustered configuration (the second node is actually turned off for the time being)
    SQL Server 2005 as backend Database
    Users on Active Directory on a Windows 2003 Server -which is a "copy" of the main domain controller.
    Watched folder is in a mounted share of another Windows 2003 Server acting as fileserver.
    Any clue will be greatly appreciated!!

    Hello,
    sorry in advance for my english. i am beginning in Adobe LiveCycle and i think that you can help me : i want to configure a watched folder to automatically convert in pdf file and apply a right management policy. Can you tell me how you configure it ? many thanks in advance. regards

  • Error while generating the context node

    Hi ,
    Requirement is to add the marketing attribute field under the Account details overview Page. As the field was not available in the context node i have added a new context node in the Account details. I used the wizard and added the context node BuilmktattributeRel so as i can add "Attribute set" under the BP overview page."
    Now after adding the context node and while executing i am unable to see the overview view page, i am getting an error :
    1. Component GET_ATTRIBUTE does not exist
    2. Determination of BOL attributes failed
    Also i am unable to regenrate the GET_I_method. If i want to delete the Zcontextnode, i am unable to do so.
    Kindly help me with the technical approach to add the context node in the overview page.
    Thanks in advance,
    Sunil

    One thread would have been sufficient.
    Error while generating the context node

  • Error while getting the ORACLE user account for your concurrent request

    Hi ,
    When I am submitting the Concurrent Program from OAF page Iam getting
    Error
    Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator.
    When we will face this error.
    Not able to submit the Request
    Krishna

    Krishna
    Try like this
    public int submitCPRequest(String shipmentId) {
    System.out.println("into submitCPRequest");
    try {
    OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
    OADBTransaction transaction = am.getOADBTransaction();
    Connection conn = transaction.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(conn);
    cr.setDeferred();
    String applnName = new String("XXAPL"); //Application that contains the concurrent program
    System.out.println("ApplName"+ applnName);
    String cpName = new String("SHIP_REQ"); //Concurrent program name
    System.out.println("Concc Name"+ cpName);
    // String cpDesc = new String("Shipping Request"); // concurrent Program description
    // Pass the Arguments using vector
    // Here i have added my parameter headerId to the vector and passed the
    //vector to the concurrent program
    Vector cpArgs = new Vector();
    cpArgs.addElement(shipmentId);
    System.out.println("Args"+ cpArgs);
    After this it is going into exception
    // Calling the Concurrent Program
    int requestId = cr.submitRequest(applnName, cpName, null, null, false, cpArgs);
    System.out.println("Req Id"+ requestId);
    tx.commit();
    return requestId;
    catch (SetDeferredException e)
    throw new OAException("SetDeferredException " + e.getMessage(),OAException.ERROR);
    catch (RequestSubmissionException e) {
    System.out.println("Into Exception");
    OAException oe = new OAException(e.getMessage());
    oe.setApplicationModule(this);
    throw oe;
    }Thanks
    AJ

  • Missing parameter values while getting the RowsetCursor

    Hi,
    We are getting the below stack trace while getting the RowsetCursor from reportClientDocument. Please advice if are doing something wrong here or some alternate to get this working.
    //Exception Occured : com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Missing parameter values.---- Error code:-2147217394 Error code name:missingParameterValueError
    |1249487250|Exception occurred : Missing parameter values.
    |1249487250|StackTrace : com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Missing parameter values.---- Error code:-2147217394 Error code name:missingParameterValueError
            at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetController.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetController.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetCursor.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetCursor.getRowset(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetController.createCursor(Unknown Source)
    The code we are using is as follows
    //Adding parameter
                                                 Fields pFields = new Fields();
              IParameterField parameterField = new ParameterField();
              parameterField.setName("PP");
              parameterField.setDescription("PPDesc");
              parameterField.setValueRangeKind(ParameterValueRangeKind.discrete);
              parameterField.setParameterType(ParameterFieldType.queryParameter);
              parameterField.setType(FieldValueType.stringField);
              parameterField.setAllowCustomCurrentValues(true);
              parameterField.setAllowMultiValue(false);
              parameterField.setAllowNullValue(false);          
              Values strValues = new Values();        
             ParameterFieldDiscreteValue pFDVStr = new ParameterFieldDiscreteValue();
             pFDVStr.setValue("myValue");
             strValues.add(pFDVStr);          
              parameterField.setDefaultValues(strValues);
              //parameterField.setCurrentValues(strValues);
              parameterField.getCurrentValues().clear();
              parameterField.getCurrentValues().add(pFDVStr);
              pFields.add(parameterField);
    //Adding the parameterised SQL to report as command table where {?PP} is a parameter
                                boNewCommandTable.setConnectionInfo(connectionInfo);
               boNewCommandTable.setCommandText(strSelect);
               boNewCommandTable.setName("MyCommandTable");
               boNewCommandTable.setParameters(pFields);
               try {
                    logger.debug(" adding query to report");
                    reportClientDocument.getDatabaseController().addTable(boNewCommandTable, null);
                    logger.debug(" done adding query to report");
               }catch(Exception e){
                    logger.fatal("query not set" + e);
                    throw e;
              reportClientDocument.getDatabaseController().logon(dbUid, dbPass);
              try {
                   reportClientDocument.verifyDatabase();
                   logger.debug("Database verified for ReportClientDocument");
              } catch (Exception e) {
                   logger.fatal("ReportSDKException Occurred " + e);
                   throw e;
    //Rowset                    
                        int rptRecordCount = 0;
              try{
                   RowsetMetaData rowsetMetadata = new RowsetMetaData();
                   Fields resultFields = reportClientDocument.getDataDefinition().getResultFields();
                   rowsetMetadata.setDataFields(resultFields);
                   RowsetCursor rowsetCursor = reportClientDocument.getRowsetController().createCursor(null, rowsetMetadata);
                   rptRecordCount = rowsetCursor.getRowset().getTotalRecordCount();
                   System.out.println("Processed: got rowset and report record count="+rptRecordCount+".");
              }catch(Exception ex){
                   logger.fatal("Exception Occured : " + ex);
                   ex.printStackTrace();
                   throw ex;

    Please post your SDK development questions to the Developers forum

  • Uncaught Java Exception while persisting the null bean at e-biz suite login

    Dear Friends,
    Recently, there was a java upgrade in my system and after that when i login to E-Biz suite, i get the following Jinitiator error and many Jinitiator windows open up with this error.
    Uncaught Java Exception while persisting the null bean
    Java.io.NotSerializableException:java.lang.thread
        at.java.io.ObjectOutputStream.outputObject(Compiled Code)
        at.java.io.ObjectOutputStream.writeObject(Compiled Code)
        at.java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:369)
        at.java.io.ObjectOutputStream.outputObject(Compiled Code)
        at.java.io.ObjectOutputStream.writeObject(Compiled Code)
        at sun.beans.ole.OleBeanInterface.saveBean(OleBeanInterface.java.508)It is very difficult to deal with many jinitiator error windows opening up.
    Could any one tell the reason for this issue and its resolution as well?
    Regards,
    Sreekanth
    Edited by: Sreekanth Munagala on Jun 14, 2012 8:49 AM
    Edited by: Sreekanth Munagala on Jun 14, 2012 8:51 AM

    Please post the details of the application release, database version and OS.
    Recently, there was a java upgrade in my system What is this upgrade? From what version to what version?
    What is your client OS/Browser?
    What is the Jinitiator version?
    and after that when i login to E-Biz suite, i get the following Jinitiator error and many Jinitiator windows open up with this error.
    Uncaught Java Exception while persisting the null bean
    Java.io.NotSerializableException:java.lang.thread
    at.java.io.ObjectOutputStream.outputObject(Compiled Code)
    at.java.io.ObjectOutputStream.writeObject(Compiled Code)
    at.java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:369)
    at.java.io.ObjectOutputStream.outputObject(Compiled Code)
    at.java.io.ObjectOutputStream.writeObject(Compiled Code)
    at sun.beans.ole.OleBeanInterface.saveBean(OleBeanInterface.java.508)It is very difficult to deal with many jinitiator error windows opening up.
    Could any one tell the reason for this issue and its resolution as well?Is the issue with all clients and all browsers?
    Have you tried to clear the jcache and the browser history files?
    Thanks,
    Hussein

  • Getting the context and host name during initialization

    I am trying to find a way to get the Context path and the host name during the ContextInitialized event, but without any luck. I think it is very strange that you can not even find the context path or the host name of the application you are running yourself.
    Does anybody have an idea?

    What I mean are the configuration elements which are put in the server.xml
    The BIG problem with the getServletContextName is that this returns the name which is put in the web.xml. But I have a web application which is generic and only some config parameters should be altered. Thats why I need to now in which context I am.
    I think the deployment of web applications is wrong by design. I have to specify deployment information inside the application package which in fact should be presented to the servlet container separately. It's like installing new applications on a computer. It should be possible to create 1 installation file (read a web archive) and then specify the location where you want to install it while deploying it (read specify the host name, context location etc.) Now these two are mixed together which I think is wrong.
    Besides the above problem, I think it is also not correct to let users specify properties while configuring a context (either in the server.xml or the web.xml) and then not having an equivelant in the object model (Read the ServletContext object).
    Morten

  • How can to get the context of Repository Service?

    Hi All,
    How can we get the context of Repository Service?
    I am able to get the repository service using the below given code.
    IRepositoryServiceFactory sf = ResourceFactory.getInstance().getServiceFactory();
    IRepositoryService service=sf.getRepositoryService(IRFServiceWrapper.KEY);
    But want to know how to get the context of this RepositoryService.
    Regards
    George

    Hi George,
    Is this what you're wanting:
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    IUser user = (IUser)request.getUser().getUser();
    IResourceContext resourceContext = new ResourceContext(user);
    // Get the Service
    IRepositoryServiceFactory repServiceFactory = null;
    try {
      repServiceFactory = ResourceFactory.getInstance().getServiceFactory();
    } catch (Exception ex) {
      ex.printStackTrace();
    if(repServiceFactory == null) {
      System.out.println("Repository Service Factory is null!!");
    // Check to make sure that the folder that was passed in is valid.
    RID folderRID = new RID(startFolder);
    try {
      IResource resource = ResourceFactory.getInstance().getResource(folderRID, resourceContext);
    } catch ( InvalidUriException ie ) {
      System.out.println("in the InvalidUriException catch");
      ie.printStackTrace();
    } catch ( Exception e) {
      System.out.println("exception: " + e.getMessage());
      e.printStackTrace();
    If this isn't what you're looking for, maybe you could tell us what specifically you're trying to do.
    Thanks!
    -StephenS

  • MySQL issue: Exception while getting MetaDataInfo

    Hi Folks,
    Our application is starting MySQL internally during startup.
    Sometimes, I get the following exception and MySQL doesn't start:
    [09 Jul 2007 14:05:35:733] Exception while getting MetaDataInfo : Can't create/write to file 'C:\DOCUME~1\sridhar\LOCALS~1\Temp\#sql_884_0.MYI' (Errcode: 13)
    [09 Jul 2007 14:05:35:733] java.sql.SQLException: Can't create/write to file 'C:\DOCUME~1\sridhar\LOCALS~1\Temp\#sql_884_0.MYI' (Errcode: 13)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.Connection.execSQL(Connection.java:3118)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.Connection.execSQL(Connection.java:3047)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.Statement.executeQuery(Statement.java:1166)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.DatabaseMetaData$2.forEach(DatabaseMetaData.java:2046)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.DatabaseMetaData$IterateBlock.doForAll(DatabaseMetaData.java:76)
    [09 Jul 2007 14:05:35:748]      at com.mysql.jdbc.DatabaseMetaData.getColumns(DatabaseMetaData.java:1920)
    [09 Jul 2007 14:05:35:748]      at com.adventnet.nms.store.relational.MetaDataInfo.getMetaDataInfo(MetaDataInfo.java:355)
    [09 Jul 2007 14:05:35:748]      at com.adventnet.nms.store.relational.RelationalUtil.initMetaInfo(RelationalUtil.java:1251)
    [09 Jul 2007 14:05:35:748]      at com.adventnet.nms.store.relational.RelationalUtil.initMetaInfo(RelationalUtil.java:1240)
    [09 Jul 2007 14:05:35:748]      at com.adventnet.nms.startnms.NmsMainBE.main(NmsMainBE.java:361)
    [09 Jul 2007 14:05:35:748] Exception while getting MetaDataInfo : Can't create/write to file
    If any of you have seen the same, please do let me know what can be the problem and how to overcome the same.
    Thanks much,
    Sandeep

    Hi,
    I do have the permission. I've logged in as admin.
    There was another related mail thread that says it may be to do with Virus Scan settings on the machine:
    http://forum.java.sun.com/thread.jspa?threadID=5061757&messageID=9333692
    Will try the solution provided there.
    Thanks,
    Sandeep

  • Exception while getting MarketData - in FBS

    I successfully deployed FBS on JDeveloper. However when i try running the app, i get the following msg while going for ControllerServlet. :
    oracle.otnsamples.ibfbs.admin.exception.AdminHelperException: Exception while getting MarketData : oracle.otnsamples.ibfbs.admin.exception.AdminHelperException: SQLException while getting Symbols list : java.sql.SQLException: ORA-00942: table or view does not exist
    Stack Trace :
    oracle.otnsamples.ibfbs.admin.exception.AdminHelperException: Exception while getting MarketData : oracle.otnsamples.ibfbs.admin.exception.AdminHelperException: SQLException while getting Symbols list : java.sql.SQLException: ORA-00942: table or view does not exist at oracle.otnsamples.ibfbs.admin.helper.StockSymbolHelper.getStockRatesandNews(StockSymbolHelper.java:369) 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:324) at oracle.otnsamples.ibfbs.control.RequestProcessor.processRequest(RequestProcessor.java:274) at oracle.otnsamples.ibfbs.control.ControllerServlet.process(ControllerServlet.java:121) at oracle.otnsamples.ibfbs.control.ControllerServlet.doGet(ControllerServlet.java:174) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.otnsamples.ibfbs.control.AccessControlFilter.doFilter(AccessControlFilter.java:217) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)
    Can anyone suggest a solution.

    Did you follow step no 1 in the setup list. ??
    http://www.oracle.com/technology/sample_code/tutorials/fbs/over/setup.htm
    and you should be using same db user account in the database configuration file.

  • OM vision India Hyderabad---exception while doing the ship confirm

    order management vision India Hyderabad ----we are getting the exception while doing the ship confirm the exceptions are shown below:
    Order: 20041 customer: C2il_customer Item: XXBikeEngine Error: NO DATA FOUND
    Order: 20041 customer: C2il_customer Item: XXBikeEngine Error: NO DATA FOUND Transactions window: Pick and ship
    Errors
    Warning: Item on delivery detail 3962489 does not have pre-specified weight and volume.
    Warning: Delivery 3773383 has null Weight
    Error: Bill of Lading Number could not be generated because the ship method code was not selected for the trip 3129358.
    Warning: Bill of Lading information could not be automatically created for delivery 3773383.
    Submitted 4 out of 4 documents for this document set. (REQ_IDS=5807692, 5807693, 5807694, 5807695)
    Warning: Failed to submit document set for delivery 3773383
    Warning: 1 deliveries will be marked as Confirmed.
    Warning: Some deliveries selected for Ship Confirm have errors or warnings.
    i am grateful if any one can provide suggestion on the issue.....

    Can you please share the documents and suggestions for R12Have you reviewed all the docs referenced above?
    actually all are working fine in normal vision operations,and we are facing the exceptions while we are doing in OM vision India Hyderabad.
    is there any setups do we configured for the OM vision India Hyderabad.if you can share any information on that it will be helpful...If the docs referenced above and Oracle Documentation http://download.oracle.com/docs/cd/B53825_08/current/html/docset.html do not help, then I would suggest you log a SR.
    Thanks,
    Hussein

  • NPE Exception while getting mutable object

    I have an application (Model + ViewController). The ViewController is deployed as a jar file. The other application depends on the first project jar. The second application is a simple web application that responds to REST query. The first call is working fine. The second call throws an exception (NPE), and all following calls are working fine. I don't really understand the exception, what should I look for?
    SEVERE: Exception while getting mutable object
    java.lang.NullPointerException
            at oracle.mds.internal.persistence.NamespaceRulesImpl.<init>(NamespaceRulesImpl.java:123)
            at oracle.mds.internal.persistence.NamespaceRules.getNamespaceRulesObj(NamespaceRules.java:72)
            at oracle.mds.internal.util.ChangeUtil.convertToMOEvents(ChangeUtil.java:134)
            at oracle.mds.internal.notifications.EventNotificationManager.handleChanges(EventNotificationManager.java:354)
            at oracle.mds.internal.notifications.EventNotificationManager.handlePChanges(EventNotificationManager.java:251)
            at oracle.mds.core.MOState.signalStale(MOState.java:1185)
            at oracle.mds.core.MOState.signalStale(MOState.java:644)
            at oracle.mds.core.MOState.checkStalenessDocFromBuilder(MOState.java:739)
            at oracle.mds.core.MOState.getIsStaleLastModified(MOState.java:559)
            at oracle.mds.core.MOContent.getIsStaleLastModified(MOContent.java:277)
            at oracle.mds.core.ChainedMOContent.getIsStaleLastModified(ChainedMOContent.java:142)
            at oracle.mds.core.MetadataObject.isStale(MetadataObject.java:818)
            at oracle.adf.share.jndi.MDSBackingStore.obtainMetadataObject(MDSBackingStore.java:517)
            at oracle.adf.share.jndi.MDSBackingStore.getMOBean(MDSBackingStore.java:572)
            at oracle.bc4j.mbean.RuntimeMXBeanImpl.init(RuntimeMXBeanImpl.java:128)
            at oracle.bc4j.mbean.RuntimeMXBeanImpl.<init>(RuntimeMXBeanImpl.java:118)
            at oracle.bc4j.mbean.RuntimeMXBeanImpl.<init>(RuntimeMXBeanImpl.java:109)
            at oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack.contextInitialized(BC4JConfigLifeCycleCallBack.java:160)
            at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
            at weblogic.servlet.internal.WebAppServletContext.reloadServletClassLoader(WebAppServletContext.java:3106)
            at weblogic.servlet.internal.FilterWrapper.reloadFilter(FilterWrapper.java:63)
            at weblogic.servlet.internal.FilterWrapper.checkForReload(FilterWrapper.java:104)
            at weblogic.servlet.internal.FilterWrapper.getFilter(FilterWrapper.java:41)
            at weblogic.servlet.internal.FilterChainImpl.add(FilterChainImpl.java:35)
            at weblogic.servlet.internal.FilterManager.getFilterChain(FilterManager.java:232)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3727)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Nov 25, 2013 1:44:58 PM oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack contextInitialized
    WARNING: com/example/model/module/common/bc4j.xcfg: java.lang.NullPointerException

    The applications already existed when I started working on them, but I don't think the model projects were renamed or moved. I changed the original warning message "com/example/model/module/common/bc4j.xcfg". The warning message points to the correct bc4j.xml files.

Maybe you are looking for

  • Runtime Error with Adobe

    When I try loading a PDF document I get the following error: Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\Program Files\Adobe\Reader 10.0\Reader\AcroRD32.exe This application has requested the Runtime to terminate it in an unusual

  • Breaking table

    Hi All,         I have create a smartform.Table is in under the loop such as box(frame).In this sense when move to on the next page the table is breaking like half frame in first page another half page in 2nd page.... I gone through some threads,they

  • Unix Shell Script to check file Format

    Hello I am New to shell scripting.Please help me to write a script for the below condition.Any help is highly appreciated. I will get a text file every month like the one below Sample file Payslip.txt ======== EMPID EMAIL PCTAG# 4946:[email protected

  • Refresh DIV area contents

    I have DIV area on my page which contains php code <? echo rand();?> this shows random number in DIV area, now i have to refresh this DIV area so that on click only this DIV area refreshes and new random number appears. after this i will update this

  • Creating interactive forms

    I used to be able to turn regular documents and PDFs into interactive forms by adding fields.  I don't remember what program this was but I no longer have it.  I wonder if Adobe CreatePDF has this function.