Error trying to deserialize EJB HomeHandle and EJB Handle classes

I get the following exception when I try to deserialize both a javax.ejb.HomeHandle and a javax.ejb.Handle.  I serialize and immediately deserialize within the same application using the same classloader so there are not alot of external variables that may cause the problem.  Any ideas on why I can't deserialize an ejb handle?
The reason I am doing this is to try and get around the need to reference another application just to call a remote method in that application.  I want to serialize the remote home interface handle or the remote component interface handle and deserialize it using my local application classloader.  Does anybody know if this would work?
#1#java.lang.ClassNotFoundException: Loader /L_service:ejb could not load class turtle.registry.SBRegistryRemoteHome
     at com.sap.vmc.core.impl.sapjvm.sharing.NativeSharedClassLoaderImpl.loadClass(NativeSharedClassLoaderImpl.java:609)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:333)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:242)
     at java.io.ObjectInputStream.resolveProxyClass(ObjectInputStream.java:656)
     at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1499)
     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1462)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1698)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
     at com.sap.engine.services.ejb3.runtime.impl.LocalHandleDelegate.readStub(LocalHandleDelegate.java:177)
     at com.sap.engine.services.ejb3.runtime.impl.ServerHandleDelegate.readStub(ServerHandleDelegate.java:64)
     at com.sap.engine.services.ejb3.runtime.impl.LocalHandleDelegate.readEJBHome(LocalHandleDelegate.java:101)
     at com.sap.engine.services.ejb3.runtime.impl.StatelessHomeHandleImpl.readObject(StatelessHomeHandleImpl.java:73)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1818)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1718)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
     at turtle.common.util.SerializationHelper.convertObject(SerializationHelper.java:43)
     at turtle.common.server.connect.RemoteFactory.getRemoteSAPWAS(RemoteFactory.java:206)
     at turtle.common.server.connect.RemoteFactory.getRemote(RemoteFactory.java:46)
     at turtle.common.server.connect.RemoteProxyFactory.getRemote(RemoteProxyFactory.java:99)
     at turtle.common.server.connect.RemoteProxyFactory.create(RemoteProxyFactory.java:91)
     at turtle.common.server.connect.RemoteProxyFactory.createProxy(RemoteProxyFactory.java:52)
     at turtle.server.runtime.registry.RegistryFacade.connectToRegistry(RegistryFacade.java:932)
     at turtle.server.runtime.registry.RegistryFacade.getGenericRegistryBI(RegistryFacade.java:987)
     at turtle.server.runtime.registry.RegistryFacade.unbindObjectsInProject(RegistryFacade.java:857)
     at turtle.registry.ProjectRegistrar$1$1.run(ProjectRegistrar.java:130)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAs(Subject.java:337)
     at turtle.common.security.auth.AuthenticatorBase.doAs(AuthenticatorBase.java:387)
     at turtle.registry.ProjectRegistrar$1.run(ProjectRegistrar.java:172)
     at java.util.TimerThread.mainLoop(Timer.java:512)
     at java.util.TimerThread.run(Timer.java:462)

Has anyone been able to get this to work?  Or can anyone confirm that this is a bug?
As a simpler test, I modified the UserManagementBean of the Car Rental example application.  I added some code in the register method that serializes and deserializes the Handle object obtained from the SessionContext.getEJBObject().getHandle() method.  The serialization completes without issue.  However, I get the same error when trying to deserialize the Handle object:
java.lang.ClassNotFoundException: Loader /L_service:ejb could not load class com.sap.engine.examples.epf.ejb.controller.customer.UserManagementHome
     at com.sap.vmc.core.impl.sapjvm.sharing.NativeSharedClassLoaderImpl.loadClass(NativeSharedClassLoaderImpl.java:609)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:333)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:242)
     at java.io.ObjectInputStream.resolveProxyClass(ObjectInputStream.java:656)
     at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1499)
     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1462)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1698)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
     at com.sap.engine.services.ejb3.runtime.impl.LocalHandleDelegate.readStub(LocalHandleDelegate.java:177)
     at com.sap.engine.services.ejb3.runtime.impl.ServerHandleDelegate.readStub(ServerHandleDelegate.java:64)
     at com.sap.engine.services.ejb3.runtime.impl.LocalHandleDelegate.readEJBHome(LocalHandleDelegate.java:101)
     at com.sap.engine.services.ejb3.runtime.impl.StatelessHomeHandleImpl.readObject(StatelessHomeHandleImpl.java:73)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1818)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1718)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1917)
     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1841)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1718)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
     at com.sap.engine.examples.epf.ejb.controller.customer.SerializationUtils.deSerialize(SerializationUtils.java:33)
     at com.sap.engine.examples.epf.ejb.controller.customer.SerializationUtils.deepClone(SerializationUtils.java:59)
     at com.sap.engine.examples.epf.ejb.controller.customer.UserManagementBean.register(UserManagementBean.java:75)

Similar Messages

  • What is the difference between ejb reference and ejb handle?

    Hi:
    I am newbie for J2EE.
    I want to know what is the difference between ejb reference and ejb handle
    from the client view and from the container view?
    Very Thanks!
    Stive

    Hi John,,
    1) Ejb Object Handle are nothing but a long lived proxy for the
    ejb object, using this handle user can disconnect from the Ejb Server/Container
    at any time
    and after some time using the same handle he can able to resume the conversational
    state
    with the server / container where he was been disconnected From.
    And there are currently two Handles , HomeHandle and Handle for EjbHomeObject
    and EjbObject
    Respectively. Both these handles have Persistent reference to the EJB Object
    2) Ejb Reference is used to lookup a bean from other Enterprise Bean
    Ejb reference is a nickname for the JNDI Location that you want to lookup a bean.
    your code will looks up a Home object via using this nickname
    and the deployer will bind the
    nickname to the JNDI location of its choice
    EJb Reference are declared in the deployment descriptor
    Regards
    Karthikeyan Gangadharan
    SIP Technologies, Chennai
    E-mail-ID : [email protected]
    "John Stive" <[email protected]> wrote:
    >
    Hi:
    I am newbie for J2EE.
    I want to know what is the difference between ejb reference and ejb
    handle
    from the client view and from the container view?
    Very Thanks!
    Stive

  • I have installed CS5 on a macbook pro 10.9.4. I am unable to get the updater to run to update applications to most current version. It tells me there was an error trying to download the update and to try again later.

    I have installed CS5 on a macbook pro 10.9.4. I am unable to get the updater to run to update applications to most current version. It tells me there was an error trying to download the update and to try again later.

    Getting used to changes in the finder. I finally did see the Adobe Patch installer and am able to update applications individually. Should be able to attend to the main apps I use w/o further difficulty. Thnx for the help.

  • Get certificate error trying to access yahoo mail, and there is no exception to bypass the error.

    I am getting a certificate error trying to access https://mail.yahoo.com. Unlike most other certificate errors, there is no option for "I understand the risks" to add an exception for the page, just the following:
    mail.yahoo.com uses an invalid security certificate. The certificate is not trusted because the issuer certificate is unknown. (Error code: sec_error_unknown_issuer)
    I tried setting the proxy to "no proxy" under Advanced settings, as well as clearing all cookies and other cache history. Did not resolve the problem. I cannot access my email.

    hello, which security program is running on your computer?

  • Servlet jndi lookup to remote EJB, servlet and EJB not in the same application

    Hi,
    I think that the subject explain my problem.
    I have Oracle IAS9i 9.0.2.0.0, and JDeveloper 9.0.2.829
    I have deployed and EJB in IAS9i and i want to use from the developer machines, which have JDeveloper.
    how can i to do remote calls from JDeveloper?.
    I have modifed the orion-application.xml, and added remote=true.
    I have modifed the rmi.xml and added the hosts where the Jdeveloper placed.
    Any ideas?
    Thanks and cheers
    P.D The app server and jdeveloper are in the same net.
    if it is posible replys me to [email protected] too.

    Steps to access a remote EJB from within OC4J
    ++++++++++++++++++++++++++++++++++++++++++++++
    1) Deploy EJB application (ApplicationRemote) to remote container (REMOTE)
    "java -jar admin.jar -deploy ormi://REMOTE.hostname:REMOTE.port REMOTE.username REMOTE.password -deploy -file ApplicationRemote.ear
    -deploymentName ApplicationRemote"
    2) Ensure that local application (ApplicationLocal) has ejb-ref tags for remote EJBs accessed (in web.xml or ejb-jar.xml)
    3) Deploy to local container (LOCAL) an empty application (ApplicationEmpty) with the same name as the remote application (ApplicationRemote)
    "java -jar admin.jar -deploy ormi://LOCAL.hostname:LOCAL.port LOCAL.username LOCAL.password -deploy -file ApplicationEmpty.ear -deploymentName
    ApplicationRemote"
    5) Deploy local application (ApplicationLocal) to local container (LOCAL)
    "java -jar admin.jar -deploy ormi://LOCAL.hostname:LOCAL.port LOCAL.username LOCAL.password -deploy -file ApplicationLocal.ear -deploymentName
    ApplicationLocal"
    4)Restart local container
    ApplicationEmpty should consist of just an application.xml file - no modules. The same file can be deployed with different application names for all the remote
    applications that must be accessed.
    ApplicationLocal should access the remote EJB by using the following JNDI properties
    java.naming.factory.initial = "com.evermind.server.rmi.RMIInitialContextFactory"
    java.naming.provider.url = "ormi://REMOTE.hostname:REMOTE.port/ApplicationRemote"
    java.naming.security.principal = "REMOTE.username"
    java.naming.security.credentials = "REMOTE.password"
    regards
    Debu Panda

  • Ejb-ref and ejb-local-ref tags

    Hi everyone,
    Can someone please tell me
    1) Is it necessary for me to define ejb-ref or ejb-local-ref tags if I am referering one ejb from other ejb? I mean to say is it mandatory that I should have these deployment descriptor tags?
    2) What is purpose of ejb-link tag ?

    Hi everyone,
    Can someone please tell me
    1) Is it necessary for me to define ejb-ref or
    ejb-local-ref tags if I am referering one ejb from
    other ejb? I mean to say is it mandatory that I should
    have these deployment descriptor tags?Yes, to write portable J2EE components, every time you have a dependency on an ejb, you need to declare an ejb-ref (for a Remote EJB client) or ejb-local-ref (for a Local EJB client). This is true no matter what kind of J2EE component is accessing the ejb (Application Client, JSP, Servlet, or another ejb).
    Think of the ejb-ref or ejb-local-ref as a pointer. It's different from the thing that is pointed to. Instead, it represents a dependency between a client component and a target ejb.
    2) What is purpose of ejb-link tag ?Every ejb-ref or ejb-local-ref must be resolved to unambiguously point to the target ejb. The ejb-link tag is one way to resolve this dependency for the case where the target ejb lives in the same .ear as the referring component. The ejb-link tag is the ejb-name (or <ejb-jar uri>#<ejb-name>) of the target ejb.
    Note that this means ejb-link is the ONLY way to resolve an ejb-local-ref, since by definition Local EJB access can only take place between two ejbs within the same .ear or a web component/ejb that live within the same .ear.
    For ejb-refs, you can use ejb-link if the target ejb is within the same .ear. If not, the ejb specification does not prescribe how the dependency is resolved. It's left up to the J2EE implementation. The most common approach is for the vendor to provide a product-specific runtime .xml element that resolves the ejb-ref by associating it with the global JNDI name of the target EJB. That's the approach used in the J2EE SDK and Sun Java System Application Server.
    Kenneth Saks
    J2EE SDK Team
    SUN Microsystems

  • How will be the weblogic-ejb-jar and ejb-jar xml for EJB Local Interface?

    Hi,
    I have one ear application which is using Stateless Session Beans. I don't have any Bean to Bean communication . At present, the client is invoking remote methods thro Home/Remote interfaces. My doubt is , shall I implement EJBLocal home/ local interface to obtain this same functionality cos, in this app, both client and EJb bean have been deployed in same JVM. Can Local interfaces only be applicable to Bean - Bean relation ship?If LocalHome/Local interfaces can be implemented in my scenario, then may I know how will be the ejb-jar.xml and weblogic-ejb-jar.xml?
    thanks and regards,
    Venkat.

    Local interfaces are for communication between ejbs and their clients when both are in the same JVM. The clients can be normal clients, jsps, servlets, and other ejbs. If the client is not in the same JVM you cannot use local interfaces even though your client is another ejb.
    Advantage of using local interface is it reduces the network overhead.
    For more information you can download Mastering Enterprise Java Beans Third Edition by Ed Roman. You can go through 45
    You can download pdf version from.
    http://www.theserverside.com/books/wiley/masteringEJB/index.tss.
    Let me know the URL of the ejb doc that you referred.
    Thanks..

  • VMware server: Error trying to compile the vmmon and vmnet modules.

    Hello,
    I am trying to install VMware server following the wiki: http://wiki.archlinux.org/index.php/Ins … _on_Arch64
    I can't get very far as I can't even compile vmmon and vmnet and I have no idea on how to solve this problem
    [21:02:38][root@phusis]
    [/opt/arch32/root/vmware-server-distrib/lib/modules/source]Arch64# make -C vmmon-only auto-build HEADER_DIR=/usr/src/linux-`uname -r`/include CC=gcc SUPPO_SMP=1 GREP=grep IS_GCC_3=no
    Using 2.6.x kernel build system.
    make: Entering directory `/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only'
    make -C /usr/src/linux-2.6.28-ARCH/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Entering directory `/usr/src/linux-2.6.28-ARCH'
    CC [M] /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.o
    In file included from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86.h:20,
    from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/machine.h:24,
    from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.h:15,
    from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:49:
    /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86apic.h:79:1: warning: "APIC_BASE_MSR" redefined
    In file included from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/numa_64.h:5,
    from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/numa.h:4,
    from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/acpi.h:28,
    from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/fixmap_64.h:15,
    from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/fixmap.h:7,
    from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/apic.h:8,
    from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/smp.h:13,
    from include/linux/smp.h:30,
    from include/linux/topology.h:33,
    from include/linux/mmzone.h:763,
    from include/linux/gfp.h:4,
    from include/linux/kmod.h:22,
    from include/linux/module.h:13,
    from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:12:
    /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/apicdef.h:132:1: warning: this is the location of the previous definition
    In file included from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/machine.h:24,
    from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.h:15,
    from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:49:
    /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86.h:830:1: warning: "PTE_PFN_MASK" redefined
    In file included from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/pda.h:8,
    from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/current.h:19,
    from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/processor.h:15,
    from include/linux/prefetch.h:14,
    from include/linux/list.h:6,
    from include/linux/module.h:9,
    from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:12:
    /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/page.h:22:1: warning: this is the location of the previous definition
    In file included from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/vmhost.h:13,
    from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:71:
    /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/compat_semaphore.h:5:27: error: asm/semaphore.h: No such file or directory
    /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:146: error: unknown field 'nopage' specified in initializer
    /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:147: warning: initialization from incompatible pointer type
    /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:150: error: unknown field 'nopage' specified in initializer
    /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:151: warning: initialization from incompatible pointer type
    /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c: In function 'LinuxDriver_Ioctl':
    /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:1670: error: too many arguments to function 'smp_call_function'
    make[2]: *** [/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.o] Error 1
    make[1]: *** [_module_/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.28-ARCH'
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only'
    Do you know what I could do to sort the above issue?
    Thanks
    Ludo

    hi,
    i am not able to use the patch. there are always missing files and i dont know the path for this files.
    here is the output of the console:
    patch -p1 -i /home/felix//Desktop/vmware-workstation-6.5.1.126130-2.6.29_x86_64.patch
    can't find file to patch at input line 4
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmblock-only/include/compat_wait.h new/vmblock-only/include/compat_wait.h
    |--- orig/vmblock-only/include/compat_wait.h 2008-10-28 22:47:20.000000000 -0700
    |+++ new/vmblock-only/include/compat_wait.h 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 19
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmci-only/include/compat_wait.h new/vmci-only/include/compat_wait.h
    |--- orig/vmci-only/include/compat_wait.h 2008-10-28 22:47:21.000000000 -0700
    |+++ new/vmci-only/include/compat_wait.h 2009-01-20 04:49:44.000000000 -0700
    File to patch: y
    y: No such file or directory
    Skip this patch? [y]
    Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 34
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmmon-only/include/compat_wait.h new/vmmon-only/include/compat_wait.h
    |--- orig/vmmon-only/include/compat_wait.h 2008-10-28 22:47:18.000000000 -0700
    |+++ new/vmmon-only/include/compat_wait.h 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 49
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmmon-only/include/x86apic.h new/vmmon-only/include/x86apic.h
    |--- orig/vmmon-only/include/x86apic.h 2008-10-28 22:47:17.000000000 -0700
    |+++ new/vmmon-only/include/x86apic.h 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 64
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmmon-only/linux/driver.c new/vmmon-only/linux/driver.c
    |--- orig/vmmon-only/linux/driver.c 2008-10-28 22:47:18.000000000 -0700
    |+++ new/vmmon-only/linux/driver.c 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 85
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmmon-only/linux/hostif.c new/vmmon-only/linux/hostif.c
    |--- orig/vmmon-only/linux/hostif.c 2008-10-28 22:47:17.000000000 -0700
    |+++ new/vmmon-only/linux/hostif.c 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    4 out of 4 hunks ignored
    can't find file to patch at input line 173
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmmon-only/linux/vmmonInt.h new/vmmon-only/linux/vmmonInt.h
    |--- orig/vmmon-only/linux/vmmonInt.h 2008-10-28 22:47:17.000000000 -0700
    |+++ new/vmmon-only/linux/vmmonInt.h 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 188
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmnet-only/bridge.c new/vmnet-only/bridge.c
    |--- orig/vmnet-only/bridge.c 2008-10-28 22:47:18.000000000 -0700
    |+++ new/vmnet-only/bridge.c 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 203
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmnet-only/compat_wait.h new/vmnet-only/compat_wait.h
    |--- orig/vmnet-only/compat_wait.h 2008-10-28 22:47:19.000000000 -0700
    |+++ new/vmnet-only/compat_wait.h 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 218
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmnet-only/driver.c new/vmnet-only/driver.c
    |--- orig/vmnet-only/driver.c 2008-10-28 22:47:19.000000000 -0700
    |+++ new/vmnet-only/driver.c 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 235
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vmnet-only/netif.c new/vmnet-only/netif.c
    |--- orig/vmnet-only/netif.c 2008-10-28 22:47:18.000000000 -0700
    |+++ new/vmnet-only/netif.c 2009-01-20 04:49:44.000000000 -0700
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    4 out of 4 hunks ignored
    can't find file to patch at input line 286
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -Naur orig/vsock-only/include/compat_wait.h new/vsock-only/include/compat_wait.h
    |--- orig/vsock-only/include/compat_wait.h 2009-01-20 14:11:34.000000000 +0100
    |+++ new/vsock-only/include/compat_wait.h 2009-01-20 14:51:05.000000000 +0100
    File to patch:
    Skip this patch? [y] y
    Skipping patch.
    1 out of 1 hunk ignored
    thanks
    felix

  • Error trying to run "Measureme​nt and Automation​"

    I recently purchased a PCI-6014 DAQ in an attempt to save time but along with many others we've exprerienced nothing but problems with it, including problems with the board itself and now with the NI-DAQ software. My most recent problem, which I've unsuccessfully tried to debug is an error message when trying to access "Measurement & Automation" as follows: "The instruction at 0X73DD8789 referenced memory at 0X04781D70. The memory could not be read. Click OK to terminate the program". Any suggestions or should I cut my loses and move on to another test approach as I'm already far behind schedule?

    Hi cmm-
    What type of operations are you trying to perform when you run into this error?  It sounds like your NI-MAX installation may have become corrupted.  I would suggest reinstalling NI-DAQmx 7.5.  This driver install will install full support for your board as well as the newest version of NI-MAX to make sure that all files are up to date and uncorrupted.
    You should first uninstall any versions of NI-DAQ and NI-MAX under the "National Instruments Software" section of Add/Remove Programs in the Control Panel.  Have you had any luck in attempting to access the software on another machine or with other NI DAQ cards?
    Please give these suggestions a try and let us know if you are still seeing problems.
    Thanks-
    Message Edited by Tom W. on 09-01-2005 01:36 PM
    Tom W
    National Instruments

  • Getting an error trying to extract CS6 Web and Design Premium after downloading

    Hi, I purchased the CS6 Web and Design Premium back in 2013 and I have installed it on my laptop successfully.  I got a new Windows desktop PC this year and I'm trying to install this on here without any success.  I have downloaded the two files from the "Download CS6 Products" page on Adobe's website, but when I try to open the .exe file, I come up with an error saying "A problem occurred while extracting some files.  Check available space on your computer and write privileges on the destination folder."  I have no idea what this means or what I'm doing wrong?    I would appreciate any help since I've been trying to get this working for about an hour with no progress at all.

    make sure you downloaded both files completely and that they match.
    if you're not sure how to do that or you think you have done that, what files (name and extension) and what file sizes did you download?

  • Many EJB's and ejb-jar.xml

    I will have about 20 EJB's who have relationships with each other.
    Now all those EJB's come in the same deployment descriptor, causing it to grow to over 2000 lines.
    Is it possible to split the ejb-jar.xml in several ejb-jar.xml's? One for every EJB or one for every EJB group as a business object pattern.
    Or is there another solution?

    No - this is a case of "what you sow, you reap." In other words, if you have that many relations, you have a large ejb-jar.xml, since all the Entities involved in the relations must be in the same .jar file. What I would try to do is break down the relations into logical groupings and, ideally, those groups would not have relations with each other. Then split those groups out into separate deployments. Or if the relation between two groups is "light" (maybe only one), you can manually handle the relation through remote calls, instead of using CMR.

  • EJB-QL and ejb-name bug

    Hi,
    I think I found a bug when using EJB-QL with oc4j.
    If the name of your bean (<ejb-name> tag) is set to something with a "dot". E.g. "mytests.MyLocalBean" then the finder methods (using EJB-QL) will return an SQL exception. The exception says that no table named "MyLocalBean" can be found. The "mytests" prefix seems to be missing in the dynamically generated SQL statement.
    If I change the bean name to "MylocalBean" everything works fine.
    I'm currently using Iterbase DB, but I think this is an error in the oc4j container.
    /johan

    Johan -- I will take a look at it.
    Thanks -- Jeff

  • Error when @Singleton in Glassfish v3 and weld. CDI not working for EJBs.

    Hello,
    I am getting the following error when deploying a web app with a SSB with the @Singleton annotation. If I use javax.ejb.Singleton I get the error. If I use @Stateless and @Singleton with javax.inject.Singleton, I don't.
    I use Glassfish v3 with weld.
    [#|2009-12-19T01:29:19.423+0100|SEVERE|glassfish|global|_ThreadID=16;_ThreadName=Thread-1;|The annotation symbol defined in super-class is not compatible with Session ejb ElaphusManager.
    symbol: TYPE location: class com.cervatoh2.elaphus.ejb.ElaphusManagerBean
    By the way,
    what is the right way to install weld into glassfish? To make @Named work I had to treat Glassfish v3 as if it was Tomat:
              <listener>
                        <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
                   </listener>
              <resource-env-ref>
    <description>Object factory for the CDI Bean Manager</description>
    <resource-env-ref-name>BeanManager</resource-env-ref-name>
    <resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
    </resource-env-ref>
    And also add weld-servle.jar to /WEB-INF/lib
    isn't Glassfish v3 supposed to have builtin weld support?
    thanks for any directions,
    Ignacio

    Well,
    I think I have understood what the problem is, and maybe also a patch for it.
    I have observed the exact same scenario as you guys.
    I think the problem is exposed by the statement in the status.conf file:
    rwConnStart message=All 1 wget requests did not return a valid vpnserver.conf
    The contents of the vpnserver.conf file in your case is:
    Which I also have observed. Now, I have just had a session, where one of my colleagues have a succesfull connection and I have a failed one. Now, his vpnserver.conf was:
    version=1
    msgtype=configuration
    conn xxxxx_rw
    presharedkey=xxxxxxxxxxxxxxxxxxx
    rightsubnet=xxx.xxx.xxx.xxx/xx
    remotelanip=xxx.xxx.xxx.xxx
    dnsserver=xxx.xxx.xxx.xxx
    domain=
    which is somewhat different. Mine was like the failing one you had. This made me think. The client is supposed to download vpnserver.conf via HTTPS and save it. Sometimes this goes wrong, and I think it is the router software that gets confused.
    It simply thinks you are trying to remote mgmt it and sends you the html to go to the welcome.html page. In my setup I have enabled HTTPS and disbaled Remote MGMT. So it should never ever think it is being remotely managed, but somehow it does that - doh!
    Thus, either the SW on the router is confused/buggy and this causes it to give you a HTML respond instead of the contents of the vpnserver.conf file. Another explanation could be that the wget tool has a problem, when a vpnserver.conf file already exists and then it doesn ensure to force download the file correctly or something.
    Nevertheless, I have two ways to solve this problem:
    1. Rebooting the router has worked for me, but is of course not nice
    2. Delete the local version of vpnserver.conf BEFORE you try to connect.
    The 2nd solution has not yet been verified to work in a broader scale, but we are trying to verify it.
    Please report if this helps you guys.
    Thanks, Jacob

  • 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

  • EJB 3.0 @Stateless @EJB @Resource and JNDI clarity..

    Hi,
    I am trying to configure an EJB 3.0 but not able to do so properly.
    I have a single business interface and 2 bean implementation class of the same business interface doing different things. How do I access the EJB's if I have the same business interface class.I am getting JNDI error while trying to lookup.
    Also what does the "name" and "mappedName" in @Stateless(name ="...",mappedName="") signify.
    Then in case of Dependency injection,how should I look for the EJB? What would be it's JNDI name in this case?
    @EJB(name="",beanName="",mappedName="")
    private HelloEJB hello;
    What does the name,benaName and mappedName in case of an @EJB annotation signify??
    Please clear me with these attributes of @Stateless and @EJB and @Resource. I am getting toatlly confused with what should be the logic name and what is the JNDI name????
    Thanks

    In @Stateless, @name() is the annotation equivalent of <ejb-name> in ejb-jar.xml. It gives a unique bean name identifier to the component within the ejb-jar. It is completely independent of mappedName. If no @Stateless name() is specified, it defaults to the unqualified bean class name.
    In @Stateless, mappedName() is used to assign a global JNDI name to the bean's remote interface. This can be used to explicitly lookup the EJB reference to that interface or as one way to resolve a caller's EJB dependency.
    In @EJB, if the target of the dependency lives within the same application, you can always fully resolve it using only beanName(). beanName() takes the value specified in @Stateless name(), or the default as described above.
    @EJB name() assigns a name to the client dependency within the caller's component environment. It is optional. In most cases that value doesn't matter since if the dependency is being injected you never have to refer to the name() attribute anywhere else.
    @EJB mappedName() is used to resolve an EJB dependency that spans applications. It holds a global JNDI name, e.g. the one specified in @Stateless mappedName(). mappedName() is not required to be supported by all vendors.
    So, to sum it all up, it's fine to have two different beans that expose the same interface. E.g. :
    @Stateless(name="A1", mappedName="A1Global")
    public class A1 implements A { ... }
    @Stateless(mappedName="A2Global") // name() defaults to "A2"
    public class A2 implements A { ... }
    In a caller within the same application :
    @EJB(beanName="A1")
    private A a;
    @EJB(beanName="A2")
    private A a;
    In a caller within a different application :
    @EJB(mappedName="A1Global")
    private A a;
    @EJB(mappedName="A2Global")
    private A a;
    You can find additional information in our EJB FAQ :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#EJB_ejb-ref_ejb_local_ref

Maybe you are looking for