NullPointerException in Remote method

Hello,
I am trying to reproduce the database sample of the Java Roadmap using EJB's. I have gone through all the steps, deploying went well, compiling too. but when running the selectEJB Client program I get the following messages:
"C:\Program Files\Oracle\JDeveloper 3.1\java\bin\javaw.exe" -mx50m -classpath "U:\Documentation\EJB;C:\Program Files\Oracle\JDeveloper 3.1\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.1\jdbc\lib\oracle8.1.6\classes111.zip;C:\Program Files\Oracle\JDeveloper 3.1\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.1\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.1\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.1\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.1\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.1\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.1\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.1\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.1\sqlj\lib\translator.zip;U:\Documentation\EJB\selectEJBRemoteSource.jar;U:\Documentation\EJB\selectEJBRemoteGenerated.jar;C:\Program Files\Oracle\JDeveloper 3.1\java\lib\classes.zip" selectO8iClient.MyEJBClient
Creating an initial context
Looking for the EJB published as 'test/selectEJBRemote'
Creating a new EJB instance
Caught RuntimeException in remote method; nested exception is:
java.lang.NullPointerException:null
Remote Stack Trace:
java.lang.NullPointerException
at selectEJB.selectEJBClass.ejbCreate(selectEJBClass.java:41)
at oracle.aurora.ejb.gen.test_selectEJBRemote.EjbHome_selectEJBHome.create(EjbHome_selectEJBHome:52)
at selectEJB._tie_selectEJBHome.create(_tie_selectEJBHome.java:53)
at selectEJB._selectEJBHomeImplBase._execute(_selectEJBHomeImplBase.java:65)
at selectEJB._selectEJBHomeImplBase._execute(_selectEJBHomeImplBase.java:53)
at com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(SkeletonDelegateImpl.java:129)
at oracle.aurora.server.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:266)
at com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:462)
at oracle.aurora.server.ThreadSessionDispatcher.run(ThreadSessionDispatcher.java:92)
at oracle.aurora.server.VCIiopConnection.processRequest(VCIiopConnection.java:62)
at oracle.aurora.server.GiopServer._service(GiopServer.java:82)
at oracle.aurora.server.GiopServer.service(GiopServer.java:191)
at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java:201)
at oracle.aurora.net.Presentation.handleRequest(Presentation.java:292)
oracle.aurora.ejb.RemoteRuntimeException: Caught RuntimeException in remote method; nested exception is:
java.lang.NullPointerException:null
Remote Stack Trace:
java.lang.NullPointerException
at selectEJB.selectEJBClass.ejbCreate(selectEJBClass.java:41)
at oracle.aurora.ejb.gen.test_selectEJBRemote.EjbHome_selectEJBHome.create(EjbHome_selectEJBHome:52)
at selectEJB._tie_selectEJBHome.create(_tie_selectEJBHome.java:53)
at selectEJB._selectEJBHomeImplBase._execute(_selectEJBHomeImplBase.java:65)
at selectEJB._selectEJBHomeImplBase._execute(_selectEJBHomeImplBase.java:53)
at com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(SkeletonDelegateImpl.java:129)
at oracle.aurora.server.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:266)
at com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:462)
at oracle.aurora.server.ThreadSessionDispatcher.run(ThreadSessionDispatcher.java:92)
at oracle.aurora.server.VCIiopConnection.processRequest(VCIiopConnection.java:62)
at oracle.aurora.server.GiopServer._service(GiopServer.java:82)
at oracle.aurora.server.GiopServer.service(GiopServer.java:191)
at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java:201)
at oracle.aurora.net.Presentation.handleRequest(Presentation.java:292)
at selectEJB._st_selectEJBHome.create(_st_selectEJBHome.java:68)
at selectO8iClient.MyEJBClient.main(MyEJBClient.java:110)
End...java.io.IOException: read error
I have tried debugging the code and there seems to be a problem with creating the remoteInterface:
selectEJBRemote remoteInterface = homeInterface.create();
I just can't figure out what. Can someone help me?
Thanks,
Benny

I have encountered exactly the same problem when creating a BMP Entity Bean. Has someone found a solution yet ?

Similar Messages

  • NullPointerException while calling a Remote Method

    I have got the following exception wh�le calling a remote method,
    do you have any idea?
    java.lang.NullPointerException
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
         at distributedchess.server.ChessGameImpl_Stub.applyAction(ChessGameImpl_Stub.java:53)

    Looks to me like your server has a bug in a remote method.

  • Connection problem while invoking remote method from client using oracle 8.1.6 server

    while using a connection object to make connection to oracle in all remote methods(in EJB)only the first remote method called from the EJB client is getting invoked and the connection stops.It gives me COMM_FAILURE while invoking the second method in oracle 8.1.6.Help me out in this aspect immediately please.

    r singh wrote:
    >
    I am getting "No Suitable Driver" exception from WebLogic 6.1 (sp1) at
    the start up of the server.
    My settings:
    - WLS 6.1 on a solaris 8 machine and Oracle 8.1.6 on a WIN2K machine.
    - I created the connection pool for oracle with the following
    parameters:
    connection name: OracleConnectionPool
    url: jdbc.oracle.thin:@myOracleServer:1521:myDBName
    driver class name: oracle.jdbc.driver.OracleDriver
    properties: user=scott
    password=tiger
    - I have also downloaded classes12.zip and nls_charset12.zip from
    Oracle.com
    and have placed under $WL_HOME/lib.
    - I have added $WL_HOME/lib/classes12.zip:$WL_HOME/lib/nls_charset12.zip
    in
    front of the $CLASSPATH in the startWeblogic.sh script. The echoed
    classpath
    from the startup script is:
    /opt/tools/bea/wlserver6.1/lib/classes12.zip:/opt/tools/bea/wlserver6.1/lib/nls_
    charset12.zip:/opt/tools/bea/wlserver6.1:/opt/tools/bea/wlserver6.1/lib/weblogic
    _sp.jar:/opt/tools/bea/wlserver6.1/lib/weblogic.jar
    - Still I get the error:
    <Jan 16, 2002 1:38:45 PM EST> <Error> <JDBC> <Cannot startup
    connection pool "Or
    acleConnectionPool" No suitable driver>
    Can somebody point me out if i am doing anything wrong here.
    Thanks.
    RamanandHi,
    Sure. Your URL should be "jdbc:oracle:thin:@myOracleServer:1521:myDBName"
    not "jdbc.oracle.thin:@myOracleServer:1521:myDBName"
    Joe

  • Flex Data Services does not see remote methods in extended ColdFusion component.

    I have created a remote service base component as a AModelService.cfc file. I extend that file to make my ModelService.cfc. When I configure the ColdFusion data service and point to ModelService.cfc and click next, I don't see any remote methods (there are none explicitly defined in the component) in the Service Operations window.
    If I go back and point to AModelServide.cfc, the parent component, and hit next, I see all the remote methods that are defined in the parent component. So, either I am doing something wrong, or Data Services does not look at methods up the cfc prototype chain, which from an OOP standpoint means that instead of say creating one restful base class and being nice and DRY you can't. I.e. not OOP for data services. Is this a bug, or what?
    Anybody get data services to work with extended service components?
    Mark

    Thanks for the reply. Yes, I did compile all the Java and it
    works OK with a simple Java program. It just will not work in a
    Flex application.
    The java classes are:
    RRA:
    package blah.myPackage;
    import java.util.List;
    import java.util.Collection;
    import flex.data.DataSyncException;
    import flex.data.assemblers.AbstractAssembler;
    class RRA extends AbstractAssembler
    public Collection fill( List fillParameters )
    RRS service = new RRS();
    return service.getSome();
    RRS:
    package blah.myPackage;
    import java.util.ArrayList;
    import java.util.List;
    import java.sql.*;
    import flex.EORS.*;
    class RRS
    public List getSome()
    ArrayList list = new ArrayList();
    String str = "bob";
    RR rr = new RR(str);
    list.add(rr);
    return list;
    RR:
    package blah.myPackage;
    class RR
    private String name;
    public RR() { }
    public RR(String name)
    this.name = name;
    public String getName()
    return this.name;
    public void setName(String name)
    this.name = name;
    I started with something that retrieved data from a database
    but watered it down just to try and get some kind of communication
    between Flex and Java.

  • Exception data: java.lang.AbstractMethodError - Calling Remote Method.

    We recently changed some of our CMP fields from primative int's to integer's and now we are receiving Abstract Method Errors at runtime. We have fixed all the methods that use this CMP fields, well at least we think we got them all. Since this are remote methods the sever is setup to pull JAR files from a lib directory on the server. This JAR files have also been updated. Can anyone give me more information about this error or something I might be missing.
    ------------------------------------------------------------------------------------- Errors -------------------------------------------------------------------------------------
    [11/7/07 15:40:23:141 CST] 00000022 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "getPositionInfo" on bean "BeanId(hr-ear#hr-ejb.jar#PositionService, null)". Exception data: java.lang.AbstractMethodError: com/tgt/supply/pdd/ejb/entity/AmcOffice.getOfcI()Ljava/lang/Integer;
         at com.theamc.hr.ejb.session.PositionServiceBean.getPositionCollections(PositionServiceBean.java:1383)
         at com.theamc.hr.ejb.session.PositionServiceBean.getPositionInfo(PositionServiceBean.java:46)
         at com.theamc.hr.ejb.session.EJSRemoteStatelessPositionService_fae72574.getPositionInfo(EJSRemoteStatelessPositionService_fae72574.java:262)
         at com.theamc.hr.ejb.session._PositionService_Stub.getPositionInfo(_PositionService_Stub.java:272)
         at com.theamc.hr.web.servlet.PositionServlet.createPageObject(PositionServlet.java:153)
         at com.theamc.framework.servlet.ControllerServlet.doGet(ControllerServlet.java:221)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
         at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
    [11/7/07 15:34:10:043 CST] 00000020 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "getUserOrgInfo" on bean "BeanId(userprofile-ear#userprofile-ejb.jar#UserOrgInfo, null)". Exception data: java.lang.AbstractMethodError: com/tgt/supply/pdd/ejb/entity/AmcOffice.getOfcI()Ljava/lang/Integer;
         at com.theamc.userprofile.ejb.session.UserOrgInfoBean.getUserOfficeValue(UserOrgInfoBean.java:536)
         at com.theamc.userprofile.ejb.session.UserOrgInfoBean.getUserOrgInfo(UserOrgInfoBean.java:84)
         at com.theamc.userprofile.ejb.session.EJSRemoteStatelessUserOrgInfo_13c2e095.getUserOrgInfo(EJSRemoteStatelessUserOrgInfo_13c2e095.java:194)
         at com.theamc.userprofile.ejb.session._UserOrgInfo_Stub.getUserOrgInfo(_UserOrgInfo_Stub.java:273)
         at com.theamc.userprofile.servlet.UserOrgInfoServlet.createPageObject(UserOrgInfoServlet.java:243)
         at com.theamc.framework.servlet.ControllerServlet.doGet(ControllerServlet.java:221)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
         at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
    ------------------------------------------------------------------------------------- Usage -------------------------------------------------------------------------------------
    HashMap ofcRegn = new HashMap();
    AmcOffice off = null;
    AmcOfficeHome offHome = com.tgt.supply.pdd.ejb.entity.EntityHomeFactory.getAmcOfficeHome();
    ArrayList ofcColl = new ArrayList();
    Iterator iter = offHome.findAll().iterator();
    while (iter.hasNext()) {
    off = (AmcOffice) PortableRemoteObject.narrow(iter.next(), AmcOffice.class);
    ofcColl.add(new GenericCode(""+off.getOfcI(),off.getOfcN())); line 1383
    ofcRegn.put(""+off.getOfcI(),""+off.getRegnI());
    The abstract method error is thrown when off.getOfcI() is called. OfcI is the field that was changed from a primative int to an integer.
    Any help is appreciated
    Chris

    I am pretty sure. I am using RAD locally so I have deleted all the generated AccessBean and Deployment code and rerun the deploy. My concern is that these remote methods are using an external JAR file which is loaded when the server is started. I have updated this JAR files, but I am not sure if maybe they are being cached some where.

  • Multithread remote method invocation problem

    Hello all
    I have simple method that is entry point of CORBA remote invocation method
    Inside it I have some kind of Logic I need to perform the this logic is inside method and I like
    That each method that performs logic will be executed in its own thread ( from thread pool )
    this method also returns parameters by reference back to the server .
    here is example:
    public boolean RemothMethod(Object obj1,Object obj2){
         //this is where I allocate thread from thread pool to invoke the logic method
         ThreadPool.getTask(LogicMethod(Object obj1,Object obj2));
    }But the problem I have here that I can get several "RemothMethod" calls
    And the returned Parameters can be from the wrong thread call .
    My question is how can I force the right thread to return the right parameters to the "RemothMethod" call

    I have simple method that is entry point of CORBA
    remote invocation method
    Inside it I have some kind of Logic I need to perform
    the this logic is inside method and I like
    That each method that performs logic will be executed
    in its own thread ( from thread pool )Why? Each remote method is already being executed in its own thread.
    //this is where I allocate thread from thread pool
    l to invoke the logic method
    ThreadPool.getTask(LogicMethod(Object obj1,Object obj2));What are these APIs?
    But the problem I have here that I can get several
    "RemothMethod" calls
    And the returned Parameters can be from the wrong
    thread call . Something wrong with the ThreadPool API you seem to have written.
    My question is how can I force the right thread to
    return the right parameters to the "RemothMethod" callGet rid of it and execute whatever you need to execute directly in the remote method body. There is no advantage to what you're trying to do. You already have a thread per concurrent client executing the remote method; you're trying to stall those threads and create yet more threads from an evidently non-working ThreadPool. This seems quite pointless.

  • Remote method arguments (RMI)

    Configuration:
    OC4J Release 2
    JDeveloper 9i RC
    Problem:
    I get a "ClassNotFoundException" when passing objects as arguments to a remote method.
    The object being passed implements an interface. The interface extends "Serializable" and it is available on the server (where the RMI class resides).
    Appreciate any help on this.
    Thanks,
    Ranga

    Found the solution. Thanx.

  • Sending files from the remote method

    hi,
    I would like to know if we can send a File object, i.e. a file as the return value from the remote method on the server side accessed by the client.
    Actually, i want to make the files stored at the server system accessible to the client system. how to achieve it?

    java.io.File implements java.io.Serializable so the previous answer is formally incorrect. However you need to be aware that that would only send the File object, which is essentially the filename, not its contents. I'm sure that what the poster meant to say.
    You can send the contents as well in a number of ways but you have to write it by hand. There's no easy way out of the box.

  • Remote method HELP!

    Hi,
    I'm obviously missing some basic concept on how to handle
    response and return values from remote methods...
    Lets say i'm using the following on the server:
    Client.prototype.GetNumOfMessages = function(uid)
    _NumOfMessages = _ws.GetNumOfMessages(uid);
    _NumOfMessages.onResult = function(res)
    // HERE IS MY PROBLEM. How can I return the "res" value to
    the client function that invoked?
    The _ws.GetNumOfMessages(uid); is a call to a webservice,
    which works fine. If I trace the "res" I get the correct value.
    So, how can I return this value?
    The client code is:
    nc.some_function = function()
    nc.call("GetNumOfMessages",new retVal(),objUser.uid);
    function retVal()
    this.onResult(res)
    trace(res); // I Get "undefined" here...
    Please advise,
    Thanks in advance,
    Guy

    Properties properties = new Properties();
    properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "your factory");
         properties.setProperty(Context.PROVIDER_URL, "your server url");
         properties.setProperty(Context.SECURITY_PRINCIPAL, "morad");
         properties.setProperty(Context.SECURITY_CREDENTIALS, "morad");
    Context ctx = new InitialContext(properties);
    Object objref = ctx.lookup("the name of your bean);
    yourbean = (yourbean) PortableRemoteObject.narrow(objref,serviceClass);
    Also make sure you include your credentials in the deploy.properties file in your deploy directory.

  • Remote method Data

    I want to pass my heirarchical data to remoteObject Method ..
    I am using C# class library as Web service for my
    application...
    So how can I receive my heirarchical data at C# class library
    side...
    I want to process that data and want to convert it in dataset
    at class library..
    Any help ll be highly appreciable..
    Thanks in Advance..

    I am pretty sure. I am using RAD locally so I have deleted all the generated AccessBean and Deployment code and rerun the deploy. My concern is that these remote methods are using an external JAR file which is loaded when the server is started. I have updated this JAR files, but I am not sure if maybe they are being cached some where.

  • Calling ejb remote method

    SQLPLUS How to call ejb remote method in the sql plus.i am getting problem to intiallize the initial context.

    hi chidambaresh,
    you could have sent this to me directly.
    the Enumeration si an interface and so the object we get during the runtime is basically an object of some implementation of this interface.
    the Enumeration you get from HAshtable is actually Serializable.
    but the Enumeration you actually get from Vector (this is actaully an inner class of Vector viz., Vector$1) is not serializable. that is what the error you are getting.
    regards
    Srinivasan.R
    (VAMSOFT)

  • Problem calling remote method

    All the cirrus connection is working fine, I make one net  connection and get my key, then I make a net stream, do connection with  the other user, the problem happens when i send the remote method to  call on the other user application.
    In the net status (using previuos created net  connection) event handler when the status get "Success" i make one  request like this:
    myStream.send("myFunction"); (I don`t remember if is .send or .play, but i tested both for sure)
    And i have a public function called myFunction() to be activated on the other side.
    Everything looks fine, i got the connection but i can`t access the remote method myFunction().
    If needed, i can send my code for you to see.
    Sorry for my english.
    Thanks a lot for helping!

    you can only call NetStream.send() on a publishing stream (one on which you have called NetStream.publish(streamName)).  and that NetStream must either be a client-server one (if talking to FMS) or a P2P one (either a group NetStream or a 1:1 one created as NetStream.DIRECT_CONNECTIONS).
    on the subscriber side, your "myFunction" must be a function property on the subscribing NetStream.client object.

  • Hashtables and remote methods

    If
    public Hashtable remoteMethod (MyClass lattice [][], int x, double y, ...) How do I assure a proper call to and return from the former remote method ? I believe that "Hashtable"s are Serializable. Do I have to make "MyClass" extend/implement the Serializable interface to accomplish a sucessful call and return ?

    Now I know why the method failed to get invoked !
    Not only does "MyClass" have to implement the Serializable interface, but all its dependent classes have to implement the interface as well .

  • NullPointerException in persist() method

    Hi,
    I'm new using JPA (TopLinks) and have the following problem:
    In a managed bean that uses resource injection, i.e
    +@PersistentContext+
    private EntityManager em;
    when calling em.persist(object) always get a java.lang.NullPointerException, no matter what entity trying to persist.
    Somebody can help ?
    Thanks in advance
    edu

    Here is the server log :
    06/11/2007 11:59:53 com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
    INFO:
    D:/Program Files/Java/jdk1.6.0_02\bin\java
    -Dcom.sun.aas.instanceRoot=D:/Program Files/glassfish-v2-b58g/domains/domain1
    -Dcom.sun.aas.ClassPathPrefix=
    -Dcom.sun.aas.ClassPathSuffix=
    -Dcom.sun.aas.ServerClassPath=
    -Dcom.sun.aas.classloader.appserverChainJars.ee=
    -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
    -Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
    -Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
    -Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
    -Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,D:/Program Files/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,D:/Program Files/glassfish-v2-b58g/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
    -Dcom.sun.aas.classloader.serverClassPath=D:/Program Files/glassfish-v2-b58g/lib/install/applications/jmsra/imqjmsra.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/jaxm-api.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/fscontext.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/imqbroker.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/imqjmx.jar,D:/Program Files/glassfish-v2-b58g/lib/ant/lib/ant.jar,D:/Program Files/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
    -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,D:/Program Files/glassfish-v2-b58g/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
    -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,D:/Program Files/Java/jdk1.6.0_02/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/jaxm-api.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/fscontext.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/imqbroker.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/imqjmx.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,D:/Program Files/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,D:/Program Files/glassfish-v2-b58g/updatecenter/lib/updatecenter.jar,D:/Program Files/glassfish-v2-b58g/jbi/lib/jbi.jar,D:/Program Files/glassfish-v2-b58g/imq/lib/imqjmx.jar,D:/Program Files/glassfish-v2-b58g/lib/ant/lib/ant.jar,dbschema.jar
    -Dcom.sun.aas.configName=server-config
    -Dcom.sun.aas.configRoot=D:/Program Files/glassfish-v2-b58g/config
    -Dcom.sun.aas.defaultLogFile=D:/Program Files/glassfish-v2-b58g/domains/domain1/logs/server.log
    -Dcom.sun.aas.domainName=domain1
    -Dcom.sun.aas.installRoot=D:/Program Files/glassfish-v2-b58g
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -Dcom.sun.aas.promptForIdentity=true
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Dcom.sun.updatecenter.home=D:/Program Files/glassfish-v2-b58g/updatecenter
    -Ddomain.name=domain1
    -Djava.endorsed.dirs=D:/Program Files/glassfish-v2-b58g/lib/endorsed
    -Djava.ext.dirs=D:/Program Files/Java/jdk1.6.0_02/lib/ext;D:/Program Files/Java/jdk1.6.0_02/jre/lib/ext;D:/Program Files/glassfish-v2-b58g/domains/domain1/lib/ext;D:/Program Files/glassfish-v2-b58g/javadb/lib
    -Djava.library.path=D:\Program Files\glassfish-v2-b58g\lib;D:\Program Files\glassfish-v2-b58g\lib;D:\Program Files\glassfish-v2-b58g\bin;D:\Program Files\glassfish-v2-b58g\lib
    -Djava.security.auth.login.config=D:/Program Files/glassfish-v2-b58g/domains/domain1/config/login.conf
    -Djava.security.policy=D:/Program Files/glassfish-v2-b58g/domains/domain1/config/server.policy
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Djavax.net.ssl.keyStore=D:/Program Files/glassfish-v2-b58g/domains/domain1/config/keystore.jks
    -Djavax.net.ssl.trustStore=D:/Program Files/glassfish-v2-b58g/domains/domain1/config/cacerts.jks
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Djmx.invoke.getters=true
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -client
    -XX:+UnlockDiagnosticVMOptions
    -XX:MaxPermSize=192m
    -Xmx512m
    -XX:NewRatio=2
    -XX:+LogVMOutput
    -XX:LogFile=D:/Program Files/glassfish-v2-b58g/domains/domain1/logs/jvm.log
    -cp
    D:/Program Files/glassfish-v2-b58g/lib/jhall.jar;D:\Program Files\glassfish-v2-b58g\lib\appserv-launch.jar
    com.sun.enterprise.server.PELaunch
    start
    Starting Sun Java System Application Server 9.1 (build b58g-fcs) ...
    MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
    CORE5098: AS Socket Service Initialization has been completed.
    CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_02] from [Sun Microsystems Inc.]
    SEC1002: Security Manager is OFF.
    D:/Program Files/glassfish-v2-b58g/domains/domain1/config/.__com_sun_appserv_pid
    ADM0001:SunoneInterceptor is now enabled
    SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
    WEB0114: SSO is disabled in virtual server [server]
    WEB0114: SSO is disabled in virtual server [__asadmin]
    ADM1079: Initialization of AMX MBeans started
    ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://t0002038990.telecom.arg.telecom.com.ar:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
    ADM1506: Status of Standard JMX Connector: Active = [true]
    WEB0302: Starting Sun-Java-System/Application-Server.
    JBIFW0010: JBI framework ready to accept requests.
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
    naming.bind
    Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/BizChallenge'
    SMGT0007: Self Management Rules service is enabled
    Application server startup complete.
    deployed with moduleid = BizChallenge
    naming.bind
    Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/BizChallenge'
    java.lang.NullPointerException
    javax.faces.el.EvaluationException: java.lang.NullPointerException
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
    at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
    at javax.faces.component.UICommand.broadcast(UICommand.java:383)
    at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: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.java: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:271)
    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:270)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
    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)
    Caused by: java.lang.NullPointerException
    at bizchallenge.FormAdmin.persist(FormAdmin.java:32)
    at bizchallenge.FormAdmin.saveLoanForm(FormAdmin.java:38)
    at bizchallenge.BankLoan.btnEnviar_action(BankLoan.java:379)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
    ... 45 more

  • Java.lang.NullPointerException in checkTransaction method

    EJB2.1 / weblogic 10.3
    I get en nullpointerexception in a weblogic generated class.
    The method in the generated class is :
    private void checkTransaction()
    weblogic.transaction.Transaction tx = (weblogic.transaction.Transaction)
    TransactionHelper.getTransactionHelper().getTransaction();
    if ((tx == null) && (__WL_createTxId == null))
    return;
    else if ((tx == null) && (__WL_createTxId != null))
    if (! true) {
    Loggable l1 = EJBLogger.logaccessedCmrCollectionInDifferentTransactionLoggable("CustomOffice", "officehours");
    throw new IllegalStateException(l1.getMessage());
    else if (!tx.getXid().equals(__WL_createTxId) && ! true ) {
    Loggable l1 = EJBLogger.logaccessedCmrCollectionInDifferentTransactionLoggable("CustomOffice", "officehours");
    throw new IllegalStateException(l1.getMessage());
    I get the nullpointer at the line
    else if (!tx.getXid().equals(__WL_createTxId) && ! true ) {
    I have an EntityBean named CustomOffice, this bean has a collection of Officehours entitybeans.
    When I call ( from a SessionBean with @ejb.transaction type="Supports" )
    Iterator iter = customOfficeLocal.getOfficehours().iterator();
    I get the NullPointeException when not using an transaction, when using a transaction it works.
    But I would llike to call this witout an transaction.

    The method checkTransaction is in a weblogic generated class.
    java.lang.NullPointerException
         at dk.steria.exp.midtier.model.customs.ejb.CustomOffice_up2n56__WebLogic_CMP_RDBMS_officehours_Set.checkTransaction(CustomOffice_up2n56__WebLogic_CMP_RDBMS_officehours_Set.java:644)
         at dk.steria.exp.midtier.model.customs.ejb.CustomOffice_up2n56__WebLogic_CMP_RDBMS_officehours_Set.iterator(CustomOffice_up2n56__WebLogic_CMP_RDBMS_officehours_Set.java:186)
         at dk.steria.exp.midtier.tools.factory.DeclarationFactory.createOfficeHoursTOList(DeclarationFactory.java:1443)
         at dk.steria.exp.midtier.tools.factory.DeclarationFactory.createCustomOfficeTO(DeclarationFactory.java:1415)
    The error comes when I call
    Iterator iter = customOfficeLocal.getOfficehours().iterator();
    in my code.
    I guess it is because I am using a EJB 2.1 entitybean.... that needs a transaction ??????

Maybe you are looking for

  • Mac Mini and Intensity Shuttle

    I'm thinking of getting the Intensity Shuttle to record/capture gameplay footage from the PS4. The only problem is that I have limited space and becasue of this limitation, I was wondering if I can set up the Mini, Intensity Shuttle, and PS4 all to o

  • Project Systems - Report on WBS and Settlement recievers

    Need help in searching for any PS report wherein I can get list of WBS elements along with the settlement receivers defined in the settlement rule. Or else how can we get such a report.

  • CURRENT_DATE  in EclipseLink/JPA

    When I use CURRENT_DATE in JPA queries for date comparisions, it seems to be taking time into consideration as well. So when I comapre a date with CURRENT_DATE, even though the date I am comparing is today's date, the results state that CURRENT_DATE

  • HOW CAN I STREAM I TUNES PURCHASED MOVIES TO A GM FACTORY DVD SYSTEM WITH RCA IN

    Having trouble finding away to stream i tunes purchased movies to a gm factory dvd system that has rca in only. I have the lightning cable to hdmi but can not find any reliable info on a way to convert to analog out (rca) I also own the apple tv2 but

  • What files need to be deleted to start fresh with iCal?

    Friends: What files need to be deleted from places like the library to start with a fresh blank copy of iCal? Thanks amigos! Migs