Urgent,pls help! java.lang.NullPointerException

Dear all,
  I'm doing a web dynpro app for creating the physical inventory doc for WM ( warehse mgmt ).. I haf a input field,storage type which is the be key in by the user.
When i testing my application,if i type in any 3 digits number tat doesn't belongs to a storage type in R/3,the application seems working fine,it will return me a error msg saying tat the stoage type that i typed in doenst exists in the R/3 system. but if i enter an excat storage type,( for example,002 ) into the intput field,i will get an error msg saying java.lang.NullPointerException . Any gurus haf any idea what is happening? pls help,many thanks.

Hi Joan,
               Can u send the stack trace & code line , where u r getting NPE??
regards
Sumit

Similar Messages

  • URGENT- PLEASE HELP: java.lang.threads and BC4J

    Hi,
    according to my issue "no def found for view" in the same titled thread I'm wondering how you would implement asynchronous calls of methods that use BC4J to update a couple of data.
    To be more precise:
    A requirement of our software is to start an update database job, which can take a couple of minutes/hours, from the web browser. Before it will be executed the logged-in user receives a notification that this batch job has been started.
    I dont't want to use JMS overhead and MD Beans for this simple requirement, therefore I implemented a class that extends java.lang.Thread and put all the update codings within the run method. After having called the start-method of the thread I get a JBO-25022(No XML file found) error when I try to set a new value for an attribute of the row. The row consists of attributes which belong to four entity objects that mus be updated.
    When calling the run method directly, everything works fine.
    My questions:
    * do you know any workaround how to make the xml files
    reachable?
    * how would you implement anschronous calls of long time-
    consuming jobs?
    * is this a bug of BC4J?
    Any help, tip, hint is really appreciated.
    Stefan

    Arno,
    many thanks for your reply:
    Here is an excerpt of the source code of my thread "Aenderungsdienst":
    public class Aenderungsdienst extends java.lang.Thread
    private SviAdministrationModuleImpl mSviModul;
    // Application module that contains view object
    // IKViewImpl
    public Aenderungsdienst(SviAdministrationModuleImpl aSviModul)
    mSviModul = aSviModul;
    public void run()
    ausfuehrenAenderungsdienst(mAenderungsdienstNr); <--error within this methode
    private int ausfuehrenAenderungsdienst(String aAenderungsdienstNr)
    int rAnzahlSaetze = 0;
    try
    IkViewImpl aenderungen = mSviModul.getIkView();
    aenderungen.suchenAenderungssaetze(aAenderungsdienstNr); <-- method within View Object Impl that executes a query with customized where-clauses
    if ((rAnzahlSaetze = aenderungen.getRowCount()) > 0)
    IkViewRowImpl ik = null;
    while (aenderungen.hasNext())
    ik = (IkViewRowImpl) aenderungen.next();
    ik.setBestandsstatus("B"); <-- error occurs here when setting the status of a current row in my rowset to "B"
    mSviModul.getTransaction().postChanges();
    mSviModul.getTransaction().commit();
    catch (Exception e)
    e.printStackTrace();
    mSviModul.getTransaction().rollback();
    //todo: Verarbeitungsprotokoll erstellen
    return rAnzahlSaetze;
    This thread will be called by the application module "sviAdministrationModuleImpl":
    public void ausfuehrenAenderungsdienst(String
    aAenderungsdienstNr)
    Aenderungsdienst aenderungsdienst = new
    Aenderungsdienst(this);
    aenderungsdienst.setAenderungsdienstNr
    (aAenderungsdienstNr);
    aenderungsdienst.start();
    Using the start() method of the thread causes this exception:
    [653] No xml file: /hvbg/svi/model/businessobjects/businessobjects.xml, metaobj = hvbg.svi.model.businessobjects.businessobjects
    [654] Cannot Load parent Package : hvbg.svi.model.businessobjects.businessobjects
    [655] Business Object Browsing may be unavailable
    [656] No xml file: /hvbg/svi/model/businessobjects/IK_Inlandsbankverb.xml, metaobj = hvbg.svi.model.businessobjects.IK_Inlandsbankverb
    09.03.2004 10:27:41 hvbg.common.businessobjects.HvbgEntityImpl setAttributeInternal
    SCHWERWIEGEND: Fehler beim Setzen des Attributs 1 im Entity Objekt: JBO-25002: Definition hvbg.svi.model.businessobjects.IK_Inlandsbankverb vom Typ Entitätszuordnung nicht gefunden.
    09.03.2004 10:27:42 hvbg.svi.model.dienste.Aenderungsdienst ausfuehrenAenderungsdienst
    SCHWERWIEGEND: Beim Ausführen des Aenderungsdienstes 618 trat während der DB-Aktualisierung ein schwerer Fehler auf:
    JBO-25002: Definition hvbg.svi.model.businessobjects.IK_Inlandsbankverb vom Typ Entitätszuordnung nicht gefunden.
    oracle.jbo.NoDefException: JBO-25002: Definition hvbg.svi.model.businessobjects.IK_Inlandsbankverb vom Typ Entitätszuordnung nicht gefunden.
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:328)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:268)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:649)
         at oracle.jbo.server.EntityAssociation.findEntityAssociation(EntityAssociation.java:98)
         at oracle.jbo.server.AssociationDefImpl.resolveEntityAssociation(AssociationDefImpl.java:725)
         at oracle.jbo.server.AssociationDefImpl.getEntityAssociation(AssociationDefImpl.java:135)
         at oracle.jbo.server.AssociationDefImpl.hasContainer(AssociationDefImpl.java:546)
         at oracle.jbo.server.AssociationDefImpl.getContainer(AssociationDefImpl.java:468)
         at oracle.jbo.server.EntityImpl.getContainer(EntityImpl.java:1573)
         at oracle.jbo.server.EntityImpl.setValidated(EntityImpl.java:1649)
         at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:2081)
         at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:1985)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1700)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:946)
         at hvbg.common.businessobjects.HvbgEntityImpl.setAttributeInternal(HvbgEntityImpl.java:56)
         at hvbg.svi.model.businessobjects.IKImpl.setBestandsstatus(IKImpl.java:174)
         at hvbg.svi.model.businessobjects.IKImpl.setAttrInvokeAccessor(IKImpl.java:770)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:859)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1108)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1019)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1047)
         at hvbg.svi.model.dataviews.IkViewRowImpl.setBestandsstatus(IkViewRowImpl.java:264)
         at hvbg.svi.model.dienste.Aenderungsdienst.ausfuehrenAenderungsdienst(Aenderungsdienst.java:337)
         at hvbg.svi.model.dienste.Aenderungsdienst.run(Aenderungsdienst.java:290)
    Using run(), everything works perfectly.
    The view object IKView consists of four entity objects which are linked by associations. There exists an association between the entity objects ik and inlandbankverb. The xml-file for the association object is named "ik_inlandsbankverb.xml". It seems so that this definition could not be found when calling my thread in asynchronous (via start()-method call) mode.
    Is this a bug of JDeveloper?
    Thanks in advance,
    Stefan

  • Urgent :-Need Help in DOtnet Dll integration with CFM 8. for error "java.lang.NullPointerException"

    Hi Everyone,
    I am trying to intergrate Dotnet DLL with coldfusion. The basic perpose of this DLL is putting value in cache.
    My code is working fine on my local machine but it giving me problem on live server.
    It is throwing "java.lang.NullPointerException" error.
    Description of task:-
    DLL:-
    made in : Dotnet 3.0
    Functions:-
    setCache:- setting a string into cache.
    getCache:- getting value from cache.
    ClearCache:- Clearing all value from Cache.
    Local Machine:-
    OS: window server 2003
    Coldfusion version :MX8
    coldfusion Product level:-Developer
    Result:-Task is working fine.No error what so ever.
    Live server:-
    OS: window server 2003
    Coldfusion version :MX8
    coldfusion Product level:-Standred
    Result:-Task is throwing error "java.lang.NullPointerException"

    Thanks for your response, but surely if the .NET Services was not running how can CF instantiate and dump the object with all the correct methods?
    Anyway for some strange reason there is no Coldfusion .NET service in my services control panel even though I am running CF8. I have since downloaded the .NET service installer, run it and done a restart but I can still see no such service and the error continues?
    I am running CF8 Dev on IIS 6 – Window XP pro and here is debug
    java.lang.NullPointerException
                   at com.jnbridge.jnbcore.clientTransports.d$b.close(Unknown Source)
                   at java.net.Socket.<init>(Socket.java:368)
                   at java.net.Socket.<init>(Socket.java:209)
                   at com.jnbridge.jnbcore.clientTransports.d$b.<init>(Unknown Source)
                   at com.jnbridge.jnbcore.clientTransports.d.if(Unknown Source)
                   at com.jnbridge.jnbcore.clientTransports.c.a(Unknown Source)
                   at com.jnbridge.jnbcore.clientTransports.f.a(Unknown Source)
                   at com.jnbridge.jnbcore.DotNetSideProxy.int(Unknown Source)
                   at com.jnbridge.jnbcore.DotNetSideProxy.getObjectStaticProperty(Unknown Source)
                   at System.Environment.Get_CurrentDirectory()
                   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 coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:87)
                   at coldfusion.runtime.dotnet.DotNetProxy.invoke(DotNetProxy.java:38)
                   at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272)
                   at cftestDotNet2ecfm215937280.runPage(C:\Inetpub\wwwroot\his_clothing\testDotNet.cfm:20)
                   at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
                   at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
                   at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
                   at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273)
                   at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
                   at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
                   at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
                   at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
                   at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
                   at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
                   at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
                   at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
                   at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
                   at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
                   at coldfusion.CfmServlet.service(CfmServlet.java:175)
                   at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
                   at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
                   at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
                   at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
                   at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
                   at jrun.servlet.FilterChain.service(FilterChain.java:101)
                   at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
                   at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
                   at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
                   at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
                   at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
                   at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
                   at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
                   at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
                   at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • Urgent - java.lang.NullPointerException when deploying a WAR file

    Hello
    I am trying to deploy a WAR file on 9iAS rel 2 using the Enterprise Manager. On the web page, I provide the .war file along with application name and url mapping. When I click on deploy, i get an error back which just says java.lang.NullPointerException. There is no stack trace.
    Until now, I have been working on my own PC using tomcat, and the war file works fine in tomcat.
    I am presuming that there will be a log file where more information will be available, but I do not know where the log file is kept. The Oracle 9iAS is installed on Solaris.
    Any help with this would be greatly appreciated.
    Thanks.
    Jay

    Problem Solved
    The problem was the web.xml file which contained some elements that are only valid for servlet 2.4 (used on tomcat) but not on 2.2(used in oracle).
    Jay.

  • Java.lang.NullPointerException? only on firefox? HELP

    ok, so while running any java applets, i get this error
    java.lang.NullPointerException
    at com.sun.deploy.net.proxy.DynamicProxyManager.reset(Unknown Source)
    at com.sun.deploy.net.proxy.DeployProxySelector.reset(Unknown Source)
    at sun.plugin.AppletViewer.initEnvironment(Unknown Source)
    i am not a java coder, i am just trying to use java applets created by people.
    the strange thing is, this only happens on mozzila firefox, and only on my one desktop, someone else who has a desktop on my computer can run java perfectly! PLEASE HELP! how can i fix this so i can use java applets?

    I had exactly this same problem appear from out of the blue a week ago.
    The solution for me was to reset the general.useragent.override config parameter.
    To be precise, I opened the about:config page, searched for and found the general.useragent.override parameter, right-clicked it and selected the "reset" option. The value was thereby replaced with an empty string, like "", and after I closed and re-opened firefox even the base entry for general.useragent.override was gone.
    Considerable time was spent on this problem, and none of the following made any difference: un/reinstalling the JRE, un/reinstalling firefox, deleted various java directories from c:\ such as in program files, temp, windows, application data, etc.
    Curiously, using the Java control panel config tool to change Network Settings did have some effect. Selecting Direct Connection for proxy settings would eliminate the nullpointerexception, but also disable the java plugin. the error could be recreated simply by opening the Java Console from within firefox, and typing the "P" command, which reloads the proxy configuration.
    For those who may care to research this further, my exact useragent override string was, between the quotes: "Mozilla/4.0 (Macromedia Flash Player 8/8;compatible; MSIE 6.0; Windows NT 5.1; (R1 1.5); .NET CLR 1.1.4322) " Now, that parameter was set months ago, and java applets had been working fine until just recently, so clearly there is some odd combination of problems at work. I can't help but suspect some automatic update, perhaps to firefox 2.0.0.7, was responsible?

  • Java.lang.NullPointerException when writing to a textfield..help please?

    Hi guys,
    I'm getting a java.lang.NullPointerException (with no other details of error) when i try to write to a textfield on my GUI. the line: TF1.setText("F"); is where the problem is occurring. that line is within a loop ->                
                   if(freq >87 && freq < 100)
                                       System.out.println("Note =F" +freq);
                                       TF1.setText("F");
    the textfield has been constructed and initialised and given an initial value. what i need to happen is the string in the textfield to be constantly updated (overwritten) with the new string.
    the initial value from      TextField TF1= new TextField("", 10);
    TF1.setText("blank");
    works fine, but one the loop above is entered, the current frequency is printed to the command line and then "java.lang.NullPointerException" is thrown.
    I'm struggling with this, and have a deadline to meet so I would much appreciate some help.

    The Gui class is this:
    import java.awt.BorderLayout;
    import java.awt.FlowLayout;
    import java.awt.GridLayout;
    import java.awt.Panel;
    import java.awt.TextField;
    import javax.swing.JFrame;
    import javax.swing.*;
    public class Gui extends JFrame{
    public static void main(String args[])
    Project project = new Project();
    project.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
         project.setSize( 250, 200 ); // set frame size
    project.setVisible( true ); // display frame
    // new Project(){//constructor
         Panel p, p1;
    p = new Panel();
              p.setLayout (new FlowLayout(FlowLayout.LEFT,5,5));
              project.add(p, BorderLayout.NORTH);
         p1 = new Panel();
         p1.setLayout (new FlowLayout(FlowLayout.LEFT,5,5));
    p1.setLayout (new GridLayout(4,1));
    project.setTitle("Guitar Tuner Prototype");
         TextField TF1= new TextField("", 10);
    TF1.setText("blank");
         p1.add(TF1);
         TF1.setVisible(true);
         p1.setVisible(true);
         p.add(p1);
    //Capture input data from the microphone
    project.captureAudio();
    project.captureThread();
    }//end constructor
    //end main
    The project.java class has the "private TextField TF1; at the top. the project.java class also contains the loop thats writing to the texfield as specified in th original post..

  • HELP!!!!  java.lang.NullPointerException

    HELP!!!!
    java.lang.NullPointerException
    at csc.util.SQLstatement.prepStatement(SQLstatement.java:24)
    at csc.util.dbutil.DBprcslogEnd(dbutil.java:713)
    at tr_fets_ck.processMain(tr_fets_ck.java:266)
    at tr_fets_ck.main(tr_fets_ck.java:175)
    java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at tr_fets_ck.processMain(tr_fets_ck.java:183)
    at tr_fets_ck.main(tr_fets_ck.java:175)
    I can run my code using jdeveloper 10g using a default file and everything works fine but when I run my code in the production environment I get the error listed above.
    Here's portions of the code.
    public void processMain(csc.util.SQLstatement sq, String filename) {
    try {
    // Connect to the database
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conn = DriverManager.getConnection("jdbc:odbc:TEST","test","test4xml");
    // Open specified file
    if (xu.Check_File_Processed(conn, filename)){
    xu.WriteXMLProblem("FAILURE", err, "N/A", "FILE " filename " HAS ALREADY BEEN RUN SUCCESSFULLY","https://msis.k12.ms.us/SAP/MSIS_err.html#87");
    UpdateFETSDistrict(conn, "N", filename, district, year, sq);
    xu.Process_Results_Report(conn,err,filename);
    conn.commit();
    conn.close();
    System.exit(0);
    The code that I think is generating the error is:
    if (CheckYearInd(conn,district, year, sq)) {
    xu.WriteXMLProblem("FAILURE", err, "N/A", "FILE " filename " PREVIOUS YEAR DATA HAS ALREADY BEEN COMPLETED","https://msis.k12.ms.us/SAP/MSIS_err.html#87");
    UpdateFETSDistrict(conn, "N", filename, district, year, sq);
    xu.Process_Results_Report(conn,err,filename);
    conn.commit();
    conn.close();
    System.exit(0);
    public static boolean CheckYearInd (Connection conn,
    String district,
    String year,
    csc.util.SQLstatement sqs)
    // check the FETS_DISTRICT_APPROVAL table for a record.
    // Return FALSE if previous year data exists = Y.
    // Return TRUE if no record exists
    throws SQLException
    PreparedStatement pstmt1 = null;
    String SQLString = "select count(rowid) from FETS_DISTRICT_APPROVAL" +
    " where DISTRICT_NUMBER = ? and "+
    " YEAR = ? and " +
    " BOND_DATA_IND = 'Y' and "+
    " STATE_APPROVAL_STATUS = 'COMPLETED' and "+
    " REQ_RESUBMISSION = 'N' ";
    // System.out.println(SQLString);
    pstmt1 = sqs.prepStatement(conn,SQLString);
    pstmt1.setString(1,district);
    pstmt1.setString(2,year);
    ResultSet rset = pstmt1.executeQuery();
    rset.next ();
    if (rset.getInt(1) > 0) {
    rset.close();
    return false;
    } else {
    rset.close();
    return true;
    } // end CheckYearProcessed 

    package csc.util;
    import java.io.*;
    import java.math.*;
    import java.sql.*;
    import java.util.Vector;
    public class SQLstatement {
    Vector vSQL_string = new Vector();
    Vector vSQL_stmt = new Vector();
    public PreparedStatement prepStatement(Connection conDB, String strSQL)
    throws SQLException {
    PreparedStatement pstmt = null;
    try{
    int intSQLIndex = vSQL_string.indexOf(strSQL);
    if (intSQLIndex != -1) {
    line 24==> pstmt = (PreparedStatement)vSQL_stmt.elementAt(intSQLIndex);
    } else {
    pstmt = conDB.prepareStatement(strSQL);
         vSQL_string.addElement(strSQL);
         vSQL_stmt.addElement(pstmt);
    return pstmt;
    } catch (SQLException e) {
    System.err.println (e.getMessage()); // detail message
    System.err.println ("* SQL ERROR * strSQL="+strSQL);
    throw e;
    } // end prepStatement()
    } // end class SQLstatement

  • Urgent Help:java.lang.ExceptionInInitializerError in JasperReports

    the following is the java code:
    Map params = new HashMap();
    params.put("order_type", "This is Test Print");
    JRXmlDataSource ds = new JRXmlDataSource(outXML, "/Order");
    InputStream is =Class.forName(                    "com.w3c.dom.Document").getResourceAsStream
    "/TestPrint.jasper");
    net.sf.jasperreports.engine.JasperPrint jp =
                   JasperFillManager.fillReport(is, params, ds);
    JasperExportManager.exportReportToPdf(jp);
    i reckon iam getting this error in the above highlighted code...
    i have all the necessary jars in weblogic's classpath!!
    just a thought...is this because of any mismatch in the jar version?
    on refreshing the page the cause becomes java.lang.NoClassDefFoundError
    ANY POINTERS TO WHY THIS IS HAPPENING???
    java.lang.ExceptionInInitializerError
    at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getStaticText(JRFillObjectFactory.java:494)
    at net.sf.jasperreports.engine.base.JRBaseStaticText.getCopy(JRBaseStaticText.java:93)
    at net.sf.jasperreports.engine.fill.JRFillElementGroup.<init>(JRFillElementGroup.java:88)
    at net.sf.jasperreports.engine.fill.JRFillElementContainer.<init>(JRFillElementContainer.java:88)
    at net.sf.jasperreports.engine.fill.JRFillBand.<init>(JRFillBand.java:77)
    at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:374)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:386)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:92)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:74)
    at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83)
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:582)
    at com.yantra.interop.services.flowcomponents.TestPrint1.testPrint(TestPrint1.java:48)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.yantra.interop.services.api.ApiHelper.invoke(ApiHelper.java:155)
    at com.yantra.interop.services.flowcomponents.ApiFlowComponent.execute(ApiFlowComponent.java:161)
    at com.yantra.interop.services.flowcomponents.ApiFlowComponent.send(ApiFlowComponent.java:200)
    at com.yantra.integration.adapter.FlowExecutor.execute(FlowExecutor.java:359)
    at com.yantra.integration.adapter.SynchronousIntegrationFlow.executeFlow(SynchronousIntegrationFlow.java:215)
    at com.yantra.interop.services.api.ApiRequestDispatcher.executeFlow(ApiRequestDispatcher.java:90)
    at com.yantra.interop.client.InteropHttpServlet.processRequest(InteropHttpServlet.java:156)
    at com.yantra.interop.client.InteropHttpServlet.doPost(InteropHttpServlet.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
    at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.getB64StrProp(PolicyRuntime.java:188)
    at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.<init>(PolicyRuntime.java:91)
    at com.trend.iwss.jscan.appscan.runtime.MiscPolicyRuntime.<init>(MiscPolicyRuntime.java:132)
    at com.trend.iwss.jscan.appscan.runtime.MiscPolicyRuntime$Factory.make(MiscPolicyRuntime.java:254)
    at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.accessInstance(PolicyRuntime.java:225)
    at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.preFilter(PolicyRuntime.java:127)
    at com.trend.iwss.jscan.appscan.runtime.MiscPolicyRuntime.preFilter(MiscPolicyRuntime.java:142)
    at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:277)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
    at net.sf.jasperreports.engine.fill.JRFillTextElement.<clinit>(JRFillTextElement.java:61)
    ... 38 more
    java.lang.ExceptionInInitializerError
    at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getStaticText(JRFillObjectFactory.java:494)
    at net.sf.jasperreports.engine.base.JRBaseStaticText.getCopy(JRBaseStaticText.java:93)
    at net.sf.jasperreports.engine.fill.JRFillElementGroup.<init>(JRFillElementGroup.java:88)
    at net.sf.jasperreports.engine.fill.JRFillElementContainer.<init>(JRFillElementContainer.java:88)
    at net.sf.jasperreports.engine.fill.JRFillBand.<init>(JRFillBand.java:77)
    at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:374)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:386)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:92)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:74)
    at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83)
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:582)
    at com.yantra.interop.services.flowcomponents.TestPrint1.testPrint(TestPrint1.java:48)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.yantra.interop.services.api.ApiHelper.invoke(ApiHelper.java:155)
    at com.yantra.interop.services.flowcomponents.ApiFlowComponent.execute(ApiFlowComponent.java:161)
    at com.yantra.interop.services.flowcomponents.ApiFlowComponent.send(ApiFlowComponent.java:200)
    at com.yantra.integration.adapter.FlowExecutor.execute(FlowExecutor.java:359)
    at com.yantra.integration.adapter.SynchronousIntegrationFlow.executeFlow(SynchronousIntegrationFlow.java:215)
    at com.yantra.interop.services.api.ApiRequestDispatcher.executeFlow(ApiRequestDispatcher.java:90)
    at com.yantra.interop.client.InteropHttpServlet.processRequest(InteropHttpServlet.java:156)
    at com.yantra.interop.client.InteropHttpServlet.doPost(InteropHttpServlet.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
    at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.getB64StrProp(PolicyRuntime.java:188)
    at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.<init>(PolicyRuntime.java:91)
    at com.trend.iwss.jscan.appscan.runtime.MiscPolicyRuntime.<init>(MiscPolicyRuntime.java:132)
    at com.trend.iwss.jscan.appscan.runtime.MiscPolicyRuntime$Factory.make(MiscPolicyRuntime.java:254)
    at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.accessInstance(PolicyRuntime.java:225)
    at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.preFilter(PolicyRuntime.java:127)
    at com.trend.iwss.jscan.appscan.runtime.MiscPolicyRuntime.preFilter(MiscPolicyRuntime.java:142)
    at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:277)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
    at net.sf.jasperreports.engine.fill.JRFillTextElement.<clinit>(JRFillTextElement.java:61)
    ... 38 more

    Patrick-
    My best guess is that you did not include some required library in the
    runtime "required libraries" for your project. My first guess is that
    you missed the JDO library jar, since missing that would certainly
    result in an ExceptionInInitializerError when loading your persistent
    classes.
    You might also run the program in the debugger and see if you get a more
    telling stack trace.
    In article <bkuuef$9di$[email protected]>, Patrick Pracht wrote:
    Hello all,
    I am currently developing a webapp using Kodo-2.5.3, MySQL-DB, JBuilder9,
    Tomcat4.1.
    Everything worked as expected until I have been running the Metadata tool
    and Schematool from within JBuilder for a new class.
    After doing this , when I attempt to run the webapp from within JBuilder,
    the build process stops with the following message displayed in the
    build-panel of JBuilder: java.lang.ExceptionInInitializerError
    Since I have no further indication of what causes the problem (Filename,
    location, Stacktrace, etc.) I really don't know how to proceed. The only
    thing that I can see by looking at the kodo msg panel is, that Kodo did not
    parse all the persistent classes.
    Can anybody tell me how this problem could be tracked down?
    Is there any log-file I could have a look at?
    Thanks in advance for your help.
    regards
    Patrick
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Help with "Exception in thread "Thread-4" java.lang.NullPointerException"

    I am new to Java and I am trying a simple bouncing ball example from Stanford. Here is their simple example that works.
    import acm.program.*;
    import acm.graphics.*;
    import java.awt.*;
    public class BouncingBallWorking extends GraphicsProgram {
    /** sets diameter */
    private static final int DIAM_BALL = 30;
    /** amount y velocity is increased each cycle */
    private static final double GRAVITY = 3;
    /** Animation delay or pause time between ball moves */
    private static final int DELAY = 50;
    /** Initial X and Y location ball*/
    private static final double X_START = DIAM_BALL / 2;
    private static final double Y_START = 100;
    private static final double X_VEL = 3;
    private static final double BOUNCE_REDUCE = 0.9;
    private double xVel = X_VEL;
    private double yVel = 0.0;
    private GOval BallA;
    public void run() {
    setup(X_START,Y_START);
    //         Simulation ends when ball goes off right hand
    //         end of screen
    while (BallA.getX() < getWidth()) {
    moveBall(BallA);
    checkForCollision(BallA);
    pause(DELAY);
    private void setup(double X_coor, double Y_coor) {
    BallA = new GOval(X_coor, Y_coor, DIAM_BALL, DIAM_BALL);
    add(BallA);
    private void moveBall(GOval BallObject) {
    yVel += GRAVITY;
    BallObject.move(xVel,yVel);
    private void checkForCollision(GOval BallObject) {
    if(BallObject.getY() > getHeight() - DIAM_BALL){
    yVel = - yVel * BOUNCE_REDUCE;
    double diff = BallObject.getY() - (getHeight() - DIAM_BALL);
    BallObject.move(0, -2 * diff);
    } Now I am trying to modify "setup" so it I can create several balls. I made a simple modification to "setup" and now I am getting an error.
    "Exception in thread "Thread-4" java.lang.NullPointerException
    at BouncingBallNotWorking.run(BouncingBallNotWorking.java:36)
    at acm.program.Program.runHook(Program.java:1592)
    at acm.program.Program.startRun(Program.java:1581)
    at acm.program.AppletStarter.run(Program.java:1939)
    at java.lang.Thread.run(Unknown Source)"
    Can you describe why I am getting an error? Thanks.
    Here is what I changed.
    Before:
         private void setup(double X_coor, double Y_coor) {
              BallA = new GOval(X_coor, Y_coor, DIAM_BALL, DIAM_BALL);
              add(BallA);
         }After:
         private void setup(double X_coor, double Y_coor, GOval BallObject) {
              BallObject = new GOval(X_coor, Y_coor, DIAM_BALL, DIAM_BALL);
              add(BallObject);
         }Here is the complete code.
    * File:BouncingBall.java
    * This program graphically simulates a bouncing ball
    import acm.program.*;
    import acm.graphics.*;
    import java.awt.*;
    public class BouncingBallNotWorking extends GraphicsProgram {
    /** sets diameter */
    private static final int DIAM_BALL = 30;
    /** amount y velocity is increased each cycle */
    private static final double GRAVITY = 3;
    /** Animation delay or pause time between ball moves */
    private static final int DELAY = 50;
    /** Initial X and Y location ball*/
    private static final double X_START = DIAM_BALL / 2;
    private static final double Y_START = 100;
    private static final double X_VEL = 3;
    private static final double BOUNCE_REDUCE = 0.9;
    private double xVel = X_VEL;
    private double yVel = 0.0;
    private GOval BallA;
    public void run() {
    setup(X_START,Y_START, BallA);
    //         Simulation ends when ball goes off right hand
    //         end of screen
    while (BallA.getX() < getWidth()) {
    moveBall(BallA);
    checkForCollision(BallA);
    pause(DELAY);
    private void setup(double X_coor, double Y_coor, GOval BallObject) {
    BallObject = new GOval(X_coor, Y_coor, DIAM_BALL, DIAM_BALL);
    add(BallObject);
    private void moveBall(GOval BallObject) {
    yVel += GRAVITY;
    BallObject.move(xVel,yVel);
    private void checkForCollision(GOval BallObject) {
    if(BallObject.getY() > getHeight() - DIAM_BALL){
    yVel = - yVel * BOUNCE_REDUCE;
    double diff = BallObject.getY() - (getHeight() - DIAM_BALL);
    BallObject.move(0, -2 * diff);
    } Edited by: TiredRyan on Mar 19, 2010 1:47 AM

    TiredRyan wrote:
    That is great! Thanks. I've got two question though.
    1.) Now I want to have 100 bouncing balls. Is the best way to achieve this is through an array of GOvals? I haven't gotten to the lecture on arrays on Stanford's ITunesU site yet so I am not sure what is possible with what I know now.An array would work, or a List. But it doesn't matter much in this case.
    2.) Are references being passed by value only applicable to Java or is that common to object-oriented programming? Also is there a way to force Java to pass in "BallA" instead of the value "null"?I can't say about all OO languages as a whole, but at least C++ can pass by reference.
    And no, there's no way to pass a reference to the BallA variable, so the method would initialize it and it wouldn't be null anymore.
    When you call the method with your BallA variable, the value of the variable is examined and it's passed to the method. So you can't pass the name of a variable where you'd want to store some object you created in the method.
    But you don't need to either, so there's no harm done.

  • Help with Exception in thread "main" java.lang.NullPointerException

    I got this exception while running the code in Netbeans IDE 6.1. The code is compiling fine...Please tell me what the problem is
    Exception in thread "main" java.lang.NullPointerException
    at Softwareguide.chooseanswer(Softwareguide.java:32)
    at Driver.main(Driver.java:7)
    public class Driver
        public static void main(String[] args)
            Softwareguide swguide = new Softwareguide();
            swguide.chooseanswer();
    public class Softwareguide
        State test1;
        State test2;
        State test3;
        State test4;
        State test5;
        State subtest1;
        State subtest2;
        State subtest3;
        State subtest4;
        State subtest5;
        State state = test1;
        public Softwareguide()
            test1 = new Test1(this);
            test2 = new Test2(this);
            test3 = new Test3(this);
            test4 = new Test4(this);
            test5 = new Test5(this);
            subtest1 = new SubTest1(this);
            subtest2 = new SubTest2(this);
            subtest3 = new SubTest3(this);
            subtest4 = new SubTest4(this);
            subtest5 = new SubTest5(this);
        public void chooseanswer()
            state.chooseanswer();
       /* public void chooseyes()
            state.chooseyes();
        public void chooseno()
            state.chooseno();
        public State getState()
            return state;
        void setState(State state)
         this.state = state;
        public State getTest1State()
            return test1;
        public State getTest2State()
            return test2;
        public State getTest3State()
            return test3;
        public State getTest4State()
            return test4;
        public State getTest5State()
            return test5;
        public State getsubTest1State()
            return subtest1;
        public State getsubTest2State()
            return subtest2;
        public State getsubTest3State()
            return subtest3;
        public State getsubTest4State()
            return subtest4;
        public State getsubTest5State()
            return subtest5;
        public String toString()
            StringBuffer result = new StringBuffer();
            result.append("\n Starting Diagnostic Test...");
            return result.toString();
    }

    spiderjava wrote:
    the variable state is assigned to test1. This variable(test1) is not initialized anywhere.It is initialized in the c'tor. Which is invoked after the "global" object and attribute initialization. So it is there, but comes too late.
    You should definitly not write a technical Java blog and post it all over the place.

  • Java.lang.NullPointerException, msg=null - Help

    500 Internal Server Error
    JBO-30003: The application pool (oracle.srtutorial.datamodel.SRPublicServiceLocal) failed to checkout an application module due to the following exception:oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)     at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)     at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1543)     at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1404)     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)     at oracle.adf.model.BindingContext.get(BindingContext.java:457)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)     at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)     at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)     at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)     at oracle.adf.model.BindingContext.get(BindingContext.java:483)     at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)     at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)     at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:265)     at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:169)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Unknown Source)## Detail 0 ##java.lang.NullPointerException     at oracle.srtutorial.datamodel.SRPublicServiceImpl.prepareSession(SRPublicServiceImpl.java:51)     at oracle.jbo.server.ApplicationModuleImpl.prepareSession(ApplicationModuleImpl.java:6061)     at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:135)     at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7769)     at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4074)     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2161)     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)     at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)     at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1543)     at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1404)     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)     at oracle.adf.model.BindingContext.get(BindingContext.java:457)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)     at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)     at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)     at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)     at oracle.adf.model.BindingContext.get(BindingContext.java:483)     at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)     at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)     at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:265)     at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:169)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Unknown Source)

    Hi,
    the AM cannot connect to the database. Check the database connect information and if the DB is up
    Frank

  • Need help with Exception in thread "main" java.lang.NullPointerException

    here is the error
    Exception in thread "main" java.lang.NullPointerException
    at stream.createFrame(stream.java:153)
    at chat.createMessage(chat.java:14)
    this is where the error is in stream
    public void createFrame(int id) {
              *buffer[currentOffset++] = (byte)(id + packetEncryption.getNextKey());*
    and this is where it comes from in chat
    outStream.createFrame(85);                    
    i just cant see whats causeing the exception

    spiderjava wrote:
    the variable state is assigned to test1. This variable(test1) is not initialized anywhere.It is initialized in the c'tor. Which is invoked after the "global" object and attribute initialization. So it is there, but comes too late.
    You should definitly not write a technical Java blog and post it all over the place.

  • Error in executing servlet JSPRunner: java.lang.NullPointerException

    I have some problems with my jsp files.
    I am using iAS6sp4 and iWS 6 on W2K.
    I created a EJB jar file and an empty WAR file (No JSP, Servlet, just web.xml & ias-web.xml) and pack them into a ear file for deployment. It was successful.
    Then I copy some jsp files to <iasinstall>/ias6/ias/APPS/<app name>/<war name>
    and restart the ias and iws server.
    When I try the URL: "http://myserver/NASApp/<app name>/myjsp.jsp", I got this error message from kjs.
    JSPRunner: init
    Exception: SERVLET-execution_failed: Error in executing servlet JSPRunner: java.lang.NullPointerException
    My jsp didn't include any java code, just pure htm code. I want to give it a test. But even though I tried with a proper jsp i still got this message. pls advise.
    Alan

    Hi,
    I got this working. Here are the steps that I followed and the output...
    Steps
    1. Deployed the helloworld application
    2. Invoked the application to see if it works fine
    3. Copied the myjsp.jsp to the C:\iPlanet\ias6\ias\APPS\helloworld\helloworld directory
    4. Shutdown the iAS and iWS and started again
    5. Invoked the .jsp file by typing http://sundts2.india.sun.com:81/NASApp/helloworld/myjsp.jsp in the browser.
    Output of KJS
    [16/Mar/2002 14:46:06:5] info: ENGINE-ready: ready: 10819
    **********Registered ebnls interceptor ...!
    [16/Mar/2002 14:46:22:4] info: --------------------------------------
    [16/Mar/2002 14:46:22:4] info: JSPRunner: init
    [16/Mar/2002 14:46:22:4] info: --------------------------------------
    [16/Mar/2002 14:46:26:4] info: --------------------------------------
    [16/Mar/2002 14:46:26:4] info: jsp.APPS.helloworld.myjsp: init
    [16/Mar/2002 14:46:26:4] info: --------------------------------------
    The myjsp.jsp coding is...
    <HTML>
    <BODY>
    <H1>This is a .jsp file for testing</H1>
    </BODY>
    </HTML>
    I believe the problem in your case must be that the .jsp file has been placed in a directory where iAS is not able to recognise. I'm sure this will help. Please feel free to raise questions on this.
    Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Java.lang.NullPointerException at org.collaxa.thirdparty.apache.wsif.base.

    Hi,
    I am trying to invoke a Websservice, which has JCA bindings, using the WSIF framework. Getting a null pointer exception:
    Have posted the code and error below.
    CODE SNIPPET:
    ====================================================================
    try{
    /* if (Thread.currentThread().getContextClassLoader() == null) {
    ClassLoader cl = getClass().getClassLoader();
    Thread.currentThread().setContextClassLoader(cl);
    oracle.tip.adapter.fw.wsif.jca.WSIFDynamicProvider_JCA provider = new oracle.tip.adapter.fw.wsif.jca.WSIFDynamicProvider_JCA();
    org.collaxa.thirdparty.apache.wsif.util.WSIFPluggableProviders.overrideDefaultProvider("http://xmlns.oracle.com/pcbpel/wsdl/jca/", provider);
    Definition wsdlDefinition = WSIFUtils.readWSDL(null, "C:\\SOAPJCA\\BRMCustServices.wsdl");
    Service wsdlService = wsdlDefinition.getService(new QName("http://xmlns.oracle.com/BRM/schemas/BusinessOpcodes") );
    org.collaxa.thirdparty.apache.wsif.WSIFServiceFactory wsifFactory = org.collaxa.thirdparty.apache.wsif.WSIFServiceFactory.newInstance();
    WSIFService wsifService = wsifFactory.getService(wsdlDefinition, wsdlService);
    String portChosen = null;
    Iterator it = wsifService.getAvailablePortNames();
    while (it.hasNext()) {
    String nextPort = (String) it.next();
    if (portChosen == null)
    portChosen = nextPort;
    System.out.println(" - " + nextPort);
    WSIFPort port_wsif = wsifService.getPort();
    System.out.println("After that !!");
    //WSIFPort javaPort = wsifService.getPort("");
    }catch(WSIFException wsifEx){
    System.out.println("Within WSIF exceptions");
    wsifEx.printStackTrace();
    ====================================================================
    ERROR:
    ====================================================================
    - WSIF0007I: Using WSIFProvider 'oracle.tip.adapter.fw.wsif.jca.WSIFDynamicProvider_JCA' for namespaceURI 'http://xmlns.oracle.com/pcbpel/wsdl/jca/'
    - BRMCUSTService_pt
    After preferred portoracle.j2ee.ws.wsdl.DefinitionImpl@1d86fd3
    After preferred portclass org.collaxa.thirdparty.apache.wsif.base.WSIFServiceImpl
    Within exceptions
    java.lang.NullPointerException
         at org.collaxa.thirdparty.apache.wsif.base.WSIFServiceImpl.createDynamicWSIFPort(WSIFServiceImpl.java:417)
         at org.collaxa.thirdparty.apache.wsif.base.WSIFServiceImpl.getPort(WSIFServiceImpl.java:467)
         at org.collaxa.thirdparty.apache.wsif.base.WSIFServiceImpl.getPort(WSIFServiceImpl.java:429)
         at WSIFSample4.main(WSIFSample4.java:62)
    =====================================================================
    The jars used here are orabpel related jars, which has its own JCA provider and implementation classes. There are similar errors reported in Axis WSIF forums for:
    Null pointer Exception at apache.wsif.base.WSIFServiceImpl.createDynamicWSIFPort
    But no concrete answers to it.
    Has anyone tried using WSIF in Oc4j,
    Any help is appreciated.
    Thanks,

    It says "*unique* constraint (XXEA_GLOBAL.XXEA_GL_JOURNAL_IN_STG_U1) violated". Pls check if your data (for insertion) is violating this constraint.

  • Java.lang.NullPointerException + Web Clipping Portlet

    Hi,
    I have created one external application connection and one Oracle-PDK producer connection referring to that external application.Then I dragged that web clipping portlet into a Webcenter application.
    After running jspx file,it raises an error 'Portlet Consume Error'.
    In Jdeveloper the error log is as follows::
    <ServletLogger> <severe> ERROR: Unhandled exception in SOAP call
    java.lang.NullPointerException
         at oracle.portal.wcs.session.http.HttpClientTransportSessionContext.login(HttpClientTransportSessionContext.java:308)
         at oracle.portal.wcs.common.WcExternalPrincipal.login(WcExternalPrincipal.java:322)
         at oracle.portal.wcs.provider.ProviderUserTransportSessionContextManager.handleExternalPrincipal(ProviderUserTransportSessionContextManager.java:91)
         at oracle.portal.wcs.provider.WcProviderInstance.initSession(WcProviderInstance.java:183)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.initSession(Unknown Source)
         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 oracle.webdb.provider.v2.utils.soap.SOAPProcessor.doMethodCall(Unknown Source)
         at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.handleRequest(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doSOAPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         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.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.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)
    Please help.It is very urgent!!!!!!!!!!!

    Hi
    Are you useing NWDS(CE 7.1) then you have use this sort of code to  bind it
    Model1 model1Model = new Model1();
        Bapi_Flight_Getlist_Input bapi_Flight_Getlist_Input = new Bapi_Flight_Getlist_Input(model1Model);
        Bapi_Flight_Getlist_Output output = new Bapi_Flight_Getlist_Output(model1Model);
        java.util.List<Bapisfldat> flight_List = new ArrayList<Bapisfldat>();
        output.setFlight_List(flight_List);
        wdContext.nodeBapi_Flight_Getlist_Input().bind(bapi_Flight_Getlist_Input);
    and if you are using NWD 7.0 then the binding will be differ use below sample code to bind it.
    Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
         input.setDestination_From(new Bapisfldst());
         input.setDestination_To( new Bapisfldst());
         wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
    PS: Also check the cardinality  should be 1..n not 0:n.
    Thanks

Maybe you are looking for

  • HT204266 How can I change my iphone itunes ID to match my ipad itunes ID?

    I need to have my iphone itunes ID match my ipad itunes ID.    When I set up my iphone, my email was different than when I set up my ipad.  Therefore, Do I need to use an email as the id or can I use something different so that they will match?

  • Best setup for external hard drive and iMac?

    Just purchased a Seagate FreeAgent GoFlex 1TB external HD for my Mac OSX 10.5.8. Would like to use it to backup all my pics/writing (I am a writer/photog), videos, and music - about 400 gigs worth at present. As an analog person, I am confused as to

  • HT203175 how to fix a damaged library

    i get a message that my library is damaged...help!!

  • Out of Memory Error when trying to get a BO Report as an XML

    Hi, I am trying to get a BO Report though web services API in XML format. But I am getting a OutOfMemoryError in doing so, though I am trying to get the report contents in an InputStream. Please find the code snnipet below: ViewSupport xmlViewSupport

  • I want to find "my posts"

    Hi - admittedly somewhere along the line i accidentally clicked on "remove from activity" or some such thing. while looking at a post. However, I *used* to just login an then I could click on "my posts", and there they would be. Now, try as I might,