Query fromMysql with Java---java.lang.NullPointerException

Database is named 'test'��in it, one of the table is named 'item'.It displays the following error:java.lang.NullPointerException when I do query with following code.
This java is used to connect mysql:
package Be;
import java.sql.*;
import java.util.*;
public class Dataconnection {
     public Connection conn;
     String sql;
public Connection makeC() throws SQLException,ClassNotFoundException,InstantiationException,IllegalAccessException
try
String dbDriver = "com.mysql.jdbc.Driver";
Class.forName(dbDriver).newInstance();
Connection conn= java.sql.DriverManager.getConnection("jdbc:mysql://localhost/test","root","");
     catch (ClassNotFoundException cnfe)
//System.err.println(cnfe.getMessage());
System.out.println(cnfe.getMessage());
     return conn;
this java is used to do query from table 'item'
ackage Be;
import java.util.*;
import java.sql.*;
import java.lang.*;
public class testForMysql{
public void testMysql() throws SQLException,ClassNotFoundException,InstantiationException,IllegalAccessException
DB = new Dataconnection();     
     Statement stmt = null;
     ResultSet rs = null;
try{  //try1
stmt = conn.createStatement();
rs = stmt.executeQuery("SELECT * FROM item");
System.out.println("SELECT * FROM item");
               while (rs.next()) //while1
          int invoiceno = rs.getInt("invoiceno");
     System.out.println(invoiceno);
     }//while1 over
     rs.close();
     conn.close();
          }//try1 over
     catch (SQLException e) {System.out.print(e);}
     catch (Exception e){System.out.print(e);}
private String sql;
public Dataconnection DB;
public Connection conn;
public static void main(String[] args)throws Exception
testForMysql sta =new testForMysql();
sta.testMysql();
Any idea or hint?
thanks a lot!

At what point did you get the exception? You say you got a NullPointerException, but you give no indication as to where it happened. That would give you a good clue.
Start following the Sun Java coding conventions:
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
When you post code, put it inside [ code][ code] tags (see the special tokens link up above).
Make that connection in your Dataconnection class private. Why public?
If I was writing this class, here's how I'd do it:
package be;
import java.sql.*;
import java.util.*;
public class DataConnection
    public static final String DEFAULT_DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
    public static final String DEFAULT_URL      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Software\\Java\\Forum\\DataConnection.mdb";
    public static final String DEFAULT_USERNAME = "admin";
    public static final String DEFAULT_PASSWORD = "";
    /** Database connection */
    private Connection connection;
     * Driver for the DataConnection
     * @param command line arguments
     * <ol start='0'>
     * <li>SQL query string</li>
     * <li>JDBC driver class</li>
     * <li>database URL</li>
     * <li>username</li>
     * <li>password</li>
     * </ol>
    public static void main(String [] args)
        DataConnection db = null;
        try
            if (args.length > 0)
                String sql      = args[0];
                String driver   = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
                String url      = ((args.length > 2) ? args[2] : DEFAULT_URL);
                String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
                String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
                db = new DataConnection(driver, url, username, password);
                List result = db.query(sql);
                System.out.println(result);
            else
                System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
        catch (SQLException e)
            System.err.println("SQL error: " + e.getErrorCode());
            System.err.println("SQL state: " + e.getSQLState());
            e.printStackTrace(System.err);
        catch (Exception e)
            e.printStackTrace(System.err);
        finally
            if (db != null)
                db.close();
            db = null;
     * Create a DataConnection
     * @throws SQLException if the database connection fails
     * @throws ClassNotFoundException if the driver class can't be loaded
    public DataConnection() throws SQLException,ClassNotFoundException
        this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
     * Create a DataConnection
     * @throws SQLException if the database connection fails
     * @throws ClassNotFoundException if the driver class can't be loaded
    public DataConnection(final String driver,
                          final String url,
                          final String username,
                          final String password)
        throws SQLException,ClassNotFoundException
        Class.forName(driver);
        this.connection = DriverManager.getConnection(url, username, password);
     * Clean up the connection
    public void close()
        try
            this.connection.close();
        catch (Exception e)
            ; // do nothing; you've done your best
     * Execute an SQL query
     * @param SQL query to execute
     * @returns list of row values
     * @throws SQLException if the query fails
    public List query(final String sql) throws SQLException
        Statement statement     = this.connection.createStatement();
        ResultSet rs            = statement.executeQuery(sql);
        ResultSetMetaData meta  = rs.getMetaData();
        int numColumns          = meta.getColumnCount();
        List rows               = new ArrayList();
        while (rs.next())
            Map thisRow = new LinkedHashMap();
            for (int i = 1; i <= numColumns; ++i)
                String columnName   = meta.getColumnName(i);
                Object value        = rs.getObject(columnName);
                thisRow.put(columnName, value);
            rows.add(thisRow);
        rs.close();
        statement.close();
        return rows;
}This code compiled and ran on my Windows machine. I tested it against an Access database, and it worked fine. You'll have to change those static variables to point to your stuff if you try it. - MOD

Similar Messages

  • Java.lang.NullPointerException with and update statement

    Hello,
    I'm getting this exception:
    java.lang.NullPointerException
         phaseone.AlbumModel.updateImageTrackerAlbums(AlbumModel.java:313)
         phaseone.AlbumModel.processRequest(AlbumModel.java:228)
         phaseone.AlbumModel.doGet(AlbumModel.java:522)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    I have an open method called before this one that connects me to the database. It works fine and have it working with a bunch of other methods but this one gives me this exception. i've even hard coded the variable 'user' and 'albumNumber' with information that exists in the database. i can't see where this logical error is coming from. I appreciate the help. I've been on this for 3 1/2 hour going blind. thanks!!
    public boolean updateImageTrackerAlbums(String user, int albumNumber){
              PreparedStatement pstmt = null;
              boolean pass = false;
              String query = "update imagetracker set totalalbums = ? where username = ?";
              try{
              pstmt = conn.prepareStatement(query);
              pstmt.setInt(1, albumNumber);
              pstmt.setString(2, user);
             int x = pstmt.executeUpdate();
             if (x >= 1){
             pass = true;
              }catch(SQLException e){
                e.printStackTrace();
                return pass;
              }finally{
              DBUtil.closePreparedStatment(pstmt);
              return pass;
              }

    code3 wrote:
    The exception is pointing to this:
    pstmt = conn.prepareStatement(query);
    Do you understand anyway when a NullPointerException would be thrown? It will be thrown if you try to access/invoke an object reference which is actually null.
    Connection conn = null;
    pstmt = conn.prepareStatement(query); // Throws NPE because conn is null.

  • Catching java.lang.NullPointerException with cftry/cfcatch?

    I'm getting a java.lang.NullPointerException returned on an
    update function in a CFC:
    "The cause of this output exception was that:
    java.lang.NullPointerException."
    I want to find where it's generating this error so I can fix
    it. I've never really used CFTRY and CFCATCH, but figured now would
    be a good time to learn if this helped me track down the null. Can
    anyone provide an example of how to use these tags with the above
    NPE and output a message that give info on where it's faulting?
    I'm using a standard update query,
    <cfquery>
    UPDATE table
    SET columns = new values
    WHERE ID column = some ID
    </cfquery>

    That was a great tip Dan. Helped me find the line. Apparently
    a datatype "date" was given an incorrect null value. I figured the
    problem and the update works now :)
    Here's code incase someone wants to know:

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

  • Java.lang.NullPointerException ADF_FACES-60097 message ***WITH SOLUTION***

    Hi Everyone:
    We are on JDeveloper 11.1.2 & JHeadstart 11.1.2. When testing an application that had previously been written in 10g and migrated to 11g, then migrated again to 11.1.2 because our database has logical composite keys, we have found that if we manually inputted an invalid value into the inputtext box of a primary key that has an LOV on it, the following message came up.
    "java.lang.NullPointerException
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #"
    with a random number displayed. We wondered where the java.lang.NullPointerException was coming from and then on a whim, tried to see if it couldn't find the error messages that were previously found in ApplicationResources_en.properties file in 10g. So I manually copied all of the error messages found in the ApplicationResources_en.properties file in 10g, into the end of the ApplicationResources_en.properties file on 11.1.2. There were only about 100+ messages in the 11g version of the ApplicationResources_en.properties file when there were almost 3,000+ messages in the 10g version of the ApplicationResources_en.properties. I then re-ran the job, and the proper error message comes out with no java.lang.NullPointerException message when I input an invalid value into the primary key (+Artransactioncode with this TransCode does not exist).+
    Is this a known issue when converting from 10g to 11g?
    Mary
    UofW

    Hi Everyone:
               I have done some further testing.  We are using a re-usable Business Components .jar file to access our entities.  We import the .jar file into the project and create the ViewObjects and ViewLinks from that .jar file.
                It APPEARS that a test case using the HRSchema and using the Entities & Associates generates the constraint error messages, but when I use the .jar file of re-usable business components imported into the project, those constraint error messages are not created in the ApplicationResources_en.properties file.  I have created two testcases as well as the re-usable .jar file that I can send to you to show what I mean. 
                This behaviour seems to have shown up in 11.1.2 as there was no problem before this.
                 Please let me know where you'd like me to upload the testcases.
                 Thank you.
    Mary
    UofW

  • Receive java.lang.NullPointerException (JCA-12563) on SCA with Stored Procedure dbAdapter (SOA Suite 12.1.3)

    Hi,
    I'm new to the Oracle SOA Suite and have been creating very simple SCA WebServices (async and sync) prototypes to INSERT, UPDATE and Poll Oracle 9i and 11g databases. So far, everything works and passes the tests from EM.
    I cannot get the Stored Procedure WebService to test successfully as I receive the error message below regardless of JNDI configuration for XA, non-XA, Last Logging Resource, Support Global Transactions,PlatformClassName, etc...  The Outbound Connection Pool is setup correctly as the other DML tests have worked fine.
    BINDING.JCA-12563
    Exception occurred when binding was invoked.
    Exception occurred during invocation of JCA binding: "JCA Binding execute of Reference operation 'dbReference' failed due to: Interaction processing error.
    Error while processing the execution of the IFSAPP.TEST_SOA_API API interaction.
    An error occurred while processing the interaction for invoking the IFSAPP.TEST_SOA_API API. Cause: java.lang.NullPointerException
    Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD.  This exception is considered not retriable, likely due to a modelling mistake.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    Caused by: BINDING.JCA-12563
    Exception occurred when binding was invoked.
    Exception occurred during invocation of JCA binding: "JCA Binding execute of Reference operation 'callAPI' failed due to: Interaction processing error.
    Error while processing the execution of the IFSAPP.TEST_SOA_API API interaction.
    An error occurred while processing the interaction for invoking the IFSAPP.TEST_SOA_API API. Cause: java.lang.NullPointerException
    Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD.  This exception is considered not retriable, likely due to a modelling mistake.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
       at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:569)
        at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeJcaReference(JCAInteractionInvoker.java:724)
        at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeAsyncJcaReference(JCAInteractionInvoker.java:689)
        at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAEndpointInteraction.performAsynchronousInteraction(JCAEndpointInteraction.java:628)
        at oracle.integration.platform.blocks.adapter.AdapterReference.post(AdapterReference.java:325)
        ... 84 more
    Caused by: BINDING.JCA-11812
    Interaction processing error.
    Error while processing the execution of the IFSAPP.TEST_SOA_API API interaction.
    An error occurred while processing the interaction for invoking the IFSAPP.TEST_SOA_API API. Cause: java.lang.NullPointerException
    Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD.  This exception is considered not retriable, likely due to a modelling mistake.
        at oracle.tip.adapter.db.exceptions.DBResourceException.createNonRetriableException(DBResourceException.java:690)
        at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:656)
        at oracle.tip.adapter.db.sp.SPUtil.createResourceException(SPUtil.java:180)
        at oracle.tip.adapter.db.sp.SPInteraction.executeStoredProcedure(SPInteraction.java:183)
        at oracle.tip.adapter.db.DBInteraction.executeStoredProcedure(DBInteraction.java:1302)
        at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:307)
        at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:415)
    Caused by: java.lang.NullPointerException
        at oracle.tip.adapter.db.sp.SPInteraction.executeStoredProcedure(SPInteraction.java:162)
        ... 91 more
    The SP SCA is the simplest possible application I can think of...  The WebService accepts a single INT, calls BPEL>Receive>Assign>Invoke>dbAdapter(Stored Procedure) that accepts a single IN INTEGER parameter in an Oracle 11g database.
    Steps I've used to create the SP SCA. (Create Empty SOA Application)
    1.) Create Database Adapter in External References swim lane.
    2.) Set JNDI and Connection.
    3.) Browse to Oracle Procedure...click through Wizard and accept all defaults.
       CREATE OR REPLACE PROCEDURE TEST_SOA_API (
         wo_order_no_ IN INTEGER)
       IS
       BEGIN
         INSERT INTO TEST_TMP VALUES (wo_order_no_);
       END;
    4.) WSDL, XSD, JCA are automatically generated. 
    5.) Create BPEL Process Component and select Template "Base on a WSDL".  I choose the WSDL created from the Database Adapter wizard.
    6.) The "Exposed Service" is automatically created and everything is wired.
    7.) I deploy to my CompactDomain (running on a local Oracle12 db).  No errors.
    8.) I login to EM and Test the WebService..and ALWAYS receive the error message above.
    I've tried BPEL Process and Mediator as components to simply pass the single incoming INT parameter to the SP DbAdapter and tried every combination I can think of with DataSource/DbAdapter Deployment through the Admin console.  I used the same exact steps above for INSERT, UPDATE, Polling and have had no issues so I cannot figure out why I'm not receiving java.NullPointer exception or why I'm receiving the XML/XSD malformation error.
    Stuck now...anyone have an idea what I'm doing wrong or simply tell me I'm an idiot and shouldn't do SP's this way?
    FYI.  I've turned on logging for the oracle.soa.adapter.db class to TRACE: 32(FINEST).  Not much help to me
    [2015-04-02T09:03:55.706-05:00] [AdminServer] [WARNING] [ADF_FACES-00007] [oracle.adf.view.rich.render.RichRenderer] [tid: 118] [userId: weblogic] [ecid: 852497f1-b648-4cac-9cee-05e7972ce68e-00000788,0] [APP: em] [DSID: 0000KluHqzk0NuGayxyWMG1L7K52000003] Attempt to synchronized unknown key: viewportSize.
    [2015-04-02T09:05:23.971-05:00] [AdminServer] [TRACE] [] [oracle.soa.adapter.db.outbound] [tid: 115] [userId: <anonymous>] [ecid: 852497f1-b648-4cac-9cee-05e7972ce68e-000007db,1:17474] [APP: soa-infra] [oracle.soa.tracking.FlowId: 250004] [oracle.soa.tracking.InstanceId: 1270014] [oracle.soa.tracking.SCAEntityId: 90004] [composite_name: OraclePLSQL2!1.0] [FlowId: 0000KluSpyP0NuGayxyWMG1L7K52000007] [SRC_CLASS: oracle.tip.adapter.db.sp.AbstractStoredProcedure] [SRC_METHOD: execute]  [composite_version: 1.0] [reference_name: dbReference] BEGIN IFSAPP.TEST_SOA_API(WO_ORDER_NO_=>?); END;
    [2015-04-02T09:05:23.972-05:00] [AdminServer] [TRACE] [] [oracle.soa.adapter.db.outbound] [tid: 115] [userId: <anonymous>] [ecid: 852497f1-b648-4cac-9cee-05e7972ce68e-000007db,1:17474] [APP: soa-infra] [oracle.soa.tracking.FlowId: 250004] [oracle.soa.tracking.InstanceId: 1270014] [oracle.soa.tracking.SCAEntityId: 90004] [composite_name: OraclePLSQL2!1.0] [FlowId: 0000KluSpyP0NuGayxyWMG1L7K52000007] [SRC_CLASS: oracle.tip.adapter.db.sp.AbstractStoredProcedure] [SRC_METHOD: execute]  [composite_version: 1.0] [reference_name: dbReference] Bindings [WO_ORDER_NO_=>INTEGER(2343)]
    WSDL
    <wsdl:definitions
         name="dbReference"
         targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/OraclePLSQL2/OraclePLSQL2/dbReference"
         xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/OraclePLSQL2/OraclePLSQL2/dbReference"
         xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
         xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
         xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
        >
      <plt:partnerLinkType name="dbReference_plt" >
        <plt:role name="dbReference_role" >
          <plt:portType name="tns:dbReference_ptt" />
        </plt:role>
      </plt:partnerLinkType>
        <wsdl:types>
         <schema xmlns="http://www.w3.org/2001/XMLSchema">
           <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference"
                   schemaLocation="../Schemas/dbReference_sp.xsd" />
         </schema>
        </wsdl:types>
        <wsdl:message name="args_in_msg">
            <wsdl:part name="InputParameters" element="db:InputParameters"/>
        </wsdl:message>
        <wsdl:portType name="dbReference_ptt">
            <wsdl:operation name="dbReference">
                <wsdl:input message="tns:args_in_msg"/>
            </wsdl:operation>
        </wsdl:portType>
    </wsdl:definitions>
    XSD
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference" elementFormDefault="qualified">
       <element name="InputParameters">
          <complexType>
             <sequence>
                <element name="WO_ORDER_NO_" type="int" db:index="1" db:type="INTEGER" minOccurs="0" nillable="true"/>
             </sequence>
          </complexType>
       </element>
    </schema>
    Payload XML
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
            <soap:Body>
                    <ns1:InputParameters xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference">
                            <ns1:WO_ORDER_NO_>667</ns1:WO_ORDER_NO_>
            </ns1:InputParameters>
        </soap:Body>
    </soap:Envelope>

    An even simpler request:
    Can someone create an SCA that simply accepts a single INT parameter and calls a Stored Procedure (Oracle) that inserts this INT into a table?  Maybe upload the project folder structure in a zip? 
    Seems someone with experience on this platform could execute this task in 10-15 minutes.
    CREATE TABLE TEST_TMP (WO_ORDER_NO INT);
       CREATE OR REPLACE PROCEDURE TEST_SOA_API (
         wo_order_no_ IN INTEGER)
       IS
       BEGIN
         INSERT INTO TEST_TMP VALUES (wo_order_no_);
       END;

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

  • Oracle 8.1.6 Installation fails with java.lang.NullpointerException

    HI,
    We are installing Oracle 8.1.6 on a D Class machine running HPUX 11.0 OS
    While i start the Universal Installer, it fails with the following
    error.
    Warning: Missing charsets in String to FontSet conversion
    Warning: Cannot convert string "-dt-interface
    system-medium-r-normal-s*-*-*-*-*-*-*-*-*" to type FontSet
    Warning: Missing charsets in String to FontSet conversion
    Warning: Cannot convert string "-dt-interface
    user-medium-r-normal-s*-*-*-*-*-*-*-*-*" to type FontSet
    Exception java.lang.NullPointerException occurred..
    java.lang.NullPointerException
    at sun.awt.motif.MComponentPeer.setFont(MComponentPeer.java:197)
    at sun.awt.motif.MFramePeer.<init>(MFramePeer.java:73)
    at sun.awt.motif.MToolkit.createFrame(MToolkit.java:177)
    at java.awt.Frame.addNotify(Frame.java:203)
    at java.awt.Window.show(Window.java:143)
    at java.awt.Component.show(Component.java:511)
    at java.awt.Component.setVisible(Component.java:473)
    at
    oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:419)
    My ORACLE_TERM is set to dtterm.
    Can anybody give some suggestions what would be the problem..?
    Thanks
    vinod
    null

    Pretty much the same thing, Tomcat is the web server in CUCM, so that should have been sufficient.
    Please rate all useful posts!
    Chris

  • Java.lang.NullPointerException with FTP receiver

    Hi All,
    I have a java.lang.NullPointerException in the Runtime Workbench for my FTP Adapter, that is a receiver.
    At SXMB_MONI all the messages are successful.
    What this could be?
    Thanks in advance,
    Daniela

    Naveen,
    Thanks for your help.
    I took a look in RWB and it seems like there was an error when CC tried to connect with the FTP server. The last two messages are:
    Success -> Connect to FTP server "10.112.144.108", directory "\interfaces2\conversionesTest"
    Error -> Attempt to process file failed with Error occurred while connecting to the FTP server "10.112.144.108:22": java.lang.NullPointerException
    Do you think ii could be an conection error (login, port) or a wrong configuration in my CC?
    Thaks in advance,
    Daniela Machado

  • Error occurred while sending query result: 'java.lang.NullPointerException'

    I am doing end to end scenario from SQL server to File
    JDBC --XI -- File
    I am getting the following Error while monitoring the sender CC in RWB
    "Error occurred while sending query result: 'java.lang.NullPointerException'
    Please Help !!

    Hi,
    To see the Adapter Error log, try:
    http://<XiServerHostName>:<J2EE-Port>/MessagingSystem
    Try viewing the Audit Log for each message (Newspaper Icon)
    Regards,
    Amitabha

  • Java.lang.NullPointerException with ADF Module

    Hi,
    I am trying to build simple application like "How to Build a Simple UIX Search Form
    But my view is
    =====================================================
    SELECT EmIssue.ID,
    EmIssue.INITIATIVE_ID,
    EmIssue.NAME,
    EmIssue.DESCRIPTION
    FROM EM_ISSUE EmIssue
    =====================================================
    And I added new method at AppModuleImpl
    It is
    ViewObject Issue = findViewObject("EmIssueView1");
    System.out.println("***In setBindVars*****");
    String WhereClause = " EmIssue.NAME like '%issue%'";
    Issue.setWhereClause(WhereClause);
    System.out.println("***END setBindVars*****");
    Issue.executeQuery();
    =====================================================
    And the system raises error with java.lang.NullPointerException at line
    String WhereClause = " EmIssue.NAME like '%issue%'";
    Could any one tell me where is error in my code
    Thanks

    It is unlikely that NPE was raised on
    String WhereClause = " EmIssue.NAME like '%issue%'";
    It's more likely that NPE was thrown from
    Issue.setWhereClause(WhereClause);
    This would happen if Issue is null, which means that the findViewObject() method couldn't find a VO named "EmIssueView1". Make sure that the VO name is spelled corectly. Names are case sensitive.
    Thanks.
    Sung

  • Java.lang.NullPointerException with OracleXMLParser V2

    Hi,
    I am getting java.lang.NullPointerException with OracleXMLParser V2.
    Following is some of the code snippet. I am not sure where I am going
    wrong. I am using the SAXParser. I tried both FileReader as well as URL
    InputSources But I am getting the same error.
    Parser parser = new SAXParser();
    parser.setDocumentHandler(this);
    parser.setEntityResolver(this);
    parser.setDTDHandler(this);
    parser.setErrorHandler(this);
    try {
    FileReader fileReader = new FileReader(defaultFileName);
    //InputSource iSource = new InputSource(fileReader);
    URL myURL = new URL("http://ewdev02/ooppub01.xml");
    InputSource iSource = new InputSource(myURL.toString());
    parser.parse(iSource);
    //parser.parse("http://ewdev02/ooppub01.xml");
    catch (FileNotFoundException fe) {
    System.err.println("File Not Found!");
    catch (SAXParseException se)
    System.out.println("Sax Exception: " + se.getMessage());
    catch (IOException ioe)
    System.out.println("IO Exception: " + ioe.getMessage());
    catch (Exception e){
    System.out.println("Error Parsing: " + e.toString ());
    Here are some of my habdlers:
    public void startDocument() {
    System.out.println("Beginning of the Document!");
    public void endDocument() throws SAXException {
    System.out.println("End of the Document!");
    System.out.println("A total of " + n + "Records inserted in the database!");
    public void startElement(String elname) throws SAXException {
    if (elname.equalsIgnoreCase("DOCS")){
    System.out.println("Biginning of the document! Ignoring <Docs>");
    curColumn = new AIColumns();
    else if (elname.equalsIgnoreCase("DOC")){
    System.out.println("Begining of <DOC>");
    curColumn.flush();
    n++;
    currentElement = elname;
    System.out.println( currentElement );
    public void endElement(String elname) throws SAXException {
    if (elname.equalsIgnoreCase("DOC")){
    System.out.println("End of <DOC>");
    //Now call the function to insert in the database
    try {
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    } catch ( Exception e ) {
    System.err.print("Exception: ");
    System.err.println( e.getMessage() );
    return;
    ..... after this I insert the record into database.
    Your help is greatly appreciated.
    Best Regards,
    Chandra Shirashyad

    Hi,
    Can you please also post the stack trace for where the Null pointer exception is occurring?
    Thank you,
    Oracle XML Team
    null

  • Java.lang.NullPointerException with rich:pickList

    Hi every Body,
    I still getting a problem with my <rich:pickList> and really I need help. I got an error when executing the application, I debugged the application and I have notice that the problem cames from the PickList tag.
    the error is as follow:
    java.lang.NullPointerException
            at com.sun.facelets.util.FastWriter.write(FastWriter.java:77)
            at com.sun.facelets.StateWriter.write(StateWriter.java:116)
            at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.write(HtmlResponseWriter.java:495)
            at org.richfaces.renderkit.PickListRenderer.encodeItem(PickListRenderer.java:194)
            at org.richfaces.renderkit.PickListRenderer.encodeRows(PickListRenderer.java:152)
            at org.richfaces.renderkit.PickListRenderer.encodeSourceRows(PickListRenderer.java:209)
            at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.jav
    a:344)
            at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.jav
    a:258)
            at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
            at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
            at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
            at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRendere
    r.java:79)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja
    va:271)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
            at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
            at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
            at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
            at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.jav
    a:411)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
    ava:317)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
            at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
            at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
            at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
            at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
            at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
    ava:230)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
    ava:230)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:27
    1)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProces
    sorTask.java:637)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorT
    ask.java:568)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTas
    k.java:813)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultRead
    Task.java:341)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106
    )     My backing bean:
    @Stateful
    @Name("adminAction")
    @Scope(ScopeType.SESSION)
    public class AdminActionBean implements AdminActionLocal {
    @Out(required=false)
       private List<Customer> companyNames;
       @Out(required=false)
       private ArrayList<SelectItem> companyNamesOption;
       @In(required=false)
       @Out(required=false)
       private List<Long> customersChoice = new ArrayList<Long>();
    public void selectCompanyNames(){
           setCompanyNames((List<Customer>) getEm().createQuery("select c from Customer c")
                        .getResultList());
       @Factory("companyNamesOption")
       public void selectCompanyNamesOption(){
           selectCompanyNames();
           for (int i=0;i <companyNames.size();i++){
               log.info("customers size =#0",companyNames.size());
               if(companyNamesOption== null)
                   companyNamesOption  = new ArrayList<SelectItem>();
               SelectItem item = new SelectItem(companyNames.get(i).getCustomerId(), companyNames.get(i)
    .getCompanyName(), companyNames.get(i).getCompanyName() );
               companyNamesOption.add(item);
               log.info("customers size2 =#0",customers.size());
    // getter and setter
    ...My .xhtml page:
    <rich:pickList id="customersChoice"  value="#{adminAction.customersChoice}">
                        <f:selectItems  value="#{companyNamesOption}" />
                    </rich:pickList>     When debugging, the message error is displayed exactly after the selectCompanyNamesOption() method.
    thank you very much
    cheers
    bibou

    bibou wrote:
    java.lang.NullPointerException
    at com.sun.facelets.util.FastWriter.write(FastWriter.java:77)I would consider it as a bug in Facelets. But you might also have done something seriously wrong with your RichFaces tag and the logic behind which caused this unexpected exception.
    For more accurate answers, try reposting this question at the RichFaces forum at JBoss.com, there where the RichFaces boys walk around. You see, you're here at a Sun forum where mainly Mojarra boys walk around.

  • Java.lang.NullPointerException , with no refrence to my own source code....

    what can cause this exception ?
    it does not point to any of my own source classes ,
    i works fine in OC4J 10.1.3.1 developer preview but not in 10.1.3.00 standalone
    06/10/16 16:44:55.109 web2: Servlet error
    java.lang.NullPointerException
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Thank you for reply.
    I develop this application in 10.1.3.1.0 ,
    I could finally run it on OC4J 10.1.3.1 developer preview in the server , so i have no need to work on running the application on 10.1.3.00 .
    but now i have a deep problem with sending emails from my application deployed in production server , i found no solution for it .
    it is really ODD in my eyes.
    if you are intrested to look at the problem ,
    here is its post in OC4J forum , in case that you have experiences , please take a look and advice me for it.
    odd behaivior of javaMail in OC4J
    Thanks

  • Java.lang.NullPointerException with non admin account in firefox

    Hi everybody. I'm new to java and after trying installing JDK 6 and Netbeans I got this exception everytime I visit a site that use java technology :
    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)
    This happens only with firefox (IE and Opera works well) and only if I log in a Windows non administrative account.
    One month ago everything worked well with firefox. I tried to uninstall JDK anr JRE 6 and reinstall 1.5.11 as well as reinstall firefox. I tried even Gran Paradiso Alpha2, but I got the same exception.
    I'm using winxp SP2
    What can I do ? Please help me !
    Thanks by advance
    Maury

    hi,
    name of the class file is HTTPTransfer.java only,but i am mistaken
    NPE getting at 329 , that is in the if condition at
    if ((t != null) && (pi != null) && (pi.length > 0))
    proxyhost = pi[0].getHost();
    proxyport = pi[0].getPort();
    i tried with pi[] , then also i am getting NPE , i am really sorry for that ....
    i did'nt noticed
    stacktrac:
    Jun 29, 2007 5:41:28 PM com.atonesoftware.web.applet.upload.client.MApplet <init>
    INFO: BatchUpload 1.7c Build Alpha
    java.lang.NullPointerException
         at com.atonesoftware.web.applet.transfer.client.http.HTTPTransfer.autoDetectProxy(HTTPTransfer.java:329)
         at com.atonesoftware.web.applet.transfer.client.http.HTTPTransfer.init(HTTPTransfer.java:117)
         at com.atonesoftware.web.applet.transfer.client.http.HTTPUploadTransfer.init(HTTPUploadTransfer.java:90)
         at com.atonesoftware.web.applet.transfer.client.util.Conf.getTransferController(Conf.java:644)
         at com.atonesoftware.web.applet.upload.client.MApplet.init(MApplet.java:86)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

Maybe you are looking for

  • What version of firefox can I use best if i am running Mac OS 10.4 and am not planning to change my OS?

    I keep on getting automatic updates from firefox and then I am told that I cannot run the update because my OS is too old (!). I get sent to the firefox website saying that I can find the best version for my OS version and yet once I click, I get no

  • Sourcing cockpit issue

    Hi,    I am having two cases over here. 1) There are some SC which are sitting in my sourcing cockpit even after backend document is created. 2) There are some sc which are not supposed to go into sourcing cockpit. I need to clean up both scenarios.

  • How to connect R3 to Portal

    Hi all, Can any one tell me how to connect R3 to Portal step by step ? Please... I am new to Portal environment.. Regards, Murugan Arumugam.

  • How to load HTML5 mobile sites.

    I want to use Firefox Mobile (Android) but it fails to open certain pages properly. For example, ESPN has optimized their mobile page for HTML 5. It works and looks great in Chrome and Android Stock Browser. When opened with Firefox it opens a bare m

  • Wo finde ich meine Pdf-Dokumente?

    Ich habe die Umstellung auf Acrobat DC weder bestellt noch gewünscht. Seit der Umstellung vermisse ich von mir bearbeitete Pdf-Dokumente. Wie komme ich daran? Ich bitte um eine Antwort in Deutsch!