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.

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>

  • USING STRUTS2 DOJO PLUGIN TAGS GIVES COMPILER ERROR (JDev 10.1.3.3)

    Hi.
    Using Struts 2.1.2 dojo plugin tags gives compiler error:
    Error(9): Couldn't instantiate tag sx:head (class: null). Be sure that the tag class is available...
    (translated from spanish)
    So I can't run the application.
    When configured, tags can be chosen from the component palette and the normal struts tags (not the dojo ones) do compile and run ok.
    From service request:
    Examining Jdeveloper's console message, its apparent that the tag library is not compatible with JDeveloper because of
    the following warning:
    oracle.jsp.logger.JspMessages.warningInvalidTldVersion:J2EE JSP-0033
    Someone has any workaroun or solution?
    ### Steps to Reproduce ###
    1.- Create new application and project
    2.- Copy Struts 2.1.2 jar libs including dojo somewhere (for example in WEB-INF/lib)
    3.- Associate the jars to the project (Libraries option in Project Properties)
    4.- Create a JSP
    5.- Use a dojo tag in the JSP
    <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>index</title>
    <sx:head/>
    </head>
    <body></body>
    </html>
    6.- Compile

    Hi did you solved this problem? I have same

  • 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

  • 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

  • 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>

  • My service tag give me download links that other from my system inpiron 3000

    Hello ive Dell 3000 15.6 and cant install 2 drivers from my unique service tag page.
    the bad drivers is for SMBUS & USB , without those there as a lot of freezes and blue screens (usb issue)
    tried to get answers by phone and cant.
    hope for some help

    any idea what to do ? maybe service tag needed

  • 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

  • UseBean tag gives error please help

    Hi,
    I keep getting an error in my browser regarding the java.util.Collection class I am including in my jsp page.
    <%@ page import="java.util.*, src.com.database.*, src.com.data.*, src.com.business.*" %>
    <jsp:useBean id="persons" scope="request" class="java.util.Collection" />I see the following error:
    The value for the useBean class attribute java.util.Collection is invalid
    The collection is not empty because back on the server I loop over the collectiion and see a lot of data.
    When I import a String class like this it works fine:
    <jsp:useBean id="errorMsg" scope="request" class="java.lang.String" />I use tomcat 6.0.10 and java 1.6.0
    Thanks for any help,
    Jarno

    You can use only bean, not a class.A bean is actually a class ;)
    The point is that the declared class should have at least an no-arg constructor and thus is instantiable (e.g. SomeObject someObject = new SomeObject(); must be possible). An interface doesn't confirm this requirement as you simply cannot instantiate interfaces.

  • 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.

  • Remove Empty XML Tags using module parameters

    Hi All,
    In my lanscape I have two PI Systems.
    My scenario is an IDOC reaches 1st PI system gets converted into an EDIFACT and then goes to the 2nd PI and from there it gets routed to the respective AS2 Party.
    I am using SOAP to pass message between the PI systems and B2B Toolkit's AS2 Adapter for the communication with AS2 party.
    The issue is when the message is getting converted from IDOC to EDIFACT there are a few feilds with occurence 1..1 and due to these fields i get an empty XML tag at the output. These empty XML tags give me an error in the B2B Toolkit's AS2 Adapter Receiver Channel
    I cannot change the occurence in the structure of the EDIFACT nor can I use an XSLT mapping to remove empty tags before the message reaches the Communication Channel.
    I want to know if there are any module parameters which i can use either in SOAP Channel or the AS2 Channel to remove the XML Tags.

    Hi Muni,
    "1..1 means, you must send some values for that fields. try to find out why these are not getting any values."
    This empty tag is expected. Before using B2B Toolkit's AS2 Adapter we used to use Seeburger's AS2 Adpater and the message used to get executed successfully with these empty tags.The issue is coming only when we are using B2B Toolkit's AS2 Adapter.
    "if you want to stop sending(the fields which are not needed in target) you can you can disable the fields in the message mapping."
    I cannot disable the feild in the mapping as some other message may use this field.
    Thanks,
    Farhaan

Maybe you are looking for

  • ICal print preview is not formatted properly for printing

    Calender printed fine last month. This month I get this. Naturally, it looks the same when printed. Running version 10.9.2 on iMac. Any ideas what the problem is?

  • Crackly phone line and broadband disconnecting

    For a month or two i have been having problems with our phone line and broadband connection. The phone line is extremely noisy (interferance) and when you make a call or recieve a call the broadband disconnects. I have tried different filters, router

  • Mid 2007 macbook no chime dark screen.

    my mid 2007 macbook will not chime on startup and I am getting no picture. already tried resetting pram, SMC or whatever and removed and replaced the battery. Tried booting from a disk and got nothing, tried booting from my backup and got nothing. It

  • Project wise cost center

    Hello, Can we consider each project as a cost center in an organization? Thanks

  • Creative Cloud (or CC) is always logging me out whenever i sign in! HELP!!!

    im trying to get the trial of Adobe Adition CC and i just downloaded Creative Cloud to download it. I logged in and it does the loading circle thing, it takes a while and then after that it says "you have been signed out please sign in to continue" p