Errors when writing ejb

Hi all,
I am writing struts and EJB using Sun one App and Studio. I have written a order cmp and a ordermanager session bean. I can add and get the records but can't update the records. It throw an exception like this:
Some remote or transactional roll back exception occurred
com.sun.jdo.api.persistence.support.JDOFatalInternalException: Got an unknown exception.
NestedException: java.lang.NullPointerException
at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updatePersistent(SQLStateManager.java:1012)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:1251)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.notifyBeforeCompletion(TransactionImpl.java:1115)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.commitBefore(TransactionImpl.java:743)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.beforeCompletion(TransactionImpl.java:646)
at com.sun.ejb.containers.ContainerSynchronization.beforeCompletion(ContainerSynchronization.java:105)
at com.sun.jts.jta.SynchronizationImpl.before_completion(SynchronizationImpl.java:55)
at com.sun.jts.CosTransactions.RegisteredSyncs.distributeBefore(RegisteredSyncs.java:125)
at com.sun.jts.CosTransactions.TopCoordinator.beforeCompletion(TopCoordinator.java:2380)
at com.sun.jts.CosTransactions.CoordinatorTerm.commit(CoordinatorTerm.java:245)
at com.sun.jts.CosTransactions.TerminatorImpl.commit(TerminatorImpl.java:214)
at com.sun.jts.CosTransactions.CurrentImpl.commit(CurrentImpl.java:590)
at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:258)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.commit(J2EETransactionManagerImpl.java:839)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:336)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1786)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1599)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:510)
at hk.com.myer.sts.salesOrder.ejb.session.OrderHeaderManagerBean_EJBObjectImpl.setOrderHeader(OrderHeaderManagerBean_EJBObjectImpl.java:59)
at hk.com.myer.sts.salesOrder.ejb.session._OrderHeaderManager_Stub.setOrderHeader(Unknown Source)
at hk.com.myer.sts.so.action.OrderHeaderAction.perform(OrderHeaderAction.java:43)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
can anyone tell me what's the cause of this error? thx a lot.

Hi,
I'm experiencing the same strange behavior. On some CMPs I can insert, update, delete but there are some CMPs that I can only insert but not update or delete. I get the same exact error message too and since it refers to an unknown exception I have no idea where to start tracking this down. Anybody have any ideas?
thanks,
william
Hi all,
I am writing struts and EJB using Sun one App
one App and Studio. I have written a order cmp and a
ordermanager session bean. I can add and get the
records but can't update the records. It throw an
exception like this:
Some remote or transactional roll back exception
occurred
com.sun.jdo.api.persistence.support.JDOFatalInternalEx
eption: Got an unknown exception.
NestedException: java.lang.NullPointerException
at
com.sun.jdo.spi.persistence.support.sqlstore.SQLStateM
nager.updatePersistent(SQLStateManager.java:1012)
at
com.sun.jdo.spi.persistence.support.sqlstore.impl.Pers
stenceManagerImpl.beforeCompletion(PersistenceManagerIm
l.java:1251)
at
com.sun.jdo.spi.persistence.support.sqlstore.impl.Tran
actionImpl.notifyBeforeCompletion(TransactionImpl.java:
115)
at
com.sun.jdo.spi.persistence.support.sqlstore.impl.Tran
actionImpl.commitBefore(TransactionImpl.java:743)
at
com.sun.jdo.spi.persistence.support.sqlstore.impl.Tran
actionImpl.beforeCompletion(TransactionImpl.java:646)
at
com.sun.ejb.containers.ContainerSynchronization.before
ompletion(ContainerSynchronization.java:105)
at
com.sun.jts.jta.SynchronizationImpl.before_completion(
ynchronizationImpl.java:55)
at
com.sun.jts.CosTransactions.RegisteredSyncs.distribute
efore(RegisteredSyncs.java:125)
at
com.sun.jts.CosTransactions.TopCoordinator.beforeCompl
tion(TopCoordinator.java:2380)
at
com.sun.jts.CosTransactions.CoordinatorTerm.commit(Coo
dinatorTerm.java:245)
at
com.sun.jts.CosTransactions.TerminatorImpl.commit(Term
natorImpl.java:214)
at
com.sun.jts.CosTransactions.CurrentImpl.commit(Current
mpl.java:590)
at
com.sun.jts.jta.TransactionManagerImpl.commit(Transact
onManagerImpl.java:258)
at
com.sun.enterprise.distributedtx.J2EETransactionManage
Impl.commit(J2EETransactionManagerImpl.java:839)
at
com.sun.enterprise.distributedtx.J2EETransactionManage
Opt.commit(J2EETransactionManagerOpt.java:336)
at
com.sun.ejb.containers.BaseContainer.completeNewTx(Bas
Container.java:1786)
at
com.sun.ejb.containers.BaseContainer.postInvokeTx(Base
ontainer.java:1599)
at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseCo
tainer.java:510)
at
hk.com.myer.sts.salesOrder.ejb.session.OrderHeaderMana
erBean_EJBObjectImpl.setOrderHeader(OrderHeaderManagerB
an_EJBObjectImpl.java:59)
at
hk.com.myer.sts.salesOrder.ejb.session._OrderHeaderMan
ger_Stub.setOrderHeader(Unknown Source)
at
hk.com.myer.sts.so.action.OrderHeaderAction.perform(Or
erHeaderAction.java:43)
at
org.apache.struts.action.ActionServlet.processActionPe
form(ActionServlet.java:1787)
at
org.apache.struts.action.ActionServlet.process(ActionS
rvlet.java:1586)
at
org.apache.struts.action.ActionServlet.doPost(ActionSe
vlet.java:510)
at
javax.servlet.http.HttpServlet.service(HttpServlet.jav
:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.jav
:853)
at
org.apache.catalina.core.StandardWrapperValve.invokeSe
vletService(StandardWrapperValve.java:720)
at
org.apache.catalina.core.StandardWrapperValve.access$0
0(StandardWrapperValve.java:118)
at
org.apache.catalina.core.StandardWrapperValve$1.run(St
ndardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.catalina.core.StandardWrapperValve.invoke(S
andardWrapperValve.java:274)
at
org.apache.catalina.core.StandardPipeline.invoke(Stand
rdPipeline.java:505)
at
org.apache.catalina.core.StandardContextValve.invoke(S
andardContextValve.java:212)
at
org.apache.catalina.core.StandardPipeline.invoke(Stand
rdPipeline.java:505)
at
org.apache.catalina.core.StandardHostValve.invoke(Stan
ardHostValve.java:203)
at
org.apache.catalina.core.StandardPipeline.invoke(Stand
rdPipeline.java:505)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.pro
ess(NSAPIProcessor.java:157)
at
com.iplanet.ias.web.WebContainer.service(WebContainer.
ava:598)
can anyone tell me what's the cause of this error? thx
a lot.

Similar Messages

  • Adobe Media Encoder (Error compiling movie) Unknown error when writing to Isilon OneFS 6.5.5.18

    Adobe Media Encoder (Error compiling movie) Unknown error when writing to Isilon OneFS 6.5.5.18 while using Adobe Premiere Pro.
    Process:         Adobe Premiere Pro CC 2014
    Path: /Applications/Adobe Premiere Pro CC 2014/Adobe Premiere Pro CC 2014.app/Contents/MacOS/Adobe Premiere Pro CC 2014
    Identifier: com.adobe.AdobePremierePro
    Version:         8.1.0 (8.1.0)
    Code Type: X86-64 (Native)
    Parent Process: launchd [2538]
    Responsible:     Adobe Premiere Pro CC 2014
    Date/Time: 2015-01-06 14:04:23.500 -0700
    OS Version:      Mac OS X 10.9.2 (13C64)
    Report Version:  11
    Crashed Thread: 55  Dispatch queue: com.apple.root.default-priority
    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
    Customer created test export with 777 permissions and set mount parameters to the following:
    mount_nfs -o vers=3,tcp,rdirplus,intr,nolocks,async,rsize=32768,wsize=32768
      -- Original mount options:
         General mount flags: 0x40 async
         NFS parameters: vers=3,tcp,nolocks,rsize=32768,wsize=32768,rdirplus
      -- Current mount parameters:
         General mount flags: 0x4000058 async,nodev,nosuid multilabel
         NFS parameters: vers=3,tcp,port=2049,nomntudp,hard,nointr,noresvport,negnamecache,callumnt,nolocks,quota, rsize=32768,wsize=32768,readahead=16,dsize=32768,rdirplus,nodumbtimr,timeo=10,maxgroups=16 ,acregmin=5,acregmax=60,acdirmin=5,acdirmax=60,nomutejukebox,nonfc,sec=sys
    The pcap shows once the movie is created a lockup call is responded from Isilon with Error: NFS3ERR_NOENT
    478         V3 CREATE Call (Reply In 479), DH: 0xea5f731c/QBRSN-0-0-1.mov Mode: UNCHECKED
    479         V3 CREATE Reply (Call In 478)
    484         V3 LOOKUP Call (Reply In 485), DH: 0xea5f731c/._QBRSN-0-0-1.mov
    485        V3 LOOKUP Reply (Call In 484) Error: NFS3ERR_NOENT
    V3 LOOKUP Reply (Call In ....) Error: NFS3ERR_NOENT  -   This is by design of OneFS, we coalesce files and then flush them out to disk which is why the commit time is accurate but the file is not immediately available. however when an async option is used within the mount options this should be avoided if writing asynchronously to the cluster.  Has anyone else seen this behavior lately? (current workaround is to store locally and transfer to the cluster via Finder)

    That error can happen for many reasons...one of the reasons that I occassionaly get it is because I try exporting a movie to an external drive that has been formated in the old FAT32 instead of the NTSF standard.  FAT32 only allows for file sizes up to 2 gigs.  And as soon as it reaches that...I would get that error.  I don't know if that is why you are getting that error...but it would be easy to check.  1) are you generating a file that is over 2 gigs?  2) is your drive that you are exporting to FAT 32 (just right click the drive in My Computer and select "properties" then just look for what it says next to "file system".

  • Errors when writing metadata to files on Windows Server

    Good day!
    I have an iMac running OSX 10.9 (Maverick) and Lightroom 5.2.
    My catalog is on the local iMac drive, and the images are on SMB shared drive (handled by Windows 2012 server).
    I decided to do the final layout of my album using InDesign, and for that I needed to access to images using Bridge. So selected all the images (the rated once...) and issue a Metadata/Save command.
    The system came back with errors on many of the files (such as Photos are read only, and unknown errors).
    Retrying to save the metadata on image that was flagged with an error usually (but not always) worked.
    I tried to select save the metadata for few (6) images in a time, many times it was ok, but sometimes, one or two of them failed (and retrying again usually solved the problem).
    It looks to me like a timing related issue.
    Any ideas?
    (After spending about an hour on this, I have exported the images to my local drive...). In general I don't have similar problems with other apps.
    Any ideas?
    Yuval

    I Yuval
    I'm experiencing more or less the same behavior (see Read-only error when writing metadata to file over network (Synology DS1315+ using AFP) ). For me however, the problem is more pronounced if I use the AFP protocol and is better (I think as you described) if I use SMB (all done on a Synology DS1315+). With SMB it most often works but in very rare cases I also get the "read only" message!
    Do you have solution to this? Or are you stuck as I am?
    Cheers, Chris

  • Error when Writing Metadata to Files in Bridge (Mac) but not in Bridge (PC)

    We get an error when writing metadata to files in Bridge (Mac) but not in Bridge (PC). In the same drive and folder, the PC can successfully write a keyword to a file on the PC, where the Mac returns an error. I have researched this at the Adobe Knowledgebase, but their answer seemed to indicate it was a global issue, and we don't see that behavior on the PC.
    The client is a Mac of course, and the server volume is a Windows share volume. The Mac is bound to AD, and the domain\username and username formats have both been tried when logging in, but you receive the error in both.
    Any help would be appreciated.
    Thanks!
    Rich Oliver

    Hi, I'm having the same problem using FreeNAS (which uses Samba and Netatalk in the backend), but I tried with both AFP and SMB on Mavericks and Yosemite, I still have the same issue.  I think it might be a timing issue with how lightroom interact with a slower write delay using network shares.  I suggest you also chime into this thread:  Lightroom 5 can't write metadata to DNG files   I really hope this is resolved as this is impacting my productivity as I moved my workflow to my Macbook with a shared NAS.

  • Error when writing to interface table for HR

    We recently did a client copy from Production to our User Testing client. User was trying to enter time via transaction CAT2 but received the following message when attempting to save the timesheet:
    "Error when writing to interface table for HR"
    Does anyone have advice on how to resolve this issue?
    Thanks as always!

    Hi,
    We have the same problem.
    We tried to add many records to HR via a job but it result with en error message LR036 (Error when writing to interface table for HR)
    Did you find a solution since your problem appear ?

  • Itunes 9.2.1.5 "Error when writing file C:\program files\apple software....

    Got an error message when installing itues 9.2.1.5 "Error when writing file C:\program files\apple software update\softwareupdate.exe you do not have admin right to read/write the menu." "寫入檔案時發生錯誤 C:\program files\apple software update\softwareupdate.exe 你沒有權限存取目錄"
    There is no "apple software update" folder in my C:\program files\
    I tried to uninstalled all apple related software, restart the computer and reinstall the itunes, I still get this error message.
    It appears that the installation of quicktime was successful.

    After the last update I get "QuickTime was not found" Error I have uninstalled and re-installed itunes 9.2.1.5. several times but the problem persists

  • Error when writing the trace in ST01

    Hi Gurus,
    Good day!
    Please advise on how can I resolve this issue in ST01. I'm getting an error "Error when writing the trace No such file or directory".
    Appreciate your help.
    Cheers,
    Virgilio

    Hi,
    Check this link
    http://help.sap.com/saphelp_nw04/helpdata/EN/ae/ed0ad513d0074e944879f05ef318d5/content.htm
    Regards,
    Renu

  • Error when writing to the Internal Buffer-runtime error during querydisplay

    Hi
              I am working in BW 3.5. I am trying to run a query in BEx Analyzer but I am getting the following Error
    Error when writing in the Internal Buffer see OSS note 156957
    I tried for the note but I am not getting relevant information.
    Please let me know what to do.
    Thanks,
    Padma

    Hi,
    please apply the note 1614788. After note implementation, you need to set parameter RSR_HIER_THRESHOLD_EXPORTDB in table RSADMIN via report SAP_RSADMIN_MAINTAIN in transaction SE38.
    If you set this parameter to value 50.000 for example, all hierarchies with more than 50.000 nodes will be buffered in the database instead of using the export/import buffer.
    To find out the current size of a hierarchy, goto the hierarchy maintenance in transaction RSH1 and copy the hierarchie ID from the header data. With this key you can goto transaction SE16 and select table RSRHIEDIR_OLAP (Field HIEID is the hierarchy ID).
    It should resolved your issue.
    Thanks,
    Venkat

  • I/O Error when writing access Log buffer to file. error number: 28

    Hi,
    Oracle OracleAS Web Cache 10.1.2.3.0, Build 10.1.2.3.0 080201 is writing events like this:
    [alert 13215] I/O Error when writing access Log buffer to file. error number: 28
    I've looked for this alert and i've found this description:
    WXE-13215 I/O Error when writing access Log buffer to file. error number: %d
    Severity: alert
    Cause: I/O error happened when OracleAS Web Cache tried to write to the access log file.
    Action: Check the status of access log file. For example, see if the disk is full
    Anybody knows what "error number: 28" stands for? The logs are sended to other server and it seems that the disk size is ok.
    thanks!

    I tested again...it seems LabVIEW doesn't like the way I wrote the measurement files. I attached a set of VIs (ZIP-file) to give you a clue how it was done. When I try to save and read a file containing just plain DBLs from a 1D-Array (see attached file generating VI) it works perfectly well for large file sizes.
    So there might get something messed up by the way LabVIEW saved the measured data. You'll notice, that I (accidentally) left the "prepend array string size" input of "write to binary file" function unwired which means that the size information will be written as a type of header. Maybe this is the reason that it doesn't work as expected...
    Attachments:
    VibrationMeasurement.zip ‏76 KB
    generate_test_bin_data.vi ‏12 KB

  • Corba error when accessing EJB on OAS 4.0.8

    When trying to access an EJB the Context lookup fails with the following error:
    org.omg.CORBA.COMM_FAILURE:
    at oracle.oas.orb.CORBA.Request._invoke(Compiled Code)
    at oracle.oas.orb.CORBA.Delegate._invoke(Compiled Code)
    at org.omg.CORBA.portable.ObjectImpl._invoke(Compiled Code)
    at oracle.oas.orb.CORBA.Delegate.is_a(Compiled Code)
    at org.omg.CORBA.portable.ObjectImpl._is_a(Compiled Code)
    at oracle.oas.jndi.oas.BeanInitialContext.resolve(Compiled Code)
    at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.BeanInitialContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.WrapperContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
    at javax.naming.InitialContext.lookup(Compiled Code)
    at Demo.main(Compiled Code)
    I get this error when trying to use an EJB from a client computer. The EJB works when accessing it from the same computer where OAS is running. Any ideas?

    HI, I have the same problem that you had, maybe you have solve it now. If so, can you tell me how to manage through this situation.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jtanner1:
    When trying to access an EJB the Context lookup fails with the following error:
    org.omg.CORBA.COMM_FAILURE:
    at oracle.oas.orb.CORBA.Request._invoke(Compiled Code)
    at oracle.oas.orb.CORBA.Delegate._invoke(Compiled Code)
    at org.omg.CORBA.portable.ObjectImpl._invoke(Compiled Code)
    at oracle.oas.orb.CORBA.Delegate.is_a(Compiled Code)
    at org.omg.CORBA.portable.ObjectImpl._is_a(Compiled Code)
    at oracle.oas.jndi.oas.BeanInitialContext.resolve(Compiled Code)
    at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.BeanInitialContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.WrapperContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
    at javax.naming.InitialContext.lookup(Compiled Code)
    at Demo.main(Compiled Code)
    I get this error when trying to use an EJB from a client computer. The EJB works when accessing it from the same computer where OAS is running. Any ideas? <HR></BLOCKQUOTE>
    null

  • Invalid change to class error when deploying EJB

    We have EJBs that were built by Webgain Visual Cafe and successfully deploy
    to WLS 5.1. We then use the WLE EJB Deployer Tool to build WLE container
    classes and deploy the same EJBs in WLE 5.1.
    One EJB does not deploy in WLE. The ULOG error message is:
    133929.EA-LAWSTUC!JavaServer.517: main: IJENGINE_CAT:150: ERROR: Invalid
    change to class service.Request
    133929.EA-LAWSTUC!JavaServer.517: main: EJB_CAT:29: ERROR: While deploying
    jar ServiceEJB : com.beasys.weblogic.classloader.RedeploymentException:
    ERROR: Invalid change to class service.Request
    133929.EA-LAWSTUC!JavaServer.517: Finalizer: IJENGINE_CAT:152: INFO: Closing
    jar C:\aj\ServiceEJB_WLE.jar
    Does anyone know what can cause an "invalid change to class" error when
    deploying to WLE 5.1? Especially since the EJB deploys successfully in
    WLS.
    Carl Lawstuen

    Reason: database keeps a reference of the class in JAVA$CLASS$MD5$TABLE table. This table keeps a refrence to all java classes loaded in database, and is present in each schema you deploy classes. That's the reason why if you change the application module name, you can load this classes. It instead keeps a reference if you use DROP JAVA CLASS command to drop a java class from de database. Use DROP JAVA command to clear the reference of the dropped classes when dropping it.
    You can see this table as a class dictionary of the database, and you don't have to handle this records manually.

  • Error when One EJB calls anothe EJB

    Hi,
    I got the following error when I use one EJB call another EJB in OAS 4.0.8.1, the code is developed in JDeveloper 3.0/Win NT 4.0/SP5.
    Can anyone give me some ideas? or is there any samples in this case?
    Thanks a lot!
    Creating an initial context
    Looking for the EJB published as 'APP/APPEJB'
    Creating a new EJB instance
    Calling APPEJB methods...
    CORBA: org.omg.CORBA.BAD_OPERATION: ; nested exception is:
    org.omg.CORBA.BAD_OPERATION:
    java.rmi.ServerException: CORBA: org.omg.CORBA.BAD_OPERATION: ; nested exception is:
    org.omg.CORBA.BAD_OPERATION:
    at javax.rmi.oas.corba.CorbaRemoteExceptionHelperValue.OBVObjFrom(Compiled Code)
    at TwoEJB._stub_APPEJB.callEJBMapping(Compiled Code)
    at TwoEJB.TwoEJBClient.main(Compiled Code)
    null

    Home handle is an object that identifies an enterprise bean. A client may serialize the handle, and then later deserialize it to obtain a reference to the enterprise bean.
    The javax.ejb.HomeHandle is similar to javax.ejb.Handle. Just as the Handle is used to store and retrieve reference to EJB objects, the HomeHandle is used to store and retrieve remote references to EJB homes. HomeHandle can be stored and later used to access an EJB home remote refrence the same way that a Handle can be serialized and later used to access an EJB object's remoe reference.
    import java.io.*;
    import javax.ejb.EJBHome;
    import javax.ejb.HomeHandle;
    public class WorkingWithEJBHandles {
    public static void main( String[] args ) throws Exception {
    EJBHome aHome = null;
    // get hold of a home interface
    HomeHandle handle = aHome.getHomeHandle();
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    ObjectOutputStream oos = new ObjectOutputStream( bos );
    oos.writeObject( handle );
    byte[] handleAsBytes = bos.toByteArray();
    // store in the database, on file. howwever you want
    FileInputStream fis = new FileInputStream( "fileobj" );
    ObjectInputStream ois = new ObjectInputStream( fis );
    HomeHandle theHandle = (HomeHandle) ois.readObject();
    // get back the EJBHome from the HomeHandle
    aHome = theHandle.getEJBHome();
    // the same kind of logic also holds for EJBHandles, as well as
    // HomeHandles
    Transfer Object is a Design pattern. Refer to Core J2EE Design Pattern.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html
    Rgds,
    Seetesh

  • Error when deploying ejb 3 in weblogic10

    Hi,
    I'm using the EJB3.0 in weblogic10, just as the following:
    remote interface:
    com.test.intf
    public interface Test{
    public void test();
    and the impl:
    com.test.impl
    @stateless
    @Remote(Test.class)
    public class TestBean implements Test{
    public void test{...}
    Then I build an ear which including the ejb jar:
    Test.ear
    |__ejb.jar (including the Test and the TestBean)
    |
    |__Meta-Inf
    And when I deploy the Test.jar to the weblogic 10, the following error occurs:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Unable to load clas
    s com.test.impl.TestBean_3u7muo_EmergencyServiceF
    uncImpl ]
    at weblogic.ejb.container.deployer.Ejb3SessionBeanInfoImpl.prepare(Ejb3S
    essionBeanInfoImpl.java:319)
    at weblogic.ejb.container.deployer.EJBDeployer.setupBeanInfos(EJBDeploye
    r.java:914)
    at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:
    1188)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:425)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:58)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:42)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.ja
    va:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.j
    ava:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.jav
    a:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(Deployme
    ntStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(App
    ContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.cr
    eateAndPrepareContainer(ActivateOperation.java:197)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.do
    Prepare(ActivateOperation.java:89)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.pr
    epare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploym
    entPrepare(DeploymentManager.java:723)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploy
    mentList(DeploymentManager.java:1190)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare
    (DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.pre
    pare(DeploymentServiceDispatcher.java:159)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassNotFoundException: com.oracle.ocrt.service.impl.Emerge
    ncyServiceFuncBean_3u7muo_TestIntf
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
    ClassLoader.java:283)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
    Loader.java:256)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
    Loader.java:176)
    at weblogic.ejb.container.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.j
    ava:540)
    at weblogic.ejb.container.deployer.Ejb3SessionBeanInfoImpl.prepare(Ejb3S
    essionBeanInfoImpl.java:310)
    ... 27 more
    <2008-9-26 下午08时35分07秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurr
    ed in the execution of deployment request with ID '1222432506169' for task '0'.
    Error is: 'weblogic.application.ModuleException: Exception preparing module: EJB
    Module(test.jar)
    Unable to deploy EJB: TestBean from test.jar:
    ***** ASSERTION FAILED *****[ Unable to load class com.test.impl.TestBean_3u7muo_TestImpl ]
    weblogic.application.ModuleException: Exception preparing module: EJBModule(test.jar)
    Unable to deploy EJB: TestBean from test.jar:
    ***** ASSERTION FAILED *****[ Unable to load class com.test.impl.TestBean_3u7muo_TestImpl ]
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
    What is the problem? And What can I do?
    BTW, if I change the @Remote to @Local, I can deploy the ejb successfully.
    In addition, Who knows how to access the ejb3.0 from a standalone client just like access the EJB2.0:
    properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    properties.put(Context.PROVIDER_URL, "t3://localhost:7001");
    Context cont = new InitialContext(properties);
    Obj ref = cont.lookup("???"); //--------------------> What should I write here???
    Thanks!

    Hi,
    It's not easy to tell what's wrong with your example.
    Maybe you could send me a zip and I'll check when I have some time.
    By the way, you're asking a question about the lookup of an EJB3, I wrote an article that covers that topic.
    It should give you some interesting input.
    http://m-button.blogspot.com/2008/07/reminder-on-how-to-use-ejb3-with.html
    Regards.

  • JNDI Error  when calling ejb

    I've create a ear file include a war and jar
    when I call the servlet that call a ejb
    the following error prompt out:
    javax.naming.NameNotFoundException: Unable to resolve gendocnum. Resolved:
    '' Unresolved:'gendocnum' ; remaining name ''
    <<no stack trace available>>
    [2001/04/09 12:14:27, 0] nmbd/nmbd_namequery.c:query_name_response(93)
    query_name_response: Multiple (2) responses received for a query on subnet
    192.168.1.222 for name EDP<1d>. This response was from IP 192.168.1.134
    Please help
    Regards,
    Angel
    p.s. 'gendocnum' is the JNDI name of ejb

    It seems that u need a ejbPostCreate with the same parameters as ejbCreate:
    public Integer ejbCreate(Integer id) {
    setId(id);
    return id;
    public void ejbPostCreate(Integer id) {
    }

  • Error when building EJB 2.1 project in weblogic 10

    Hi,
    I am using weblogic 10 Application Server and Weblogic Workshop (Eclipse) for development. When i build my EJB 2.1 project i am getting this error
    "Error during deployment descriptor generation: failed to collect sources.: null"
    Please help me in resolving this issue.
    Regards,
    Pradeep D

    Pradeep,
    This forum is for a different product. Please re-post your question on Workshop's forum (Workshop Make sure to include the version of Workshop that you are using. You can find this information under help -> about. Also take a look at the .log file in your workspace's .metadata directory. Post any stack traces that you find in there.
    Thanks,
    - Konstantin

Maybe you are looking for

  • Text options on Treo Pro.

    Hi everybody. So I have the Treo pro, and I was just wondering, in the text conversations, is there any way to change the conversation display from showing "ME" to my actual name? I like it to say 'Tiffany' instead. I know I was able to change it on

  • Software not installing

    Nearly every time I've tried to install software that I've packaged using the Creative Cloud for Enterprise Packager, the install fails. No warning, no error message, nothing in the event logs, nothing. It happens whether I run the Windows Installer

  • Best Practice for using JSP in OBPM 10gr3

    Hi Guys, We are using JSP for UI in our project. We are new to the OBPM. wants to clarify some things. 1. is it good to have jsp in screenflows or if we can manage it outside BPM also with same effect 2. How is the BPM database structured. Is the PAP

  • How can I put different clips in the "DropZone"

    Hey, Just wondering how can I put different scenes in dropzones of a customized template in Idvd.... I imported my film from IMOVIE its' not saved as a movie format such as .mov or .avi it's saved as a project file... so I dont know how I would be ab

  • Low battery warning when battery full

    This only happened to me this one time, but I have my iphone plugged in and the battery icon says it is fully charged, but I received a "low battery" warning. Any thoughts as to why this may have happened? Thanks!