Missing  com.sun.corba.se.internal.iiop.CDRInputStream

I am trying to test the new OC4J 10.0.3 which supposed to be a J2EE 1.4 compliant.
I followed the instruction to unzip it, and when I tried to start it I got the error :
I did a thorugh search for that package in my Java directory and couldnt find a match in either J2SE or J2EE.
Your help is highly appreciated.
Starting OC4J...
05/01/22 02:13:22 Exception in thread "OC4J Launcher" oracle.oc4j.loader.util.An
notatedNoClassDefFoundError:
Missing class: com.sun.corba.se.internal.iiop.CDRInputStream
Dependent class: com.evermind.server.ApplicationContext
Loader: oc4j:10.1.3
Code-Source: /D:/Java/Jdev10g/j2ee14/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in boot.xml in D:\Java\Jdev10g\j2ee14\j2e
e\home\oc4j.jar
The missing class is not available from any code-source or loader in the server.
05/01/22 02:13:22 at oracle.oc4j.loader.PolicyClassLoader.handleClassNotFo
und (PolicyClassLoader.java:1956) [/D:/Java/Jdev10g/j2ee14/j2ee/home/oc4j.jar (f
rom system property java.class.path), by sun.misc.Launcher$AppClassLoader@14822
57]
at oracle.oc4j.loader.PolicyClassLoader.internalLoadClass (PolicyClassLo
ader.java:1641) [/D:/Java/Jdev10g/j2ee14/j2ee/home/oc4j.jar (from system propert
y java.class.path), by sun.misc.Launcher$AppClassLoader@1482257]
at oracle.oc4j.loader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
a:1591) [/D:/Java/Jdev10g/j2ee14/j2ee/home/oc4j.jar (from system property java.c
lass.path), by sun.misc.Launcher$AppClassLoader@1482257]
at oracle.oc4j.loader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
a:1577) [/D:/Java/Jdev10g/j2ee14/j2ee/home/oc4j.jar (from system property java.c
lass.path), by sun.misc.Launcher$AppClassLoader@1482257]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre b
ootstrap, by  jre bootstrap]
at com.evermind.server.ApplicationContext.<clinit> (ApplicationContext.j
ava:62) [/D:/Java/Jdev10g/j2ee14/j2ee/home/lib/oc4j-internal.jar (from <code-sou
rce> in boot.xml in D:\Java\Jdev10g\j2ee14\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.Application.<init> (Application.java:173) [/D:/Ja
va/Jdev10g/j2ee14/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xm
l in D:\Java\Jdev10g\j2ee14\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.initializeApplications (Applica
tionServer.java:1403) [/D:/Java/Jdev10g/j2ee14/j2ee/home/lib/oc4j-internal.jar (
from <code-source> in boot.xml in D:\Java\Jdev10g\j2ee14\j2ee\home\oc4j.jar), by
oc4j:10.1.3]
at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.ja
va:944) [/D:/Java/Jdev10g/j2ee14/j2ee/home/lib/oc4j-internal.jar (from <code-sou
rce> in boot.xml in D:\Java\Jdev10g\j2ee14\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerL
auncher.java:87) [/D:/Java/Jdev10g/j2ee14/j2ee/home/lib/oc4j-internal.jar (from
<code-source> in boot.xml in D:\Java\Jdev10g\j2ee14\j2ee\home\oc4j.jar), by oc4
j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by  jre bootst
rap]

Hi
when i am trying to start the oc4j server, it is throwing me the following error.
Please give me some solution...
06/05/19 16:20:40 oracle.classloader.util.AnnotatedClassFormatError: MBeanServer
EjbHome_StatefulSessionHomeWrapper1 (Unsupported major.minor version 49.0)
Invalid class: MBeanServerEjbHome_StatefulSessionHomeWrapper1
Loader: system.root:0.0.0
Code-Source: /C:/product/10.1.3/OracleAS_1/j2ee/home/application-dep
loyments/admin_ejb/deployment-cache.jar
Configuration: <ejb> in wrappers
Dependent class: com.evermind.server.ejb.deployment.SessionBeanDescripto
r
Loader: oc4j:10.1.3
Code-Source: /C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-intern
al.jar
Configuration: <code-source> in META-INF/boot.xml in C:\product\10.1.3
\OracleAS_1\j2ee\home\oc4j.jar
This class was compiled for a newer version of the JRE. Expected version
48.0, found 49.0.
06/05/19 16:20:40 at oracle.classloader.PolicyClassLoader.findLocalClass (
PolicyClassLoader.java:1457) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/pcl.ja
r (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@54
87165]
at oracle.classloader.SearchPolicy$FindLocal.getClass (SearchPolicy.java
:167) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/pcl.jar (from system property
java.class.path), by sun.misc.Launcher$AppClassLoader@5487165]
at oracle.classloader.SearchSequence.getClass (SearchSequence.java:119)
[/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.
class.path), by sun.misc.Launcher$AppClassLoader@5487165]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLo
ader.java:1660) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/pcl.jar (from syste
m property java.class.path), by sun.misc.Launcher$AppClassLoader@5487165]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
a:1621) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/pcl.jar (from system proper
ty java.class.path), by sun.misc.Launcher$AppClassLoader@5487165]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
a:1606) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/pcl.jar (from system proper
ty java.class.path), by sun.misc.Launcher$AppClassLoader@5487165]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:302) [jre b
ootstrap, by jre.bootstrap]
at java.lang.Class.forName0 (Native method) [unknown, by unknown]
at java.lang.Class.forName (Class.java:219) [jre bootstrap, by jre.boots
trap]
at com.evermind.server.ejb.deployment.SessionBeanDescriptor.createHomeIn
stance (SessionBeanDescriptor.java:443) [/C:/product/10.1.3/OracleAS_1/j2ee/home
/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\product\10
.1.3\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBPackageDeployment.getHomeInstanceCore (EJB
PackageDeployment.java:1136) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-i
nternal.jar (from <code-source> in META-INF/boot.xml in C:\product\10.1.3\Oracle
AS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBPackageDeployment.getHomeInstance (EJBPack
ageDeployment.java:1189) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-inter
nal.jar (from <code-source> in META-INF/boot.xml in C:\product\10.1.3\OracleAS_1
\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBPackageDeployment.bindRemoteHome (EJBPacka
geDeployment.java:533) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-interna
l.jar (from <code-source> in META-INF/boot.xml in C:\product\10.1.3\OracleAS_1\j
2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBPackageDeployment.bindHomes (EJBPackageDep
loyment.java:442) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-internal.jar
(from <code-source> in META-INF/boot.xml in C:\product\10.1.3\OracleAS_1\j2ee\h
ome\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBContainer.postInit (EJBContainer.java:1010
) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-sou
rce> in META-INF/boot.xml in C:\product\10.1.3\OracleAS_1\j2ee\home\oc4j.jar), b
y oc4j:10.1.3]
at com.evermind.server.ApplicationStateRunning.initializeApplication (Ap
plicationStateRunning.java:210) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4
j-internal.jar (from <code-source> in META-INF/boot.xml in C:\product\10.1.3\Ora
cleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.Application.setConfig (Application.java:391) [/C:
/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> i
n META-INF/boot.xml in C:\product\10.1.3\OracleAS_1\j2ee\home\oc4j.jar), by oc4j
:10.1.3]
at com.evermind.server.Application.setConfig (Application.java:308) [/C:
/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> i
n META-INF/boot.xml in C:\product\10.1.3\OracleAS_1\j2ee\home\oc4j.jar), by oc4j
:10.1.3]
at com.evermind.server.ApplicationServer.initializeSystemApplication (Ap
plicationServer.java:1480) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-int
ernal.jar (from <code-source> in META-INF/boot.xml in C:\product\10.1.3\OracleAS
_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.initializeAutoDeployedApplicati
ons (ApplicationServer.java:1467) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/o
c4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\product\10.1.3\O
racleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.ja
va:922) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <co
de-source> in META-INF/boot.xml in C:\product\10.1.3\OracleAS_1\j2ee\home\oc4j.j
ar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerL
auncher.java:113) [/C:/product/10.1.3/OracleAS_1/j2ee/home/lib/oc4j-internal.jar
(from <code-source> in META-INF/boot.xml in C:\product\10.1.3\OracleAS_1\j2ee\h
ome\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:534) [jre bootstrap, by jre.bootstr
ap]

Similar Messages

  • RMI-IIOP JNDI lookup returns com.sun.corba.se.internal.iiop.CDRInputStream

    I have two different RMI-IIOP java clients, one is working fine and the other is not. Both are using weblogic.jndi.WLInitialContextFactory from wlclient.jar in WLS 8.1sp5 and JDK 1.4.2_6.
    One java client is a straight-forward java main. JNDI lookup is returning EJBHome_Stub correctly loaded by sun.rmi.server.LoaderHandler$Loader
    The other java client is a complex java program with multiple threads and many jars. A thread does the same JNDI lookup as the simple java client, but the object returned is of type com.sun.corba.se.internal.iiop.CDRInputStream_1_0$1 which has NULL classloader (bootstrap classloader).
    What condition triggered the WebLogic InitialContext to default to com.sun.corba.se.internal.iiop.CDRInputStream?

    Kevin Fung <> writes:
    This is usally symptomatic of an IOR without the corresponding stub
    being loaded, usually because the correct security manager is not
    set. However the client jar bypasses the security manager to try and
    avoid this problem, so I am confused as to why you are seeing this. Do
    you know which object it is accessing? Can you try putting IIOP stubs
    for it in the client?
    andy
    I have two different RMI-IIOP java clients, one is working fine and the other is not. Both are using weblogic.jndi.WLInitialContextFactory from wlclient.jar in WLS 8.1sp5 and JDK 1.4.2_6.
    One java client is a straight-forward java main. JNDI lookup is returning EJBHome_Stub correctly loaded by sun.rmi.server.LoaderHandler$Loader
    The other java client is a complex java program with multiple threads and many jars. A thread does the same JNDI lookup as the simple java client, but the object returned is of type com.sun.corba.se.internal.iiop.CDRInputStream_1_0$1 which has NULL classloader (bootstrap classloader).
    What condition triggered the WebLogic InitialContext to default to com.sun.corba.se.internal.iiop.CDRInputStream?

  • Com.sun.corba.ee.impl.encoding.CDRInputStream  not found

    i get this classdef not found error when starting OC4J
    Does anyone know what jar is this a part of?

    Hello,
    Which kind of applications do you have deployed in your OC4J?
    Which version of OC4J are you using on which OS?
    I cannot find it in a working OC4J, using the classloader query utility. When I google this class I find some exception regarding glassfish, and not directly this class.
    Could you please post the full stack trace?
    Regards
    Tugdual Grall

  • Com/sun/corba/se/connection/ORBSocketFactory

    Is the class com/sun/corba/se/connection/ORBSocketFactory in the JRE 1.5.
    I get my WLS 8.1 client working with 1.4 but it desn't work anymore with 1.5 due to the following error:
    java.lang.NoClassDefFoundError: com/sun/corba/se/connection/ORBSocketFactory
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at weblogic.corba.j2ee.naming.ORBHelper.<clinit>(ORBHelper.java:112)
    at weblogic.corba.client.ClientORBInitializer.initialize(ClientORBInitializer.java:84)
    at weblogic.security.auth.login.UsernamePasswordLoginModule.login(UsernamePasswordLoginModul
    e.java:226)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at javax.security.auth.login.LoginContext.invoke(Unknown Source)
    at javax.security.auth.login.LoginContext.access$000(Unknown Source)
    at javax.security.auth.login.LoginContext$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
    at javax.security.auth.login.LoginContext.login(Unknown Source)
    It seems that the cless doesn't exist any more????
    Thanks in advance for your help,
    Olivier.

    Hi,
    I have faced with the same problem as you, and I am too cannot find any clear and full description/solution about upgrading from 1.4 to 1.5 and com.sun.corba.se.connection and com.sun.corba.se.internal packages. I am trying to find official clarification from java.sun.com but without results. Did you get any results with this question?
    I will be very grateful for you help!

  • IOP00710309: (INTERNAL) Worker thread Thread[p: default-threadpool; w: Idle,5,ORB ThreadGroup 0] caught throwable com.sun.corba.se.impl.orbutil.threadpool

    Hi ,
    I am seeing this issue while starting my managed server.
    com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread run
    FINE: "IOP00710309: (INTERNAL) Worker thread Thread[p: default-threadpool; w: Idle,5,ORB ThreadGroup 0] caught throwable com.sun.corba.se.impl.orbutil.threadpool.TimeoutException when requesting work from work queue default-workqueue."
    org.omg.CORBA.INTERNAL:   vmcid: SUN  minor code: 309  completed: No
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.workerThreadThrowableFromRequestWork(ORBUtilSystemException.java:6330)
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.workerThreadThrowableFromRequestWork(ORBUtilSystemException.java:6355)
            at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:494
    I have searched the net for this but didnt find any resolution. Please help.
    Regards,
    Rishi

    This became bug 6560301. And Sun pointed out that it was my bad in not handling spurious wakeups. Java 6 makes spurious wakeups more likely. (My experience is from "never" to "sometimes".)
    More info at:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6560301

  • Why com.sun.CORBA.ORBServerHost can not be cleared after the JVM is closed?

    run an application on a multiple IPs windows box. In order to initialize the ORB on the right IP, i set the com.sun.CORBA.ORBServerHost property at the app startup.
    If the right IP is set, then the software works fine as expected. Btut ionce the wrong IP is set, the software won't work even if I restart it with the right parameter. It looks like the new value just does not take effect.
    And until the box is rebooted, the new parameter will take effect. As per my understanding, this parameter should be set at a JVM level and will be cleared after the JVM is shutdown......
    Have no idea how to fix this issue and even don't know where to start to investigate it?
    Would you please provide any suggestion on it? Thx in advance.

    I had the same problem when I upgraded to snv_114 from snv_98
    on SPARC. The important line in /var/dt/Xerrors is this one:
    could not open default font 'fixed'
    The problem (in my case, anyway) was that the fonts.dir files were
    not updated during the install/upgrade process. This fixed it:
    $ su -
    # cd /usr/X11/lib/X11/fonts
    # for f in *; do cd $f; mkfontdir; cd -; done

  • Com.sun.corba.se.impl.orb.ORBImpl is Sun proprietary API and may be removed

    hi again,
    i have a question
    what this means?
    com.sun.corba.se.impl.orb.ORBImpl is Sun proprietary API and may be removed in a future release

    The message means that you are using stuff that you shouldn't be using. Sun may remove that stuff from future versions of Java which will break your code/application/library.

  • Missing com.sun.xml.parser in Java EE 5

    I am upgrading from J2EE 1.4 to 5. In 1.4 I was using j2ee.jar file, but after installing J2EE 5, I think the file has changed to javaee.jar. But javaee.jar is missing the package com.sun.xml.parser. Can anybody tell me where I can find it?
    Thanks
    Aditi

    I am upgrading from J2EE 1.4 to 5. In 1.4 I was using j2ee.jar file, but after installing J2EE 5, I think the file has changed to javaee.jar. But javaee.jar is missing the package com.sun.xml.parser. Can anybody tell me where I can find it?
    Thanks
    Aditi

  • Supplemental/vda-migrate fails: missing com/sun/vda/service/TextCipher

    Hi,
    just tried vda-migrate to upgrade my test installation (single host) from vda_3.0 to the new 3.1 version.
    This fails as seen below (added -verbose:class to the line calling java in vda-migrate:doExport).
    Any idea where class 'com/sun/vda/service/TextCipher' could be found (at least it's not defined in
    any .jar-file in vda_3.{0,1}/Solaris_10+/i386/Packages/SUNWvda*...)
    Kurt
    [Loaded java.security.cert.Certificate from /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jar]
    [Loaded com.sun.vda.migrate.VdaMigrateExport from file:/var/home/ks/vda_3.1_image/.install/vdamigrate.jar]
    [Loaded java.io.FileNotFoundException from /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jar]
    [Loaded java.util.Queue from /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jar]
    [Loaded java.util.Deque from /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jar]
    [Loaded java.util.AbstractSequentialList from /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jar]
    [Loaded java.util.LinkedList from /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jar]
    [Loaded java.util.LinkedList$Entry from /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jar]
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/vda/service/TextCipher
    Caused by: java.lang.ClassNotFoundException: com.sun.vda.service.TextCipher
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    [Loaded java.lang.Shutdown from /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jar]
    [Loaded java.lang.Shutdown$Lock from /usr/jdk/instances/jdk1.6.0/jre/lib/rt.jar]
    Could not find the main class: com.sun.vda.migrate.VdaMigrateExport. Program will exit.
    Data exported to directory '/tmp/asdf'
    After installing and configuring Sun VDI 3.1 execute '/opt/SUNWvda/sbin/vda-migrate -i /tmp/asdf'
    A log file is available at '/var/adm/log/vda-migrate.2009_09_15_21:47:25.log'.

    Hi,
    The VDI upgrade from 3.0 to 3.1 is not supported in 3.1 Early Access version.
    vda-migrate 3.0-->3.1 will be available only in the 3.1 final release.
    Thanks,
    --Chirag                                                                                                                                                                                                                                                                                                                                                       

  • Caught an unexpected exception! java.lang.ClassCastException at com.sun.cor

    Hi,
    Iam struggling with this problem from last 3days.
    Any body could u help me to solve this problem.
    error:
    Caught an unexpected exception!
    java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow (PortableRemoteObject.java:293)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
    at ConverterClient.main(ConverterClient.java:59)
    Client Code is here:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.util.Properties;
    import javax.ejb.CreateException;
    import java.util.Hashtable;
    // NOT NECESSARY import Converter;
    // NOT NECESSARY import ConverterHome;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Properties env = new Properties();
              env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
              env.put("java.naming.provider.url", "iiop://localhost:3700");
              Context initial = new InitialContext(env);
         ConverterHome home =(ConverterHome)PortableRemoteObject.narrow(initial.lookup("MyConverter"),ConverterHome.class);
    // Create converter session bean
    Converter currencyConverter = home.create();
    // Calculate from dollars to yen
    double amount = currencyConverter.dollarToYen(100.00);
    System.out.println("100 Dollars is " + String.valueOf(amount) + " Yen");
    // Calculate from yen to dollars
    amount = currencyConverter.yenToEuro(100.00);
    System.out.println("100 Yen is " + String.valueOf(amount) + " Dollars");
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();

    Hi,
    I have a stateless bean and accessing it from a jsp page in Orion App Server. There is no problem in the deployment. of the application.
    When I access the bean from the jsp page is throwing
    java.lang.ClassCastException
    at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    The code is :
    Object homeObject = null;
    homeObject = ctx.lookup("LoginHome");
    out.println(homeObject.toString());
    LoginHome ejbHome = (LoginHome)PortableRemoteObject.narrow(homeObject,LoginHome.class);
    Login login = ejbHome.create();
    when I use the statement
    homeOject.toString() to print the object it prints
    LoginHome EJBHome
    I am not able to resolve this for th epast three days.
    Thanks,
    Vivek S

  • Random classcast exception - com.sun.jndi.cosnaming.CNCtxFactory

    Hi,
    I am trying to use a remote ejb (weblogic 8.1.5/ jdk 14) from a j2se 1.5 rmi-iiop client.
    If I use com.sun.jndi.cosnaming.CNCtxFactory to look up the remote home & then use the remote interface, I get the following error RANDOMly (i.e only some calls succeed).
    java.lang.ClassCastException
         at xxx.equals(xxxjava:129)
         at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1471)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
         at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
         at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
         at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
         at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at weblogic.iiop.RMIMsgOutput.writeObject(RMIMsgOutput.java:117)
         at xxx.yyy_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:492)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:435)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:430)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    I had a look at IndirectionValueHashtable class. It looks like the classcast is happening because the "handle-to-object" map has non String values.
    Could this be a corba compatabilty issue?
    The problem doesn't occur if I use weblogic initial context factory & t3 protocol.
    What is the best way to overcome this problem? I dont want to distribute weblogic.jar [from 8.1.5 server]. wlclient is okay.
    thanks

    Tony Zimmer <> writes:
    Certainly looks like a bug, in which case you need to go through
    support to get it fixed. Do however check that your objects are in
    fact serializable (including all their fields).
    andy
    Tried a few more combinations. No luck so far.
    classcast exception for some objects at some times
    server: WebLogic Server 10.0 / Sun 1.5.0_06/ WinNT 6
    client: Sun jdk 1.5.0_11/1.4.2_14
    java.lang.ClassCastException: java.lang.String
         at xxxpack.client.PaymentReceipt.equals(PaymentReceipt.java:881)
         at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1836)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
         at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
         at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
         at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1957)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
         at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
         at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
         at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1957)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
         at xxxpack.server.ProcessPayment_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    server: WebLogic Server 8.1 SP6 / Sun 1.4.2_11 / WinNT 6
    client jdk 1.4.2_14/1.5.0_11:
    java.lang.ClassCastException
         at xxxpack.client.PurchaseAmount.equals(PurchaseAmount.java:148)
         at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1471)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
         at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
         at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
         at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
         at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at weblogic.iiop.RMIMsgOutput.writeObject(RMIMsgOutput.java:117)
         at xxxpack.server.ProcessPayment_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Do you have a list/ martix of client-server versions used for the bug fixes?
    Thanks

  • Connection timed out: connect at com.sun.mail.imap.IMAPStore.protocolConne

    Hi ,
    Recently, my team need to work with javamail. Here I got a problem: when I run the application in my personal home network , it goes on very well. When I run the program in my company env, it gives error info:
    Exception in thread "main" javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
    java.net.ConnectException: Connection timed out: connect
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1706)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525)
    at javax.mail.Service.connect(Service.java:313)
    The resource is :
    import java.security.Security;
    import java.util.Date;
    import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.AddressException;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    *Use Gmail
    public class GmailSender {
    public static void main(String[] args) throws AddressException, MessagingException {
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
    // Get a Properties object
    Properties props = System.getProperties();
    //Add proxy for GmailSender
    //especially here, I am not sure whether the proxy really works. In home network, it needn't proxy to run successfully.
    // props.setProperty("proxySet","true");
    // props.setProperty("socksProxyHost","148.87.19.20"); // This IP address is our proxy server address
    // props.setProperty("socksProxyPort","80");
    props.setProperty("mail.smtp.host", "smtp.gmail.com");
    props.setProperty("mail.smtp.socketFactory.class", SSL_FACTORY);
    props.setProperty("mail.smtp.socketFactory.fallback", "false");
    props.setProperty("mail.smtp.port", "465");
    props.setProperty("mail.smtp.socketFactory.port", "465");
    props.put("mail.smtp.auth", "true");
    final String username = "XXX";
    final String password = "XXX";
    Session session = Session.getDefaultInstance(props, new Authenticator(){
    protected PasswordAuthentication getPasswordAuthentication() {
    return new PasswordAuthentication(username, password);
    // -- Create a new message --
    Message msg = new MimeMessage(session);
    // -- Set the FROM and TO fields --
    msg.setFrom(new InternetAddress(username + "@gmail.com"));
    msg.setRecipients(Message.RecipientType.TO,
    InternetAddress.parse("[email protected]",false));
    msg.setSubject("Hello");
    msg.setText("How are you");
    msg.setSentDate(new Date());
    Transport.send(msg);
    System.out.println("Message sent.");
    Will you please help me to review my code and give me some suggestions ?

    No point looking at the code. The error message says the code can't connect to the server you are trying to connect to, so presumably there's a firewall or something like that preventing the connection. Talk to your network people.

  • Recursive plunge inside sun CORBA code?

    I'm seeing a stack overflow from a recursive plunge inside
    com.sun.corba.se.impl.protocol.CorbaServerRequestDispatchImpl.dispatch()
    with both JDK 1.5 and JDK 1.6.
    Sure enough, at line 214 in the source is a recursive call, preceded by
    a comment that seems to indicate it shouldn't be a problem:
            // Destroyed POAs can be recreated by normal adapter activation.
            // So just restart the dispatch.
            dispatch(request);However, request is the same as the original argument to dispatch, so a recursive
    plunge isn't unexpected! Is that code really correct?
    Being a CORBA novice, I'm sure I'm doing something odd that results in
    this particular path being taken in dispatch(), but because of the stack overflow,
    I haven't been able to trace down exactly what in my code is resulting in reaching
    line 214, but it appears related to breaking a CORBA connection. (The application
    is multi-threaded application that is connecting/unconnecting to/from multiple
    applications.)

    Hi Mike,
    Thanks for your suggestion. Making the interface local was the first thing I tried. (In fact, I started out with a local interface.) The strange thing is that the servlet cannot resolve the interface when it's local. That's why I made the interface remote. But now I know this only makes things worse.
    So the real problem is probably my JSF servlet that doesn't resolve the local interface in the EJB JAR. In fact, it seems all EJB annotations are ignored in the servlet. Even the remote interface could only be resolved "manually" (via an JNDI lookup, using a InitalContext, etc.) Is there any known issue with EJB annotations in JSF servlets?
    (By the way: it was hard to find information on the CORBA MARSHAL error. Perhaps this error can be clarified somehow in a newer version of TopLink (Essentials). At least a warning about this happening in the TopLink documentation should be nice.)
    Anyway, thanks for your prompt reply. I hope you (or someone else) has some suggestions on how to getting things working the proper way (with a local interface). Do you think it will help to deploy both modules in a single EAR file instead of deploying them as separate JAR and WAR?

  • Sun corba service set time out

    Hi im coding a corba client service using sun default library(without using any 3rd lib. e.g jacorb /visibroker). Is there anyway to set client timeout. This is to solve when server is down then my client won't hog the thread and keep the connection active. As of now if the host is down, i will wait forever, the timeout from sun is very unconsistence

    Thanks a lot for your reply, I guess im kinda confusing. Maybe you can help me and enlighten me a bit. my problem here is i need to set timeout. With weblogic default timeout. THe time out is actually not consistence, from 0- 50 minute.
    below is my snippet of code.
    If im not setting any properties or system variable then the system will run default
    code set 1.
    myOrb = org.omg.CORBA.ORB.init(args, null);
    System.out.println("After System org.omg.CORBA.ORBClass:"+System.getProperty("org.omg.CORBA.ORBClass"));
    System.out.println("After System org.omg.CORBA.ORBSingletonClass:"+System.getProperty("org.omg.CORBA.ORBSingletonClass"));
    -- print line result.
    After System org.omg.CORBA.ORBClass:weblogic.corba.orb.ORB
    After System org.omg.CORBA.ORBSingletonClass:weblogic.corba.orb.ORB
    it still print weblogic.
    code set 2.
    Properties prop = new Properties();     
    prop.put("org.omg.CORBA.ORBClass", "com.sun.corba.se.impl.orb.ORBImpl");
    prop.put("org.omg.CORBA.ORBSingletonClass", "com.sun.corba.se.impl.orb.ORBSingleton");
    //prop.put("com.sun.CORBA.transport.ORBTCPReadTimeouts);
    myOrb = org.omg.CORBA.ORB.init(args, prop);
    -- print line result.
    After System org.omg.CORBA.ORBClass:weblogic.corba.orb.ORB
    After System org.omg.CORBA.ORBSingletonClass:weblogic.corba.orb.ORB

  • Cant import com.sun.xml.internal.ws.spi

    I was intalled NetBeans IDE 6.1, JDK/JRE 1.6.0_07.
    but
    import com.sun.xml.internal.ws.spi.ProviderImpl;
    This statement comes an error (package com.sun.xml.internal.ws.spi does not exist )
    but JDK6(rt.jar) has this package and class.
    why this happen?

    Probably it wasn't his fault:
    * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
    * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    *$Id: Provider.java,v 1.8.2.6 2007/03/09 23:51:10 kohlert Exp $
    package javax.xml.ws.spi;
    import java.net.URL;
    import java.util.List;
    import javax.xml.ws.Endpoint;
    import javax.xml.ws.WebServiceException;
    import javax.xml.ws.WebServiceFeature;
    import javax.xml.namespace.QName;
    import javax.xml.ws.EndpointReference;
    import javax.xml.ws.wsaddressing.W3CEndpointReference;
    import org.w3c.dom.Element;
    * Service provider for <code>ServiceDelegate</code> and
    * <code>Endpoint</code> objects.
    * <p>
    * @since JAX-WS 2.0
    public abstract class Provider {  .....
    static private final String DEFAULT_JAXWSPROVIDER
    = "com.sun.xml.internal.ws.spi.ProviderImpl";
    Edited by: mgb on Oct 7, 2008 3:59 PM

Maybe you are looking for

  • Can any one tell me how to use EXISTS clause inplace of IN operator.

    Hi All, Can any one tell me how to use EXISTS clause AND (JC.EMPL_ID, JC.EMPL_RCD) inplace of IN operator. SELECT COUNT (1) FROM SYSADM.OHR_PERS_CURR PC , SYSADM.OHR_JOB_CURR JC WHERE PC.EMPL_ID = JC.EMPL_ID AND (JC.EMPL_ID, JC.EMPL_RCD) in ( SELECT

  • HT6093 Thunderbolt firmware 1.2 - applied but not working

    I have tried to install the thunderbolt firmware 1.2 update. It said it succeeded but I still have blackout issues with my apple display and the firmware reported in the system report for my macbook pro is 23.4 instead of 26.2 (port micro version is

  • F-48 Error

    Hi Frenz, While Using Tcode F-48, when i fulfill the first screen of the transaction say date, vendor a/c, spl Gl, bank a/c, amt, Profit center enter.. till the first screen input it accepts properly but when for the second screen (DP made pstg key 2

  • Latest update to 10.6.4 Leaves Mail with no Viewer Window or Message Window

    I just used Software Update to update my Snow Leopard on my Mac Mini. I have the Core2Duo with Intel Graphics. After the update, I got a message that my accustomed Mail 4.2 would no longer work. I looked up the new Mail 4.3 and found that it will not

  • Windows 7 hang/freezes | jumping cursor

    For no appear reason my win7 will hang and freezes, ctrl/alt/del won't help and the only way is to force shut down on the power button. My usual programs running are: MS office, safari, Chrome, Window Explorer. Another issue is, as I am typing this,