JMS over iiop -- org.omg.CORBA.UNKNOWN
I have simple java client which tries to lookup a jms QueueConnectionFactory
over iiop .
The code is
ht.put(
Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory" );
ht.put( Context.PROVIDER_URL,"iiop://222.222.222.222:1111" );
ctx = new InitialContext( ht );
qConnectionFactory = (QueueConnectionFactory) ctx.lookup( "My queue con
factory"); < -- this line cause a
org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
com.sun.corba.se.internal.iiop.ReplyMessage.getSystemException(ReplyMessage.
java:93)
at
com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientR
esponseImpl.java:83)
at
com.sun.corba.se.internal.corba.RequestImpl.doInvocation(RequestImpl.java:32
1)
at com.sun.corba.se.internal.corba.RequestImpl.invoke(RequestImpl.java:223)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:156)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at Jms.<init>(Jms.java:75)
at Jms.main(Jms.java:22)
Anybody know if looking up JMS con factories is ok on iiop in WLs61sp2 ?
Thanks
"golibaar" <[email protected]> writes:
JMS over IIOP is not supported, not required by the spec and will not work.
This is a WLS 7.1 feature.
andy
I have simple java client which tries to lookup a jms QueueConnectionFactory
over iiop .
The code is
ht.put(
Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory" );
ht.put( Context.PROVIDER_URL,"iiop://222.222.222.222:1111" );
ctx = new InitialContext( ht );
qConnectionFactory = (QueueConnectionFactory) ctx.lookup( "My queue con
factory"); < -- this line cause a
org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
com.sun.corba.se.internal.iiop.ReplyMessage.getSystemException(ReplyMessage.
java:93)
at
com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientR
esponseImpl.java:83)
at
com.sun.corba.se.internal.corba.RequestImpl.doInvocation(RequestImpl.java:32
1)
at com.sun.corba.se.internal.corba.RequestImpl.invoke(RequestImpl.java:223)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:156)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at Jms.<init>(Jms.java:75)
at Jms.main(Jms.java:22)
Anybody know if looking up JMS con factories is ok on iiop in WLs61sp2 ?
Thanks
Similar Messages
-
IOP00010202 org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202
Hi,
I try to make a servlet call a method of an EJB that return an object. After the execution of the method (during the object result return I get th exception below.
Any idea ???
Thanks
Didier
[#|2004-10-28T15:54:09.424+0200|WARNING|sun-appserver-pe8.1|javax.enterprise.resource.corba.S1AS-ORB.rpc.protocol|_ThreadID=11;|"IOP00010202: (UNKNOWN) Unknown user exception thrown by the server - exception: java.lang.ClassCastException; message: null"
org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202 completed: Maybe
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.runtimeexception(ORBUtilSystemException.java:8508)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.convertThrowableToSystemException(CorbaMessageMediatorImpl.java:1921)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1871)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1824)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:261)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1683)
at com.sun.corba.ee.impl.protocol.SharedCDRClientRequestDispatcherImpl.marshalingComplete(SharedCDRClientRequestDispatcherImpl.java:155)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:132)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:150)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
at fr.adp.com.gxp.std.moteur.comm_host.EJB.src._Saisie_DynamicStub.execute(_Saisie_DynamicStub.java)
at servlet.IP.src.GxpServlet.doGet(Unknown Source)
at servlet.IP.src.GxpServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
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:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:273)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:262)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:618)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:500)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:375)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
Caused by: java.lang.ClassCastException
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.write(DynamicMethodMarshallerImpl.java:338)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.writeResult(DynamicMethodMarshallerImpl.java:430)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:127)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
... 40 more
|#]My war archive contains remote and home interface and the return object class.
The exception is rised between the return of the EJB's result and the reception of the result in my servlet.
thank you for your help
didier
This is my remote interface :
public interface Saisie extends EJBObject
public GxpOutput execute(String inputReq)
throws ResourceException,RemoteException;
This is my Home interface :
public interface SaisieHome extends EJBHome
public Saisie create() throws CreateException,RemoteException;
This a part of my servlet code :
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////servlet
InitialContext ic = new InitialContext();
Object objRef = ic.lookup("ejb/ejbGxp");
saisieHome = (SaisieHome)PortableRemoteObject.narrow(objRef, SaisieHome.class); //narrow is here
saisie = saisieHome.create();
output = (GxpOutput)saisie.execute(inputReq);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////end -
Org.omg.CORBA.UNKNOWN
Could somebody please reply as to why this error occurs when i try to publish the CORBA Server object name..
Thanks
askani
publish /home/odsdh04/employee employeeServer.EmployeeImpl employee.EmployeeHelper -user ods_dev -password perfect -service sess_iiop://kcodsh1:2481:D1TOP01
::: org.omg.CORBA.UNKNOWN
::::A non CORBA exception is caught by the ORB runtime on the server:::::::
org.omg.CORBA.UNKNOWN[minor=16, completed=MAYBE]
at com.visigenic.vbroker.orb.SE.read(SE.java:36)
at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(Compiled Code)
at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(Compiled Code)
at com.inprise.vbroker.CORBA.portable.ObjectImpl._invoke(Compiled Code)
at oracle.aurora.AuroraServices._st_LoginServer.O3Logon_A_Locale(Compiled Code)
at oracle.aurora.client.Login.authenticate(Login.java:35)
at oracle.aurora.jndi.sess_iiop.SessionCtx.login(SessionCtx.java:605)
at oracle.aurora.jndi.sess_iiop.SessionCtx.login(SessionCtx.java:599)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:309)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolImpl.java:100)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(Compiled Code)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:118)
at oracle.aurora.server.tools.sess_iiop.Publish.main(Publish.java:137)This indicates that an exception (probably a RuntimeException) was thrown on the server. I'd recommend checking the user dump trace file for hints.
-
DACF,BC4J,EJB,Java Web Start: org.omg.CORBA.INITIALIZE
Hi,
I'm trying to use Java Web Start with DACF-application having AMs deployed as Session EJB to O9IAS 1.0.2.0.0 NT.
During opening first iiop-session I get the error:
java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.visigenic.vbroker.orb.ORB minor code: 0 completed: No
at org.omg.CORBA.ORB.create_impl(Unknown Source)
at org.omg.CORBA.ORB.<clinit>(Unknown Source)
at oracle.aurora.jndi.orb_dep.Orb.init(Orb.java:287)
at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:75)
at oracle.aurora.jndi.orb_dep.IRFinder.getInitialReference(IRFinder.java:124)
at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.java:637)
at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:67)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java:161)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java:177)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSubcontext(ServiceCtx.java:205)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSubcontext(ServiceCtx.java:189)
at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.createSession(AuroraEJBAmHomeImpl.java:155)
at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.initRemoteHome(AuroraEJBAmHomeImpl.java:125)
at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.<init>(AuroraEJBAmHomeImpl.java:59)
at oracle.jbo.client.remote.ejb.aurora.AuroraEJBInitialContext.createJboHome(AuroraEJBInitialContext.java:47)
at oracle.jbo.common.JboInitialContext.lookup(JboInitialContext.java:72)
at javax.naming.InitialContext.lookup(InitialContext.java:276)
at oracle.dacf.dataset.connections.Connection._createAppModule(Connection.java:256)
at oracle.dacf.dataset.connections.Connection.connect(Connection.java:169)
at oracle.dacf.dataset.SessionInfo.connect(SessionInfo.java:1771)
at oracle.dacf.dataset.DbAccessImpl.connect(DbAccessImpl.java:450)
at oracle.dacf.control.swing.LoginDlg._connectToDB(LoginDlg.java:1754)
at oracle.dacf.control.swing.LoginDlg._okButtonClicked(LoginDlg.java:1689)
Could anybody comment the case and/or propose a workaround ?
(or even say that this works in someone's implementation)
Thanks,
Arkadi<<
java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
com.visigenic.vbroker.orb.ORB minor code: 0 completed: No
<<
com.visigenic.vbroker.orb.ORB is part of vbjorb.jar. make sure this file is listed in your archive tag. The jar file can be found in the lib directory of JDev installation
null -
Org.omg.CORBA.MARSHAL exception For JMX Notification
I am running Weblogic 9.2 java version 1.5.0_04 and I am tring to recieve JMX Notifications from a Custom MBean running in Weblogic but I keep recieving the following exception:
Jan 5, 2007 12:55:25 PM ClientNotifForwarder NotifFetcher-run
SEVERE: Failed to fetch notification, stopping thread. Error is: java.rmi.MarshalException: CORBA MARSHAL 0 Maybe; nested exception is:
org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
java.rmi.MarshalException: CORBA MARSHAL 0 Maybe; nested exception is:
org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:197)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
at org.omg.stub.javax.management.remote.rmi._RMIConnection_Stub.fetchNotifications(Unknown Source)
at javax.management.remote.rmi.RMIConnector$RMINotifClient.fetchNotifs(RMIConnector.java:1285)
at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.fetchNotifs(ClientNotifForwarder.java:508)
at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.run(ClientNotifForwarder.java:399)
at com.sun.jmx.remote.internal.ClientNotifForwarder$LinearExecutor$1.run(ClientNotifForwarder.java:83)
Caused by: org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
I received this first by trying JConsole that comes with JDK 1.5. This only occurs with JMX Notifications because I am able to execute the MBean operation of the MBean and I can see my custome MBean being executed in WebLogic but my custom mbean sends out a JMX Notifications and that causes
the above exception.
I wrote my own NotificationListener program to make sure that it is not a JConsole problem and I got the same problem. I tried using t3 and rmi protocol to see if one of them would work but neither worked. See the code below for the Notification Listener:
// String protocol = "t3";
//String jndiroot = "/jndi/";
String protocol = "rmi";
String jndiroot = new String("/jndi/iiop://" + hostName + ":" + port + "/");
String myserver = "weblogic.management.mbeanservers.domainruntime";
JMXServiceURL serviceURL = null;
try {
serviceURL = new JMXServiceURL(protocol, hostName, port, jndiroot + myserver);
} catch (MalformedURLException e1) {
logger.debug("malformedURLexception caught");
e1.printStackTrace();
Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, userName);
h.put(Context.SECURITY_CREDENTIALS, password);
// h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
try {
connector = JMXConnectorFactory.connect(serviceURL, h);
connection = connector.getMBeanServerConnection();
} catch (IOException e1) {
e1.printStackTrace();
logger.debug("The connection is : " + connection.toString());
ObjectName mbeanName = null;
try {
mbeanName = new ObjectName("Mbean:Name=com.test.bean,Type=TestMBean,Location=AdminServer");
logger.debug("Created MBeanObjectName: " + mbeanName.toString());
} catch (MalformedObjectNameException e) {
e.printStackTrace();
} catch (NullPointerException e) {
e.printStackTrace();
try {
logger.debug("The mbean is registered " + connection.isRegistered(mbeanName));
} catch (IOException e1) {
e1.printStackTrace();
try {
connection.addNotificationListener(mbeanName, this,null, null);
logger.debug("the connection is added a listener : " + connection.isInstanceOf(mbeanName, "com.test.bean.MBean"));
logger.debug("Listener registered ...");
//Keeping the remote client active.
System.out.println("waiting for notifications, got to log file for details....");
System.in.read();
} catch (InstanceNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
public void handleNotification(Notification n, Object arg1) {
logger.debug("******************************************");
logger.debug("* Notification count : " + counter++ + ", Notification received at "
+ new Date().toString());
logger.debug("* type = " + n.getType());
logger.debug("* message = " + n.getMessage());
logger.debug("* source = " + n.getSource());
logger.debug("* seqNum = "
+ Long.toString(n.getSequenceNumber()));
logger.debug("* timeStamp = " + new Date(n.getTimeStamp()));
logger.debug("* userData = " + n.getUserData());
logger.debug("*******************************************");
I commented out the t3 protocol but it doesn't work for both protocol types. I implemented a Notification Listener within WebLogic and that
worked right away using the following code below:
InitialContext ctx = new InitialContext();
rmbs = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
As the document "Developing Custom Management Utilities with JMX" on page 4-7 "Make Local Connections to the Runtime MBean Server" described.
Has anyone seem the above exception "Failed to fetch notification, stopping thread. Error is: java.rmi.MarshalException: CORBA MARSHAL 0" when a client is trying to receive JMX Notification? All help would be greatly appreciated.
Thanks,
AjayHi ajay,
How did u manage to access the mbeanserver in BEA ? Can u pls brief on that. Even I am trying the same. But, the MBEANSERVEROBJECT i create, eventhough has NO NULL value, is not able to acces the mbean. Any method access through this object creates an EXCEPTION. Please help me too. I will try solving ur problem too.:-)
Also, do i need to put my MBEAN CLASS in the weblogic server ? Should i create an APP SERVER in BEA ?
I appreciate ur early response, dude.. -
Error: org.omg.CORBA.Marshal
I installed the j2ee server on linux computers, and the deploytool on Windows computer.
if I try too deployment, wars I always these errors:
Error notifiying deployer of web component deployment org.omg.CORBA.MarshalHi Barbara,
i remember me, that i have problems with org.omg.CORBA.Marshal. I don't know, what you will do, but my problem was, that i use a deploytool from ibm (with ibm jdk) and want deploy the application under the sun jdk. It was (and is) not possible, why i use the ORB and this implementation is not the same in the jdks. I have experience with a client for ejb's over iiop.
Hope this help
Kuno -
J2ee tutorial on Windows 98 - runclient error org.omg.CORBA:NO_PERMISSION
I am using Win98...I have successfully run J2ee , deployement tool, and can run Web clients for the examples. However my runclient utility is giving errors.
javax.naming.CommunicationException: org.omg.CORBA.NO_PERMISSION: minor code:
0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
I am enclosing the codes for my .bat files.
J2EE.BAT FILE CONTENTS:
@echo off
rem
rem Set JAVA_HOME and J2EE_HOME before running this script.
rem
rem set JAVA_HOME to the path where you have Java 2 (JDK1.2) installed.
rem
rem set J2EE_HOME to the path where you have installed this package (EJB server).
rem
if not "%J2EE_HOME%" == "" goto CONT0
echo ERROR: Set J2EE_HOME before running this script.
goto END
:CONT0
if EXIST "%J2EE_HOME%\bin\setenv.bat" goto CONT1
echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
goto END
:CONT1
call %J2EE_HOME%\bin\setenv.bat
if not "%JAVA_HOME%" == "" goto CONT2
echo ERROR: Set JAVA_HOME before running this script.
goto END
:CONT2
if EXIST "%JAVA_HOME%\bin\java.exe" goto CONT3
echo ERROR: Set JAVA_HOME to the path of a valid jdk.
goto END
:CONT3
rem @echo on
rem for win98 %JAVACMD% %LISTEN_OPTIONS% -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=%JMS_HOME% -Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH% -Djms.properties=%J2EE_HOME%\config\jms_service.properties -Djava.security.policy==%J2EE_HOME%\lib\security\server.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH% com.sun.enterprise.server.J2EEServer %*
@echo on
%JAVACMD% -D%SSL_A%=%SSL_B% -D%JAAS_A%=%JAAS_B% -D%LISTEN_A%=%LISTEN_B% -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=%JMS_HOME% -Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH% -Djms.properties=%J2EE_HOME%\config\jms_service.properties -Djava.security.policy=%J2EE_HOME%\lib\security\server.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH% com.sun.enterprise.server.J2EEServer %
cd c:\j2sdkee1.3\bin
:END
SETENV.BAT FILE CONTENTS:
rem
rem Set JAVA_HOME and J2EE_HOME before running this script.
rem
rem first include user-specified definitions.
call %J2EE_HOME%\bin\userconfig.bat
if "%JMS_HOME%" == "" set JMS_HOME=%J2EE_HOME%
set LIBDIR=%J2EE_HOME%\lib
set LOCALEDIR=%J2EE_HOME%\lib\locale
set CLOUDSCAPE_INSTALL=%LIBDIR%\cloudscape
set CLASSESDIR=%LIBDIR%\classes
set JMS_CLASSESDIR=%JMS_HOME%\classes
set J2EEJARS=%LIBDIR%\j2ee.jar
set JAVATOOLS=%JAVA_HOME%\lib\tools.jar
set JAVAHELPJARS=%LIBDIR%\jhall.jar
rem JMS DB PATH must end in slash to specify a directory
set JMS_DB_PATH=%J2EE_HOME%\repository\%COMPUTERNAME%\db\
set SYSTEM_LIB_DIR=%LIBDIR%\system
set JMS_RI_JDBC=%SYSTEM_LIB_DIR%\cloudscape.jar;%SYSTEM_LIB_DIR%\tools.jar
set CLOUDJARS=%JMS_RI_JDBC%;%CLOUDSCAPE_INSTALL%\RmiJdbc.jar;%CLOUDSCAPE_INSTALL%\cloudclient.jar
set CPATH=%CLOUDJARS%;%CLASSESDIR%;%JMS_CLASSESDIR%;%J2EEJARS%;%LOCALEDIR%;%J2EE_CLASSPATH%;%JAVATOOLS%;%JAVAHELPJARS%
rem for win98 set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy
rem for win98 set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks
rem set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
rem for win98 set JAVACMD=%JAVA_HOME%\bin\java -Xmx128m %SSL_OPTIONS% %JAAS_OPTIONS%
set JAAS_A=java.security.auth.policy
set JAAS_B=%J2EE_HOME%\lib\security\jaas.policy
set SSL_A=javax.net.ssl.trustStore
set SSL_B=%J2EE_HOME%\lib\security\cacerts.jks
rem set LISTEN_A=-Dcom.sun.CORBA.connection.ORBListenSocket
set LISTEN_A=com.sun.CORBA.connection.ORBSocketFactoryClass
set LISTEN_B=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
@echo on
set JAVACMD=%JAVA_HOME%\bin\java -Xmx128m
RUNCLIENT.BAT FILE CONTENTS:
@echo off
rem
rem Set JAVA_HOME and J2EE_HOME before running this script.
rem
rem set JAVA_HOME to the path where you have Java 2 (JDK1.2) installed.
rem
rem set J2EE_HOME to the path where you have installed this package (EJB server).
rem
if not "%J2EE_HOME%" == "" goto CONT0
echo ERROR: Set J2EE_HOME before running this script.
goto END
:CONT0
if EXIST "%J2EE_HOME%\bin\setenv.bat" goto CONT1
echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
goto END
:CONT1
call %J2EE_HOME%\bin\setenv.bat
if not "%JAVA_HOME%" == "" goto CONT2
echo ERROR: Set JAVA_HOME before running this script.
goto END
:CONT2
if EXIST "%JAVA_HOME%\bin\java.exe" goto CONT3
echo ERROR: Set JAVA_HOME to the path of a valid jdk.
goto END
:CONT3
@echo on
%JAVACMD% -D%SSL_A%=%SSL_B% -D%JAAS_A%=%JAAS_B% -D%LISTEN_A%=%LISTEN_B% %VMARGS% -Djms.home=%JMS_HOME% -Djms.properties=%J2EE_HOME%\config\jms_client.properties -Djava.security.policy=%J2EE_HOME%\lib\security\client.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH%;%APPCPATH% com.sun.enterprise.appclient.Main %1 %2 %3 %4
:ENDI am answering my own question, I have all the bat files to successfully run J2ee on windows 98. Mail me at [email protected]
-
Hi,
I have a stupid CORBA error, can someone please help me to have a clue why this client gives me a hart time?
Properties props = new Properties();
props.put("org.omg.CORBA.ORBInitialPort", "1570");
props.put("org.omg.CORBA.ORBInitialHost", "192.168.10.44");
ORB orb = ORB.init(args, props);
org.omg.CORBA.Object obj = orb.resolve_initial_references("NameService");
NamingContextExt ctx = NamingContextExtHelper.narrow(obj);
org.omg.CORBA.BAD_OPERATION: vmcid: 0x2000 minor code: 2049 completed: No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(Unknown Source)
at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_0.getSystemException(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(Unknown Source)
at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(Unknown Source)
at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(Unknown Source)I too have the same error my friend.
I am trying to call a remote method of an entity bean when I get the same org.omg.CORBA.BAD_OPERATION message. -
RROR : org.omg.CORBA.INITIALIZE: can't instantiate default ORB
When a try to call stored procedure in java i have this error:
ERROR : org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
com.sun.corba.se.internal.iiop.ORB minor code: 0 completed: No
org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
com.sun.corba.se.internal.iiop.ORB minor code: 0 completed: No
at org.omg.CORBA.ORB.create_impl(ORB.java)
at org.omg.CORBA.ORB.init(ORB.java)
at HelloClient.hola(HelloClient.java:31)Laurent,
When are you getting this error ? Is this error coming from Oc4J or are you getting this error from JDeveloper 9i ?
regards
Debu Panda
Oracle -
Hi All
I am having following senerio with Sun One Application Server 7 on Win 2000.
UserRegistrationBean (Java Client) -> RegistrationBean (Session EJB) -> UserBean (Entity EJB)
The Java Client lookup and invokes Session EJB. It works fine.
Further, when the Session EJB calls the Entity EJB I get the following exception.
SEVERE: IOP5013: Unable to create reference: [org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 1015 completed: No]SEVERE: EJB5029: Exception getting ejb context : [UserBean]
SEVERE:
SEVERE: IOP5012: Some runtime exception ocurred in IIOP: [javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: Unable to create reference org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 1015 completed: No]
Any idea what could be wrong?
Thanks for the help.
Regards
SatishMake sure PrimaryKey class for entity has the equals
and hashcode methods implemented right.
You've to ensure that hashCode generated is
the same everytime for same primaryKey
and you do the right comparison for the
equals method.
HTH
-hima -
Org.omg.CORBA.INTERNAL
Here's my problem; I have a CORBA object thats able to launch
any native process through the use of Runtime.exec(...). When I use
this CORBA Object to launch a batch file that starts a JavaVM
to run another CORBA Object (say OBJ2) I get an error. The error happens
when OBJ2 tries to use the ORB.resolveinitialereferences("Rootpoa"). It raises the following
exception.
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No
at com.sun.corba.se.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:253)
at com.sun.corba.se.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:202)
at com.sun.corba.se.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:130)
at com.sun.corba.se.internal.POA.POAORB.getServerEndpoint(POAORB.java:489)
at com.sun.corba.se.internal.POA.POAImpl.pre_initialize(POAImpl.java:153)
at com.sun.corba.se.internal.POA.POAImpl.<init>(POAImpl.java:111)
at com.sun.corba.se.internal.POA.POAORB.makeRootPOA(POAORB.java:111)
at com.sun.corba.se.internal.POA.POAORB$1.evaluate(POAORB.java:129)
at com.sun.corba.se.internal.core.Future.evaluate(Future.java:28)
at com.sun.corba.se.internal.corba.ORB.resolveInitialReference(ORB.java:2485)
at com.sun.corba.se.internal.corba.ORB.resolve_initial_references(ORB.java:2420)
at services.LogServer.main(LogServer.java:94)
Does anyone know why this happens??
Thanks in advanceResolving the root POA tries to create a listener thread. Since your initial process already uses an ORB, it's already using that port, so OBJ2 can't use it.
Try specifying a different port for the second ORB to listen on. -
Org.omg.CORBA.IDLEntity Marshalling
I am using JDK 1.4 beta. I am working with 3 objects, one serializable object, one remote object, and one control object. The Control interface implements org.omg.CORBA.IDLEntity which implements Serializable.
The way the objects are embedded is as follows:-
Serializable object [ Remote object [Control object] ]
Now i want to send across the serializable object to the client but i want to send the remote object stub. Therefore i need to override the way the object is written into the output stream. But I have found no documentation on how IDLEntity types are marshalled across. So i am looking on how to invoke this marshalling.
Any help on this topic will be appreciated as i have been stuck on this for weeks now.
ThanksHi,
Now i want to send across the serializable object to
the client but i want to send the remote object stub.
Therefore i need to override the way the object is
written into the output stream. But I have found no
documentation on how IDLEntity types are marshalled
across. So i am looking on how to invoke this
marshalling.I'm a little unclear about your situation. How can a Remote object contain the IDLEntity object? If you want to send the Remote object (which would be done by default serialization or a writeObject method on your Serializable), it would get sent basically as an IOR, right?
More to your real question, though -- I believe an IDLEntity type is sent by the ORB by finding its Helper class and calling the write/read method. If you're programming in RMI-IIOP, though, and you're writing a class's writeObject method and you wish to send across an IDLEntity, you should still just call writeObject(<the object to send>) on the given ObjectOutputStream -- the ORB implementation should take care of finding and invoking on the Helper.
- Everett -
I have written a small application to interface with Domino server5.0 using IIOP. When I run the client application on HP UX using JDK 1.3.1.08, it works fine. When I deploy the client code within a OC4J container (version 9.0.3.0.0) the same code gives me the following error: org.omg.CORBA.INV_OBJREF: minor code: 1398079490 completed: No
I am able to run this application with the client deployed in OC4J version 9.0.3.0.0 using JDK version 1.3.1_02 on a Win NT4.0 system.
Any idea what's going wrong???
Thanks in advance . . .
Amitabh.I too have this problem with jdk1.3.1. Same code works fine with 1.2.2
I am connecting TAO Trading service from Java Client.
org.omg.CORBA.INV_OBJREF: minor code: 1398079490 completed: No
at com.sun.corba.se.internal.core.CodeSetComponentInfo.read(CodeSetComponentInfo.java:95)
at com.sun.corba.se.internal.core.Profile.<init>(Profile.java:114)
at com.sun.corba.se.internal.core.IOR.getProfile(IOR.java:278)
at com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.java:592)
at com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.java:578)
at com.sun.corba.se.internal.corba.TCUtility.unmarshalIn(TCUtility.java:222)
at com.sun.corba.se.internal.corba.AnyImpl.read_value(AnyImpl.java:359)
at com.sun.corba.se.internal.corba.RequestImpl.unmarshalParams(RequestImpl.java:403)
at com.sun.corba.se.internal.corba.RequestImpl.doInvocation(RequestImpl.java:369)
at com.sun.corba.se.internal.corba.RequestImpl.invoke(RequestImpl.java:223)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:156)
at TradingViewer.resolveRootNC(TradingViewer.java:72)
at TradingViewer.<init>(TradingViewer.java:44)
at TradingViewer.main(TradingViewer.java:39) -
When I run : j2ee -verbose.
I get the following error:
J2EE server listen port: 1050
org.omg.CORBA.INTERNAL: minor code: 1398079697 completed: No
at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:
256)
I have include j2ee.jar in my classpath.What's wrong??the bin folder of j2sdkee has a file called setEnv. THe file has reference to the port 1060. I changed the port and it worked for me.
-
NoClassDefFound org/omg/CORBA/UserException
I am attempting to install IFS 1.0.8 for a new instance on a Unix server 2.7 that already has an existing IFS 1.0.8 install against another database.
Following the creation of the second ORACLE_HOME, second instance, and the installing IFS, I attempt to run ifsconfig.
During ifsconfig I consistently receive the error NoClassDefFound error: org/omg/CORBA/UserException
This causes the ifs configuration to fail and therefore the successful install of IFS to fail.
Please help !!
nullDid you do a custom install of the 816 Database? If so please try the following.
If a "Custom" installation of Oracle 8.1.6 was done
with no installation of the OEM components (or at least
not all of them). Then the following is the minumum set of
additional installations which must be performed in order to
install the files which iFS depends on.
Perform the following steps on your Unix machine where you have
installed Oracle 8.1.6.
- Verify that you the following files are NOT present in
$ORACLE_HOME/lib (which causes the problem):
+ vbjorb.jar
+ vbjapp.jar
+ vbjtools.jar
- Run the Oracle Universal Installer for 8.1.6 by executing
./RunInstaller from your Installation CD
On the Available Products page, choose
"Oracle8i Enterprise Edition 8.1.6.0.0", and select Next
On the "Installation Types" Page, choose
"Custom", and select Next
On the "Available Product Components" page, choose
"Oracle Enterprise Manager Products 8.1.6.0.0"
"Oracle Enterprise Manager Client 2.1.0.0.0"
"Oracle Enterprise Manager DBA Management Pack"
You may deselect all other options, and select Next
On the Summary page, verify that under "New Installations" is
visigenics ORB 3.4" (among other items)
Select "Install" to complete the installation
After the installation is complete, verify that in your $ORACLE_HOME/lib
the following files ARE present:
+ vbjorb.jar
+ vbjapp.jar
+ vbjtools.jar
Rerun the Internet File System Configuration Assistant, by executing:
$ORACLE_HOME/ifs/bin/ifsconfig
Thank You.
Brian
Maybe you are looking for
-
Can you transfer music from an iPhone to iTunes?
i was just wondering if there is a way to get my music from my iPhone onto my iTunes on my Mac. my dell had a bad virus, so i gave it to a relative of mine to reinstall everything, and i told him to backup my itunes(which he forgot to do). so now i h
-
Help! I can't save to disc OR backup my iTunes Library! iTunes support instructions are to simply select 'File', then 'Library', then select 'Back Up to Disc', but when I try to the only options that appear are 'Organize Library...', 'Export Library.
-
How do I update from ios 10.8 to yosemite
how do I update from ios 10.8 to yosemite
-
Send cost centre and attendence type not filled automatically
Hello, I am configuring the time recording in ESS. I configured the recording profile and in cats2 it looks good. The send cost centre and attendence type get filled automatically. But when I do the same thing in ESS the values are not populated. Is
-
How to automatically printed Posted FI documents
Any idea about how to automatically print SAP FI documents as soon as they are posted? Regards Prabin