PropertyResourceBundle gives NullPointerException

Hello,
I don't know if this is the right place to post, but it seems the nearest one to my Problem.
The Problem is, like stated in the Topic, PropertyResourceBundle gives me a NullPointerException when using it in an Applet.
First things first: I'm using JRE 1.5.0_03 under W2K.
I was trying to open a CachedRowSet in an Applet using
CachedRowSet crs = new CachedRowSetImpl();
That works fine in Rational Web Developer IDE (using Eclipse) with the AppletViewer. It also works fine when I write a little Test Class and invoke the creation of the CachedRowSet from the Commandline.
The Test Class is:
public class Tests {
     public static void main(String[] args) {
          System.out.println("Creating Rowset");
          try {
               CachedRowSet crs = new CachedRowSetImpl();
               System.out.println("Size of RowSet: " + crs.size());
          catch (Exception e) {
               System.out.println("Error: " + e.getMessage());
          System.out.println("Done");
When executing it via Commandline the Sizeoutput is 0 (like anticipated).
Ok....so far so good. Reading older comments on these Forums about CachedRowSet giving NullPointerExceptions I realized that it's not the CachedRowSet but the PropertyResourceBundle. So I decompiled JdbcRowSetResourceBundle.class with jad and got to the following Code:
propResBundle = new PropertyResourceBundle(Thread.currentThread().getContextClassLoader().getResourceAsStream("com/sun/rowset/RowSetResourceBundle.properties"));
Again, it works fine within Rational Web Developer.
But when I try to open it in a Browser with the Java Plugin I always get the following Error:
java.lang.NullPointerException
     at java.util.Properties$LineReader.readLine(Unknown Source)
     at java.util.Properties.load(Unknown Source)
     at java.util.PropertyResourceBundle.<init>(Unknown Source)
Before that, I do a System.out.print of the Classloader, which gives me:
Classloader: sun.plugin.security.PluginClassLoader@e28b9
Here's the whole trace:
basic: Registrierter Modality-Listener
liveconnect: JS-Methode wird gestartet: document
liveconnect: JS-Methode wird gestartet: URL
basic: ClassLoader wird referenziert: sun.plugin.ClassLoaderInfo@1cac6db, refcount=1
basic: Fortschritts-Listener hinzugef�gt: sun.plugin.util.GrayBoxPainter@94884d
basic: Applet wird geladen...
basic: Applet wird initialisiert...
basic: Applet wird gestartet...
Classloader: sun.plugin.security.PluginClassLoader@e28b9
java.lang.NullPointerException
     at java.util.Properties$LineReader.readLine(Unknown Source)
     at java.util.Properties.load(Unknown Source)
     at java.util.PropertyResourceBundle.<init>(Unknown Source)
     at com.ips.eurotime.dbaccess.TimeExpressAnmeldungSQL.get_masken_beschrift(TimeExpressAnmeldungSQL.java:318)
     at com.ips.eurotime.dbaccess.CommunicationHandler.hole_masken_beschrift(CommunicationHandler.java:2124)
     at com.ips.TimeExpressGUIZutritt.TimeExpressAnmeldung.hole_allgemeine_masken_info(TimeExpressAnmeldung.java:1001)
     at com.ips.TimeExpressGUIZutritt.TimeExpressAnmeldung.init(TimeExpressAnmeldung.java:133)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
basic: Ausnahme: java.lang.NullPointerException
I'm stuck and getting out of Ideas. Does anyone have had the same problem or knows a solution for it?
Thanks,
Carsten

Hi,
I've got exact the same problem, did you solved the problem?
Please, tell me if you fixed the problem.
Thanks& Bye

Similar Messages

  • Deleting a row from a Parent VO gives NullPointerException

    I am using JDev 11.1.1.2.0
    Deleting a row from a Parent VO gives NullPointerException raised from oracle.jbo.server.EntityImpl.vetoRemoveWithDetails(EntityImpl.java:8214)
    Here is my implementation:
    There are two Entity Objects(Named "Parent" and "Child").
    Both EO are NOT based on a database table. (These are populated from a method in the AM, the method calls a database API that returns an nested array and this array is used to populate the Parent and Child entities)
    All attributes in these entity objects are Non-persistent.
    The View Object "ParentEv" is based on "Parent" EO
    The View Object "ChildEv" is based on "Child" EO
    The View Objects "ParentEv" and "ChildEv" are linked by a view link.
    The Entities "Parent" and"Child" are linked by Entity Association ( as "Composition Association" with "Implement Cascade Delete" checked.)
    I am programatically deleting and populating the View Objects ParentEv and ChildEv from a method in the AM.
    The first time I execute the method in BC Tester, it works fine.
    The second time I execute the method it works fine.
    But on third execution, it gives the below error which seems to be NullPointerException raised from oracle.jbo.server.EntityImpl.vetoRemoveWithDetails(EntityImpl.java:8214)
    I am able to reproduce this in a test case scenario. It always works the first 2 times and fails when the method to delete and populate the VOs is executed a 3rd time.
    If we base the "Parent" and "Child" entities on some dummy database views, it works fine, the problem only occurs when the Entities are NOT based on any table.
    Can someone advise on what could be causing this issue?
    Thanks,
    Mitesh.

    Here's the method that I use in my test case to populate the VOs.
       * This method populates the VOs ParentEv and ChildEv.
       * These VOs are based on EOs Paren and Child, respectively.
       * Before populating the VOs I am deleting any existing rows.
       * The first two times this method is executed, it works fine.
       * The third time this method executes it gives a nullpointerexception raised from
       * oracle.jbo.server.EntityImpl.vetoRemoveWithDetails(EntityImpl.java:8214)
      public void populateMethod(){
        int rowCount = getParentEv().getRowCount();   
        for (int i = 0; i < rowCount; i++) {
             Row row = getParentEv().last();
             if(row!=null)
               row.remove();
        rowCount = getChildEv().getRowCount();
        for (int i = 0; i < rowCount; i++) {
         Row row = getChildEv().last();
         if(row!=null)
           row.remove();
        int k = 0;
        for (int i = 1; i < 5; i++) {   
          ParentEvRowImpl parentEvRow = (ParentEvRowImpl)getParentEv().createRow();
          parentEvRow.setParentPk("Parent " + i);
          parentEvRow.setParentDesc("Parent Desc " + i);
          getParentEv().insertRow(parentEvRow);   
          for (int j = 1; j < 5; j++) {   
         k++;
         ChildEvRowImpl childEvRow = (ChildEvRowImpl)getChildEv().createRow();
         childEvRow.setChildPk("Child " + k);
         childEvRow.setChildDesc("Child Desc " + k);
         getChildEv().insertRow(childEvRow);   
      }==============================================================================
    Here is the Parent.xml for the Parent EO:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <!---->
    <Entity
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="Parent"
      Version="11.1.1.55.36"
      AliasName="Parent"
      BindingStyle="OracleName"
      UseGlueCode="false"
      RowClass="oracle.jbo.server.EntityImpl"
      DefClass="oracle.jbo.server.EntityDefImpl"
      CollClass="oracle.jbo.server.EntityCache">
      <DesignTime>
        <AttrArray Name="_publishEvents"/>
      </DesignTime>
      <Attribute
        Name="ParentPk"
        IsQueriable="false"
        IsPersistent="false"
        ColumnName="PARENTPK"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="$none$"
        PrimaryKey="true"/>
      <Attribute
        Name="ParentDesc"
        IsQueriable="false"
        IsPersistent="false"
        ColumnName="$none$"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="$none$"/>
      <AccessorAttribute
        Name="Child"
        Association="model.eo.ea.ChildParentAssoc"
        AssociationEnd="model.eo.ea.ChildParentAssoc.Child"
        AssociationOtherEnd="model.eo.ea.ChildParentAssoc.Parent"
        Type="oracle.jbo.RowIterator"
        IsUpdateable="false"/>
    </Entity>==============================================================================
    Here is the Child.xml for the Child EO:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <!---->
    <Entity
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="Child"
      Version="11.1.1.55.36"
      AliasName="Child"
      BindingStyle="OracleName"
      UseGlueCode="false">
      <DesignTime>
        <AttrArray Name="_publishEvents"/>
      </DesignTime>
      <Attribute
        Name="ChildPk"
        IsUpdateable="while_insert"
        IsQueriable="false"
        IsPersistent="false"
        IsNotNull="true"
        ColumnName="CHILDPK"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="$none$"
        PrimaryKey="true"/>
      <Attribute
        Name="ChildDesc"
        IsQueriable="false"
        IsPersistent="false"
        ColumnName="$none$"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="$none$"/>
      <Attribute
        Name="ParentPk"
        IsQueriable="false"
        IsPersistent="false"
        IsNotNull="true"
        ColumnName="$none$"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="$none$"/>
    </Entity>==============================================================================
    Here is the ChildParentAssoc.xml for the Association between Parent and Child EOs:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE Association SYSTEM "jbo_03_01.dtd">
    <!---->
    <Association
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="ChildParentAssoc"
      Version="11.1.1.55.36">
      <DesignTime>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <AssociationEnd
        Name="Parent"
        Cardinality="1"
        Source="true"
        Owner="model.eo.Parent"
        DeleteContainee="true"
        LockLevel="NONE"
        ExposedAccessor="false">
        <DesignTime>
          <Attr Name="_aggregation" Value="0"/>
          <Attr Name="_finderName" Value="Parent"/>
          <Attr Name="_isUpdateable" Value="true"/>
          <Attr Name="_minCardinality" Value="1"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.eo.Parent.ParentPk"/>
        </AttrArray>
      </AssociationEnd>
      <AssociationEnd
        Name="Child"
        Cardinality="-1"
        Owner="model.eo.Child"
        HasOwner="true">
        <DesignTime>
          <Attr Name="_aggregation" Value="0"/>
          <Attr Name="_finderName" Value="Child"/>
          <Attr Name="_isUpdateable" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.eo.Child.ParentPk"/>
        </AttrArray>
      </AssociationEnd>
    </Association>==============================================================================
    Here is the ParentEv.xml for the ParentEv VO:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="ParentEv"
      Version="11.1.1.55.36"
      BindingStyle="OracleName"
      CustomQuery="true"
      RowClass="model.vo.ev.ParentEvRowImpl"
      ComponentClass="model.vo.ev.ParentEvImpl"
      PageIterMode="Full"
      UseGlueCode="false">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access|Coll"/>
        <Attr Name="_isExpertMode" Value="true"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <EntityUsage
        Name="Parent"
        Entity="model.eo.Parent"/>
      <ViewAttribute
        Name="ParentDesc"
        IsSelected="false"
        IsQueriable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="255"
        EntityAttrName="ParentDesc"
        EntityUsage="Parent"
        AliasName="PARENTDESC"/>
      <ViewAttribute
        Name="ParentPk"
        IsQueriable="false"
        IsPersistent="false"
        PrecisionRule="true"
        EntityAttrName="ParentPk"
        EntityUsage="Parent"/>
      <ViewLinkAccessor
        Name="ChildEv"
        ViewLink="model.vo.vl.ChildEvParentEvVl"
        Type="oracle.jbo.RowIterator"
        IsUpdateable="false"/>
    </ViewObject>==============================================================================
    Here is the ChildEv.xml for the ChildEv VO:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="ChildEv"
      Version="11.1.1.55.36"
      BindingStyle="OracleName"
      CustomQuery="true"
      RowClass="model.vo.ev.ChildEvRowImpl"
      ComponentClass="model.vo.ev.ChildEvImpl"
      PageIterMode="Full"
      UseGlueCode="false">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access|Coll"/>
        <Attr Name="_isExpertMode" Value="true"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <EntityUsage
        Name="Child"
        Entity="model.eo.Child"/>
      <ViewAttribute
        Name="ChildDesc"
        IsSelected="false"
        IsQueriable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="255"
        EntityAttrName="ChildDesc"
        EntityUsage="Child"
        AliasName="CHILDDESC"/>
      <ViewAttribute
        Name="ChildPk"
        IsUpdateable="while_insert"
        IsQueriable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="ChildPk"
        EntityUsage="Child"/>
      <ViewAttribute
        Name="ParentPk"
        IsQueriable="false"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="ParentPk"
        EntityUsage="Child"/>
    </ViewObject>==============================================================================
    Here is the ChildEvParentEvVl.xml for the view link between ParentEv and ChildEv VOs:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE ViewLink SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewLink
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="ChildEvParentEvVl"
      Version="11.1.1.55.36">
      <DesignTime>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <ViewLinkDefEnd
        Name="ParentEv"
        Cardinality="1"
        Owner="model.vo.ev.ParentEv"
        Source="true">
        <DesignTime>
          <Attr Name="_finderName" Value="ParentEv"/>
          <Attr Name="_isUpdateable" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.vo.ev.ParentEv.ParentPk"/>
        </AttrArray>
      </ViewLinkDefEnd>
      <ViewLinkDefEnd
        Name="ChildEv"
        Cardinality="-1"
        Owner="model.vo.ev.ChildEv">
        <DesignTime>
          <Attr Name="_finderName" Value="ChildEv"/>
          <Attr Name="_isUpdateable" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="model.vo.ev.ChildEv.ParentPk"/>
        </AttrArray>
      </ViewLinkDefEnd>
    </ViewLink>

  • UWL action for SAPWebDynproLauncher gives NullPointerException

    Hello,
    I have create a action for call a WebDynpro Application. But it gives a exception. The error comes before my WD Application was calling.
    java.lang.NullPointerException
        at com.sap.netweaver.bc.uwl.ui.control.UWLActionControl.handleActionFromTable(UWLActionControl.java:642)
        at com.sap.netweaver.bc.uwl.ui.UWLMainView.onActionUWLActions(UWLMainView.java:607)
        at com.sap.netweaver.bc.uwl.ui.wdp.InternalUWLMainView.wdInvokeEventHandler(InternalUWLMainView.java:469)
        at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
        at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
        ... 27 more
    I use the transaction SWFVISU. I have re-registered the System and the item. I customized my own view in configuration file with <DisplayAttribute name="detailIcon" actionRef="launchWebDynPro"/> . With sap standard action i have no problem but with my own.
    Can anybody help me.
    best regards
    karsten

    Karsten,
    Can you post two things to help us resolve your problem:
    1. The section of the UWL XML file which configures launching the Web Dynpro
    2. The URL of the Web Dynpro application when you launch it in "preview" mode
    Here's a sample which worked for me on a previous project:
      <ItemTypes>
        <ItemType name="uwl.task.webflow.TS90000001" connector="WebFlowConnector" defaultView="ESCRView" defaultAction="launchWebDynPro" executionMode="pessimistic">
          <ItemTypeCriteria externalType="TS90000001" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
              <Properties>
                <Property name="WebDynproApplication" value="UWLChoiceList"/>
                <Property name="WebDynproDeployableObject" value="local/ESCR01"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default="Launch Choice List">
              </Descriptions>
            </Action>
          </Actions>
          <Menu>
            <MenuItem name="launchWebDynPro" actionRef="launchWebDynPro"/>
          </Menu>
        </ItemType>
    Regards,
    Darren

  • DeclareControl tag gives nullPointerException

    Hi guys,
    I upgraded my code from 8.1.5 to 10.2. In one JSP file we are using declareControl tag as
    *<netui-compat-data:declareControl controlId="abcDBControl" type="abcDBControl"/>*
    When this line is executed it gives me error on console as
    <Sep 2, 2009 4:37:09 AM PDT> <Error> <org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler> <BEA-000000> <Could not find exception handler method handleException for java.lang.NullPointerException.>
    <Sep 2, 2009 4:37:09 AM PDT> <Error> <org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler> <BEA-000000> <Could not find exception handler method handleException for java.lang.RuntimeException.>
    <Sep 2, 2009 4:37:09 AM PDT> <Error> <org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler> <BEA-000000> <Could not find message-resources for bundle org.apache.struts.action.MESSAGE>
    I am unable to understand why it is giving me nullPointerException? the abcDBControl is present in my codeBase and why i am getting this Struts error message?
    If any body knows then please help me.
    Any kind of help is Appreciated.
    Thanks,
    DPAK.

    Hi guys,
    I upgraded my code from 8.1.5 to 10.2. In one JSP file we are using declareControl tag as
    *<netui-compat-data:declareControl controlId="abcDBControl" type="abcDBControl"/>*
    When this line is executed it gives me error on console as
    <Sep 2, 2009 4:37:09 AM PDT> <Error> <org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler> <BEA-000000> <Could not find exception handler method handleException for java.lang.NullPointerException.>
    <Sep 2, 2009 4:37:09 AM PDT> <Error> <org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler> <BEA-000000> <Could not find exception handler method handleException for java.lang.RuntimeException.>
    <Sep 2, 2009 4:37:09 AM PDT> <Error> <org.apache.beehive.netui.pageflow.internal.DefaultExceptionsHandler> <BEA-000000> <Could not find message-resources for bundle org.apache.struts.action.MESSAGE>
    I am unable to understand why it is giving me nullPointerException? the abcDBControl is present in my codeBase and why i am getting this Struts error message?
    If any body knows then please help me.
    Any kind of help is Appreciated.
    Thanks,
    DPAK.

  • JarURLConnection gives NullPointerException

    Help Please!
    I have been developing with JDK1.3.0 for some time and have just done some testing with 1.3.1 and 1.4.0. These both give a NullPointerException which was not there in 1.3.0.
    I am calling JEditorPane setPage with a URL of an HTML resource in the code JAR. The URL is valid and works in 1.3.0 but 1.3.1 and 1.4.0 give the following stack trace ...
    java.lang.NullPointerException
         at sun.net.www.protocol.jar.JarURLConnection.getHeaderField(JarURLConnection.java:176)
         at java.net.URLConnection.getContentEncoding(URLConnection.java:392)
         at javax.swing.JEditorPane.getStream(JEditorPane.java:700)
         at javax.swing.JEditorPane.setPage(JEditorPane.java:392)
         at items.display.WebPageDisplayItem.initDisplay(WebPageDisplayItem.java:197)
    Any ideas why? Is this a bug? I couldn't find it but I can't believe I am the only person trying this!
    Thanks.
    Keith.

    I got around this problem (/com/eplus/secdoc/client/branding/terms_and_conditions.html is in a JAR in my class path)
    this.jEditorPane_account_info.setPage(getClass().getResource("/com/eplus/secdoc/client/branding/terms_and_conditions.html"));throwing this
    java.lang.NullPointerException
            at sun.net.www.protocol.jar.JarURLConnection.getHeaderField(JarURLConnection.java:176)
            at java.net.URLConnection.getContentEncoding(URLConnection.java:392)
            at javax.swing.JEditorPane.getStream(JEditorPane.java:700)
            at javax.swing.JEditorPane.setPage(JEditorPane.java:392)by doing this:
    URL u = getClass().getResource("/com/eplus/secdoc/client/branding/terms_and_conditions.html");
    this.jEditorPane_account_info.setEditorKit(new javax.swing.text.html.HTMLEditorKit());
    javax.swing.text.html.HTMLDocument html = new javax.swing.text.html.HTMLDocument();
    html.setBase(u);
    this.jEditorPane_account_info.read(u.openStream(), html);

  • Passing null in ArrayList as part of EJB Method gives NullPointerException

    Hi gurus,
    I have many EJBS in my application. All are working fine but when I pass null as element of ArrayList (serializable object) and pass ArrayList object to SessionBean it gives me NullPointerException. I think as part of EJB Specification it allows the Serialized object as part of method call but I think Oracle9iAS 903 has this as an error.
    e.g
         ArrayList mylist = new ArrayList();
         mylist.add("lar");
         mylist.add("%");
         mylist.add(new Long(0));
         mylist.add("%");
         mylist.add(new Long(0));
         mylist.add("");
         mylist.add("%");
         mylist.add("Y");
         mylist.add(null);
         mylist.add(new Long(0));
    Object obj= ictx.lookup("java:comp/env/sampleEJB");
    SampleEJBHome home =(SampleEJBHome)PortableRemoteObject.narrow(obj,SampleEJBHome.class);
    SampleEJB sampleEJB = home.create();
    ArrayList retList =sampleEJB.test(mylist);
    I think this is error in Oracle 903 IAS. Let me know If I am doing anything wrong here.
    Thanks
    Ritesh

    I checked the bug status for you. It looks like one of our support analysts has tested the patch for the bug I mentioned to see if it resolves the similar problem you have and determined that it doesn't fix the problem you are facing. The bug you mention is still open and pending some further analysis by our bug fixing team.
    The bug text isn't a 100% match what you have entered here in the forum, so it might be still worth your while to get the patch for bug 2753425 from support and test it in an isolated environment to see if it does resolve your problem. I'd recommend that you talk to your support analyst and discuss this with them.
    cheers
    -steve-

  • 9.2.0 Thin driver; PreparedStatement.close() gives NullPointerException when close()d

    Here's the error stack:
    --- Nested Exception ---
    java.lang.NullPointerException
    at oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431)
    at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:3528)
    at oracle.jdbc.driver.OraclePreparedStatement.clearParameters(OraclePreparedSta
    at com.secretseal.util.sql.PooledPreparedStatement.close(PooledPreparedStatemen
    at com.secretseal.util.sql.LoggableStatement.close(LoggableStatement.java:112)
    Has anybody has this issue? Thank you in advance.

    workaround: use Oracle proprietary batching, setExecuteBatch(). My webapp is facing the exact problem. But I used the Oracle 8i drivers and it worked. Meanwhile, will you please tell me what is the AppServer you are using? Cause this happens in Websphere 4.0.x environment but not in 3.5.x and weblogic.
    Thanks,

  • Execute query with {} gives NullpointerException

    Hi,
    I am facing a deployment trouble. I want to deploy a java Stored procedure over 100 Db.
    So I tried to do it with a Java / JDBC program.
    The String I want to execute is :
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "SystemUtil" AS
    import java.lang.*;
    import java.util.*;
    import java.io.*;
    public class SystemUtil {
    The JDBC Command :
    try {
    Stmt = Conn.getOracleConnection().createStatement();
    Stmt.executeUpdate(SQLStmt);
    } catch (SQLException E) {
    throw new EStmtException (Constante.ERROR_EXECUTE ,Conn,SQLStmt,E);
    I have tested executeUpdate and execute with the same Error : NullPointerException.
    Here is the stack trace:
    aused by: java.lang.NullPointerException
    at oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:870)
    at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:952)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)
    at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1614)
    at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1579)
    Java 5.0 and Oracle ojdbc14.jar commingfrom 10.2.0.1 database.
    Regs,
    Olivier

    I filed SR 6103513.994 for a related bug, but this is an important extension.
    If the driver's JDBC SQL extension parser finds '{......]' in active SQL, there
    is a question about whether the driver should throw a parser exception or
    pass the substring unaltered to the DBMS... I suppose your case is not a
    clear bug, but my SR example was egregious:
    Statement s = c.createStatement();
    String sql = "select 'brackets' from dual -- SQL comment with {?} in it";
    s.executeQuery(sql).close();
    That fails because the driver should be stopping it's parsing from the '--' until
    the end-of-line, but isn't.
    Joe Weinstein at BEA Systems

  • Why rmic command in Linux gives NullPointerException

    Hiii
    I have a problem in RMI on Linux
    I whenever i am trying to create Stubs on Linux using rmic it's giving NULLPOINTEREXCEPTION..
    so please can anybody tell me why it's happeneing..
    my command was
    rmic ChatterImpl

    Markus Waldorf wrote:
    Test 1: mv renamed the file to * *.txt*. Does this mean wildcard operations are not possible anymore? Never renamed while moving - feels "+unsafe+". Like talking on a mobile while driving. :-)
    Test 2: Instead of overwriting the test directory, it moved test_test directory inside the existing test. Is this correct?Think so. You need to qualify using "scope" to move the contents of a directory as oppose to the directory itself. So instead of moving "<i>dirname</i>" itself, specify it as "<i>dirname/*</i>" instead.
    E.g.
    /home/billy> mkdir test
    /home/billy> touch test/file1
    /home/billy> ll test
    total 0
    -rw-r--r-- 1 billy billy 0 2010-09-21 11:51 file1
    /home/billy>
    /home/billy> mkdir test2
    /home/billy>
    /home/billy> mv test/* test2
    /home/billy> ll test2
    total 0
    -rw-r--r-- 1 billy billy 0 2010-09-21 11:51 file1
    /home/billy>

  • Breadcrumb gives NullPointerException

    Hello
    we use Jdev 11g TP3 and implemented a BreadCrumb as described in "Web User Interface Developer’s Guide for Oracle Application Development Framework 11g release 1 (11.1.1)"
    The links to the navigation nodes seems to be ok.
    When clicking on any item of the BreadCrumb at runtime following error occures:
    javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:147)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:621)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:276)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:176)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:178)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.security.jazn.oc4j.JAZNFilter$3.run(JAZNFilter.java:434)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:308)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:452)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:646)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:614)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:405)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:168)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at org.apache.myfaces.trinidadinternal.menu.GroupNode.getRefNode(GroupNode.java:146)
         at org.apache.myfaces.trinidadinternal.menu.GroupNode.doAction(GroupNode.java:54)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 43 more
    =================================================================
    Any ideas what's wrong?

    Hi,
    problem is solved now. We have thrown away the breadcrumb and generated it again (from ADF Taskflow).
    This is exact the same we did before but now it works.
    BR
    Peter

  • Strange error (nullPointerException)

    i have a strange problem!
    imports...
    public class one
    public one() {}
    public Vector[] jpt()
    Vector[] r = new Vector[2];
    r[0] = new Vector();
    r[0].addElement(new String("aaaa"));
    r[0].addElement(new String("bbbb"));
    r[1] = new Vector();
    r[1].addElement(new String("cccc"));
    return r;
    public class two
    public two()
    one o = new one();
    Vector[] r;
    r = o.jpt(); //this give nullPointerException
    if I change public Vector[] jpt() to public static Vector[] jpt() then the code works fine
    and also, if I put the method jpt() into class two and access it like this then the code works fine
    public class two
    public two()
    Vector[] r;
    r = jpt(); //this give nullPointerException
    public Vector[] jpt()
    Vector[] r = new Vector[2];
    r[0] = new Vector();
    r[0].addElement(new String("aaaa"));
    r[0].addElement(new String("bbbb"));
    r[1] = new Vector();
    r[1].addElement(new String("cccc"));
    return r;
    does anybody know whats happening??? :(

    Please use [ code ] tags and stick with the Java naming conventions.
    If "static" makes the NPE go away, it means that despite of what you claim what the code is, o is uninitialized.

  • NullpointerException after App module jbo.ampool.timetolive time

    Hi friends,
    I face a strange scenario where my page gives NullpointerException exactly after my jbo.ampool.timetolive time elapses (In my case 2min).
    When I gave the "Disconnect Application upon release" in the App configuration the same NullException raises on page load itself.
    This is the following piece of code where the null pointer raises,
    public <T> T resolveValueExpression(String expression, Class<T> type) {
    ELContext context = FacesContext.getCurrentInstance().getELContext();
    ValueExpression value = getExpressionFactory().createValueExpression(context, expression, type);
    //Null raises in this Value.getValue(Contect)
    // returns null even when value and context is not null
    return (T) value.getValue(context);
    The stack trace is as follows:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=Cannot invoke method getAttribute() on null object
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1048)
         at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1081)
         at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:911)
         at oracle.jbo.server.ViewObjectImpl.createViewAccessorRS(ViewObjectImpl.java:15564)
         at oracle.jbo.server.ViewRowImpl.createViewAccessorRS(ViewRowImpl.java:2572)
         at oracle.jbo.server.ViewRowImpl.createViewAccessorRS(ViewRowImpl.java:2583)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1721)
         at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1891)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:834)
         at com.symmetry.dashboard.panels.model.vo.EditPurchaseInvoiceViewRowImpl.getGoodsReceiptAuthoriserLOV1(EditPurchaseInvoiceViewRowImpl.java:2204)
         at com.symmetry.dashboard.panels.model.vo.EditPurchaseInvoiceViewRowImpl$AttributesEnum$71.get(EditPurchaseInvoiceViewRowImpl.java:945)
         at com.symmetry.dashboard.panels.model.vo.EditPurchaseInvoiceViewRowImpl.getAttrInvokeAccessor(EditPurchaseInvoiceViewRowImpl.java:2224)
         at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:864)
         at oracle.jbo.server.RowImpl.isRefreshRequired(RowImpl.java:574)
         at oracle.jbo.server.ViewRowImpl.isRefreshRequired(ViewRowImpl.java:5481)
         at oracle.jbo.server.RowImpl.isRefreshRequired(RowImpl.java:559)
         at oracle.jbo.server.RowImpl.checkAndAutoClearLOVAttributes(RowImpl.java:351)
         at oracle.jbo.server.ViewObjectImpl.activateTransients(ViewObjectImpl.java:18358)
         at oracle.jbo.server.ViewObjectImpl.activateTransients(ViewObjectImpl.java:18289)
         at oracle.jbo.server.ViewObjectImpl.activateState(ViewObjectImpl.java:18512)
         at oracle.jbo.server.ViewObjectImpl.activateState(ViewObjectImpl.java:18407)
         at oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:4025)
         at oracle.jbo.server.ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:7235)
         at oracle.jbo.server.ViewObjectImpl.activateIteratorState(ViewObjectImpl.java:18742)
         at oracle.jbo.server.ApplicationModuleImpl.activateVOs(ApplicationModuleImpl.java:8172)
         at oracle.jbo.server.ApplicationModuleImpl.doActivateState(ApplicationModuleImpl.java:7918)
         at oracle.jbo.server.ApplicationModuleImpl.doActivateAMState(ApplicationModuleImpl.java:7884)
         at oracle.jbo.server.Serializer.activate(Serializer.java:296)
         at oracle.jbo.server.DBSerializer.activateRootAM(DBSerializer.java:330)
         at oracle.jbo.server.ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:6207)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:219)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8933)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4496)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2458)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2270)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3168)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:516)
         at oracle.adf.model.bc4j.DCJboDataControl.getDataProvider(DCJboDataControl.java:869)
         at oracle.adf.model.binding.DCDataControl.internalGet(DCDataControl.java:1963)
         at oracle.adf.model.bc4j.DCJboDataControl.internalGet(DCJboDataControl.java:855)
         at oracle.adf.model.binding.DCDataControl.get(DCDataControl.java:1929)
         at javax.el.MapELResolver.getValue(MapELResolver.java:164)
         at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
         at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
         at com.sun.el.parser.AstValue.getValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
         at com.symmetry.dashboard.panels.util.BackingUtilsImpl.resolveValueExpression(BackingUtilsImpl.java:36)
         at com.symmetry.dashboard.panels.util.BackingUtilsImpl.getApplicationModuleForDataControl(BackingUtilsImpl.java:29)
         at com.symmetry.dashboard.panels.util.BackingUtils.getApplicationModuleForDataControl(BackingUtils.java:21)
         at com.symmetry.dashboard.panels.view.backing.purchase.EditInvoice.viewMatchedOrders(EditInvoice.java:1070)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at javax.faces.component.UIViewRoot.notifyPhaseListeners(UIViewRoot.java:608)
         at javax.faces.component.UIViewRoot.notifyBefore(UIViewRoot.java:510)
         at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:564)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:777)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:293)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:213)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         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:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: java.lang.NullPointerException: Cannot invoke method getAttribute() on null object
         at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
         at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:750)
         at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:727)
         at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:17)
         at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
         at bc4j.CreatedBy.gs.run(bc4j.CreatedBy.gs.groovy:1)
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1032)
         ... 117 more
    Pls do give be possible solution to fix this

    I believe my problem is that the jbo.ampool.minavailablesize is higher than the normal load on the system. This is stopping app modules to be removed once the jbo.ampool.maxinactiveage time is reached, therefore the only time an AM is removed is when the jbo.ampool.timetolive limit is reached.
    e.g.
    * 35 users log into the application in the morning. The AM pool contains 35 AM's
    * GC on the pool happens. If an AM has reached the jbo.ampool.maxinactiveage then they will not be removed because it would mean that the pool (currently 35) drops below the jbo.ampool.minavailablesize (50)
    * GC happens again and the jbo.ampool.timetolive threshold is now reached on all AM's so they are all removed from the pool.

  • NullPointerException question (probably easy)

    Hi,
    I am currently using a JDK 1.2 release from 1999 or so.
    In a class, I have an array:
    class foo {
    double bar[];
    In a method, I populate the array:
    void foobar ()
    bar = new double[13];
    bar[0] = 0.0;
    ... // all 13 elements assigned values
    Nothing else touches the array.
    I instantiate the class as "g" and call g.foobar()
    As soon as it returns, g.bar is null. Referencing it gives NullPointerException.
    help?
    the bug database comes back with too many hits to look through for NullPointerException. I've encountered this bug before, usually able to work around it, not this time. The class implements a bunch of gradients for a nonlinear programming (NLP) problem. I can send anyone who is interested the source.
    I probably just need a patch. Can someone point me toward one?

    import java.io.*;
    import java.util.*;
    class find2 {
         double bar[];
         void foobar(){
              bar = new double[13];
              for(int i=0;i<13;i++){
                   bar[i] = i*1.1;
         public static void main (String args[]){
              find2 g = new find2();
              g.foobar();//comment this line and see
              for(int j=0;j<g.bar.length;j++){
                   System.out.println(g.bar[j]);
              for(int j=0;j<g.bar.length;j++){
                   System.out.println(g.bar[j]);
    }i just tried this little program, i just initialized as you have done in the foobar() method, U can see, if in the main program, if you comment out the line g.foobar(); then it throws a nullpointerException, otherwise it will not, so, i guess you are not calling the method before trying to access the bar values

  • Java Server Chat, Help Needed PLEASE!! - NullPointerException

    Hi i am having problem with my java chat. when i go to load it i get a NullPointerException i know what code is causeing the problem but im not quite sure what it does can u explain to me please. Ive been looking at this error trying to fix it for a few weeks now and its annoying. Thank you for any help. Here is the code that causes the NullPointerException
         public static final void j()
            try
                String as[] = {
                    "ar", "aq", "ao"
                Class class1;
                Object obj = (class1 = Class.forName((new StringBuilder()).append(com/diginet/oldchat/server/g.getPackage().getName()).append(".an").toString())).getMethod(as[0], new Class[0]);
                if(q)
                    obj = ((Method) (obj)).invoke(null, new Object[0]);
                    Class aclass[];
                    (aclass = new Class[1])[0] = java/lang/String;
                    Object aobj[];
                    (aobj = new Object[1])[0] = obj;
                    for(int i1 = 1; i1 < as.length; i1++)
                        Method method;
                        (method = class1.getMethod(as[i1], aclass)).invoke(null, aobj);
                    q = false;
                return;
            catch(Exception _ex)
                ChatServer.q_java_util_Vector_static_fld = new Vector();
            ChatServer.q_com_diginet_digichat_common_SerialInfo_static_fld = null;
        }If part of the program uses
    com.diginet.oldchat.server.g.j();wich will load the code above it always gives NullPointerException and then wont continue loading what is wrong? Please help me
    Oh and by the way this is my first post on this forum and i found it quite easy to use!
    Please please please help me thnk youuu

    Ok here is what u asked for. Oh and by the way im running this from CMD so wilse the Chat Server is loading i can do the Stack Trace just as its trying to do what it does after saying "Expires On:" (Wich after gives NullPointerException) once the errors come on the screen i cant get a stack trace anymore by useing {CTRL} + Break. but i still hope this can help u :)
    *2009-05-07 22:23:30*
    Full thread dump Java HotSpot(TM) Client VM (11.3-b02 mixed mode, sharing):
    *"Low Memory Detector" daemon prio=6 tid=0x02a7e000 nid=0xbcc runnable [0x0000000*
    *0..0x00000000]*
    java.lang.Thread.State: RUNNABLE
    *"CompilerThread0" daemon prio=10 tid=0x02a7b000 nid=0xd80 waiting on condition [*
    *0x00000000..0x02d2f9c0]*
    java.lang.Thread.State: RUNNABLE
    *"Attach Listener" daemon prio=10 tid=0x02a79800 nid=0x270 runnable [0x00000000..*
    *0x00000000]*
    java.lang.Thread.State: RUNNABLE
    *"Signal Dispatcher" daemon prio=10 tid=0x02a78400 nid=0x224 waiting on condition*
    *[0x00000000..0x00000000]*
    java.lang.Thread.State: RUNNABLE
    *"Finalizer" daemon prio=8 tid=0x02a73400 nid=0xf60 in Object.wait() [0x02c3f000.*
    *.0x02c3fa94]*
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x22a80288> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    - locked <0x22a80288> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    *"Reference Handler" daemon prio=10 tid=0x02a6ec00 nid=0xe2c in Object.wait() [0x*
    *02bef000..0x02befb14]*
    java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x22a80310> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:485)
    at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
    - locked <0x22a80310> (a java.lang.ref.Reference$Lock)
    *"main" prio=6 tid=0x002b6400 nid=0x6b0 runnable [0x0090f000..0x0090fe54]*
    java.lang.Thread.State: RUNNABLE
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
    at java.net.InetAddress.getAddressFromNameService(Unknown Source)
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getByName(Unknown Source)
    at java.net.InetSocketAddress.<init>(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    - locked <0x229fac68> (a sun.net.www.http.HttpClient)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
    Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
    ce)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
    urce)
    - locked <0x229f4118> (a sun.net.www.protocol.http.HttpURLConnection)
    at java.net.URL.openStream(Unknown Source)
    at com.diginet.oldchat.server.an.w(Unknown Source)
    at com.diginet.oldchat.server.an.ar(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.diginet.oldchat.server.g.j(Unknown Source)
    at com.diginet.digichat.server.ChatServer.<init>(Unknown Source)
    at com.diginet.digichat.server.ChatServer.main(Unknown Source)
    *"VM Thread" prio=10 tid=0x02a6d000 nid=0xe38 runnable*
    *"VM Periodic Task Thread" prio=10 tid=0x02a82c00 nid=0xa8 waiting on condition*
    JNI global references: 814
    Heap
    def new generation   total 960K, used 505K [0x22990000, 0x22a90000, 0x22e70000)
    eden space 896K,  49% used [0x22990000, 0x229fe4a0, 0x22a70000)
    from space 64K, 100% used [0x22a80000, 0x22a90000, 0x22a90000)
    to   space 64K,   0% used [0x22a70000, 0x22a70000, 0x22a80000)
    tenured generation   total 4096K, used 139K [0x22e70000, 0x23270000, 0x26990000
    the space 4096K,   3% used [0x22e70000, 0x22e92f88, 0x22e93000, 0x23270000)
    compacting perm gen  total 12288K, used 466K [0x26990000, 0x27590000, 0x2a99000
    *0)*
    the space 12288K,   3% used [0x26990000, 0x26a04b00, 0x26a04c00, 0x27590000)
    ro space 8192K,  63% used [0x2a990000, 0x2aea8810, 0x2aea8a00, 0x2b190000)
    rw space 12288K,  53% used [0x2b190000, 0x2b7fd300, 0x2b7fd400, 0x2bd90000)
    Thanks again an hope this helps.

  • Problem in loading a Properties File

    Following is my program which is actually reading a Properties file from a specific location and saving it latter. The program is able to save the Properties file but gives NullPointerException while reading it back.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Map;
    import java.util.Properties;
    import java.util.Set;
    import com.server.config.ConfigurationException;
    import com.server.config.SimpleNetworkConfigurationManager;
    public class Test {
         private static final Properties DEFAULT_CONFIGURATION;
         private static final String CONFIGURATION_FILE = "config/server_config.cfg";
         protected Properties m_config;
         static {
              DEFAULT_CONFIGURATION = new Properties();
              DEFAULT_CONFIGURATION.setProperty("ServerName", "Utility Server");
              DEFAULT_CONFIGURATION.setProperty("Host", "localhost");
              DEFAULT_CONFIGURATION.setProperty("Port", "1100");
         public Test(){
              try {
                   loadConfiguration();
              } catch (ConfigurationException e) {
                   //TODO: Log error message
                   System.out.println("Could not load Configuration; Reason: "+e.getMessage());
                   this.m_config = new Properties();
                   this.m_config.putAll(DEFAULT_CONFIGURATION);
         public Map getAllConfigurationParameters() {
              return m_config;
         public Set getConfigurationKeys() {
              return m_config.keySet();
         public Object getValue(String configurationParameter) {
              return m_config.getProperty(configurationParameter);
         public void loadConfiguration() throws ConfigurationException{
              try {
                   this.m_config.load(new FileInputStream(CONFIGURATION_FILE));
              } catch (FileNotFoundException e) {
                   throw new ConfigurationException(e);
              } catch (IOException e) {
                   throw new ConfigurationException(e);
         public void saveConfiguration() throws ConfigurationException {
              FileOutputStream fos = null;
              try {
                   File file = new File(CONFIGURATION_FILE);
                   file.createNewFile();
                   fos = new FileOutputStream(file);
                   this.m_config.store(fos,"Utility Server Configuration");
              } catch (FileNotFoundException e) {
                   throw new ConfigurationException(e);
              } catch (IOException e) {
                   throw new ConfigurationException(e);
              }finally{
                   if (fos!=null){
                        try {
                             fos.close();
                        } catch (IOException e) {
                             //ignore
                        fos = null;
         public void setConfigurationParameters(Properties configurationParameters) {
              this.m_config = new Properties(configurationParameters);
         public String setConfigurationParameter(String param, String value) {
              return (String)this.m_config.setProperty(param, value);
         public static void main(String[] args) {
              Test configManager = new Test();
              try {
                   configManager.saveConfiguration();
              } catch (ConfigurationException e) {
                   e.printStackTrace();
    }The Exception is as follows:
    Exception in thread "main" java.lang.NullPointerException
         at Test.loadConfiguration(Test.java:52)
         at Test.<init>(Test.java:29)
         at Test.main(Test.java:92)
    Please help me. I am unable to understand why is it happening. May be that I am doing some silly mistake.

    dhirendra_logicon wrote:
    The Exception is as follows:
    Exception in thread "main" java.lang.NullPointerException
         at Test.loadConfiguration(Test.java:52)
         at Test.<init>(Test.java:29)
         at Test.main(Test.java:92)
    Please help me. I am unable to understand why is it happening. May be that I am doing some silly mistake.Well, obviously, m_config is null. You cannot call a method on a null value.

Maybe you are looking for