JMS SAF client paging directory definition ignored
The paging directory definition in our ClientSAF.xml file is ignored:
<weblogic-client-jms xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<persistent-store>
<directory-path>C:\Work\newaupload\jms</directory-path>
<synchronous-write-policy>Disabled</synchronous-write-policy>
</persistent-store>
<saf-agent>
<paging-directory>C:\Work\newaupload\jms-paging</paging-directory>
</saf-agent>
</weblogic-client-jms>
Instead of the directory given in the configuration, the JMS SAF client creates a directory called "paging" in the current directory. In our case, the current directory is where all the binaries are and which is not writable, i.e. the JMS client fails.
Is something wrong with the configuration? Or is this a bug?
Peter
Edited by peter05 at 05/30/2008 3:30 AM
Hi Peter,
For a server-side SAF with a file store, a paging directory would normally only be used internally for non-persistent messages - and I think client-side SAF would have the same behavior if it actually supports non-persistent messages in the first place.
I don't know if the SAF client supports non-persistent - as I hadn't really thought about it -- there doesn't seem to be much purpose in it given that the purpose of SAF is store-and-forward and the "store" part implies persist messages.
As a work-around, perhaps you can create the directory manually as read-only, then check to see if your app places any files in this directory. If it is, then your app could be creating non-persistent messages for store-and-forward, which likely isn't your intent -- non-persistent messages are not recovered on a restart, even if they are in a paging directory.
If there must be an active paging directory for some reason, I advise (A) contacting customer support to find a way to configure it uniquely and (B), as a work-around, using an operating level linked directory or some-such to redirect the "paging" directory name out of your read-only binary directory to a better place.
Hope this helps,
Tom
PS. In addition, it's a little strange to me that this directory name is hard-coded - what would happen if two SAF clients running in the same JVM attempted to use the same paging directory? Would they conflict with or even corrupt each-other?
Similar Messages
-
Im interested in using a WL Stand-Alone JMS SAF Client to send messages to a server-side JMS destination,
regardless of the servers availability.
This is for a J2SE Swing Application. There currently is no app server interaction.
I found the doc http://e-docs.bea.com/wls/docs92/client/saf_client.html
It describes almost everything except for what the actual client will look like.
Im stuck after "Modify Your JMS Client Applications.." section.
Questions:
A) Suggestions for other docs?
B) Is anyone using a Stand-Alone JMS SAF Client?
C) Does anyone know of any code examples?
The odd thing is that a search on the net for "JMS SAF Client" or variants of yields nothing other than the WL docs...
Thanks!I could not make stand-alone jms saf client work. Followed the doc, created ClientSAF.xml, made the change for intial-context factory. Tried using with provider_url and without it.
I am not using default queue and connection factory. The client code is working fine when I don't use saf, i.e. "weblogic.jndi.WLInitialContextFactory" and provider_url.
Getting following error:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassCastException: weblogic.security.service.SubjectManagerImpl]
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at weblogic.jms.safclient.agent.internal.ClientEnvironmentImpl.getContext(ClientEnvironmentImpl.java:76)
at weblogic.jms.forwarder.Forwarder.getInitialContext(Forwarder.java:334)
at weblogic.jms.forwarder.Forwarder.reconnect(Forwarder.java:210)
at weblogic.jms.forwarder.Forwarder.timerExpired(Forwarder.java:265)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:259)
at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused by: java.lang.ClassCastException: weblogic.security.service.SubjectManagerImpl
at weblogic.corba.client.ClientORBInitializer.initialize(ClientORBInitializer.java:106)
at weblogic.jndi.WLInitialContextFactory.<init>(WLInitialContextFactory.java:29)
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)
... 12 more
java.lang.ClassCastException: weblogic.security.service.SubjectManagerImpl
at weblogic.corba.client.ClientORBInitializer.initialize(ClientORBInitializer.java:106)
at weblogic.jndi.WLInitialContextFactory.<init>(WLInitialContextFactory.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)Stack level 1
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 javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at weblogic.jms.safclient.agent.internal.ClientEnvironmentImpl.getContext(ClientEnvironmentImpl.java:76)
at weblogic.jms.forwarder.Forwarder.getInitialContext(Forwarder.java:334)
at weblogic.jms.forwarder.Forwarder.reconnect(Forwarder.java:210)
at weblogic.jms.forwarder.Forwarder.timerExpired(Forwarder.java:265)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:259)
at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
disconnect stack trace finished
QUEUE NAME: jmssysmodule-ois!oisQueue -
Hello ,
Have a simple question about what jar files are required when using a safClient to connect to Weblogic.
Some of the jar's are ,
- weblogic.jar
- wlclient.jar
- wlfullclient.jar
- wlsafclient.jar
- wljmsclient.jar
Are all of these jars required in the classpath on client side ?
When we generate a wlfullclient.jar file using "java -jar wljarbuilder.jar" , Does this contain all the other jars ?
In other words does wlfullclient.jar contain/include rest of the jar's ?
Thanks,
Stacy.Hi,
In order to use JMS SAF client, you have the following options:
1. using wlsafclient.jar and wljmsclient.jar/wlclient.jar together;
2. using wlfullclient.jar, which contains wljmsclient.jar, wlclient.jar and wljmsclient.jar;
3. using weblogic.jar, which contains everything.
You'll get better performance if you use weblogic.jar.
If you are using a recent release of WebLogic Server, say after 11gR1PS3, you have another option -- use wlthint3cleint and wlsaft3client.jar together. This will also give you better performance compared to option 1 and 2 above.
-Dongbo -
JMS SAF client cannot forward messages - Caused by: javax.crypto.BadPadding
Hi,
I seem to be struggling with a problem that I'm not sure if I can ever find a solution.
I have a configured a local JMS client to forward my messages to a remote WLSB 9.2.
The local client is running JDK 1_0_14 on a windows platform.
The remote server is on IBM JRE on linux. Now I'm getting problems when the messages are forwarded by the local SAF client. The client does not seem to be able to decrypt the password I have in my SAFClient.xml. I have pretty much followed every line in the documentation of SAF client and has already revisited it a few times.
It seems to be something to do with the ClientSAFEncrypt utility that I was advised to get the encrypted password which I have put in the XML File. Here is the exception. Any help will be greatly appreciated.
All I know is it is something to do with encoding of the password, but I cannot get a clue what else.
<Mar 25, 2008 12:28:40 PM PDT> <Info> <Store> <BEA-280050> <Persistent store "SAFSTORE0V" opened: directory="C:\depot\javaSrc\logging\stores\default" writePolicy="Direct-Write" blockSize=512 directIO=false driver="NIO">
javax.naming.NamingException: Invalid password key to unlock the passwords in the configuration file [Root exception is weblogic.jms.common.JMSException: Invalid password key to unlock the passwords in the configuration file]
at weblogic.jms.safclient.jndi.InitialContextFactoryImpl.getNamingException(InitialContextFactoryImpl.java:31)
at weblogic.jms.safclient.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:162)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.netflix.messaging.ESBFactory.<init>(ESBFactory.java:103)
at com.netflix.messaging.ESBFactory.getFactory(ESBFactory.java:45)
at com.netflix.messaging.NFMessagingManager.getProducerHandle(NFMessagingManager.java:218)
at com.netflix.messaging.NFMessagingManager.initProducers(NFMessagingManager.java:730)
at com.netflix.messaging.NFMessagingManager.init(NFMessagingManager.java:863)
at com.netflix.messaging.NFMessagingManager.start(NFMessagingManager.java:1461)
at com.netflix.messaging.NFMessagingManager.start(NFMessagingManager.java:1628)
at com.netflix.logging.messaging.MessageDestinationDispatcher.startMessagingManager(MessageDestinationDispatcher.java:164)
at com.netflix.logging.messaging.MessageDestinationDispatcher.<init>(MessageDestinationDispatcher.java:25)
at com.netflix.logging.NFMessageAppender.append(NFMessageAppender.java:72)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:838)
at com.netflix.logging.log4jAdapter.Log4jLoggingAdapter.log(Log4jLoggingAdapter.java:64)
at com.netflix.logging.NFLogger.log(NFLogger.java:125)
at com.netflix.logging.LogManager.info(LogManager.java:152)
at com.netflix.logging.aggregator.Bucketer.init(Bucketer.java:92)
at com.netflix.logging.aggregator.Bucketer.<init>(Bucketer.java:80)
at com.netflix.logging.aggregator.TracerAggregator.<init>(TracerAggregator.java:29)
at com.netflix.logging.aggregator.TracerAggregator.<clinit>(TracerAggregator.java:20)
at com.netflix.logging.NFLogger.start(NFLogger.java:105)
at com.netflix.logging.LogManager.registerLogger(LogManager.java:67)
at com.netflix.logging.test.LoggingTest.sendDefault(LoggingTest.java:32)
at com.netflix.logging.test.LoggingTest.main(LoggingTest.java:19)
Caused by: weblogic.jms.common.JMSException: Invalid password key to unlock the passwords in the configuration file
at weblogic.jms.safclient.admin.ConfigurationUtils.doRemoteContexts(ConfigurationUtils.java:475)
at weblogic.jms.safclient.agent.AgentManager.<init>(AgentManager.java:54)
at weblogic.jms.safclient.ClientSAFDelegate.open(ClientSAFDelegate.java:65)
at weblogic.jms.safclient.ClientSAFImpl.open(ClientSAFImpl.java:62)
at weblogic.jms.safclient.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:160)
... 30 more
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_af.b(DashoA12275)
at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA12275)
at javax.crypto.Cipher.doFinal(DashoA12275)
at weblogic.jms.common.SecHelper.decryptString(SecHelper.java:140)
at weblogic.jms.safclient.admin.ConfigurationUtils.doRemoteContexts(ConfigurationUtils.java:473)
... 34 more
java.lang.IllegalStateException: Cannot create context: Invalid password key to unlock the passwords in the configuration file
at com.netflix.messaging.ESBFactory.<init>(ESBFactory.java:106)
at com.netflix.messaging.ESBFactory.getFactory(ESBFactory.java:45)
at com.netflix.messaging.NFMessagingManager.getProducerHandle(NFMessagingManager.java:218)
at com.netflix.messaging.NFMessagingManager.initProducers(NFMessagingManager.java:730)
at com.netflix.messaging.NFMessagingManager.init(NFMessagingManager.java:863)
at com.netflix.messaging.NFMessagingManager.start(NFMessagingManager.java:1461)
at com.netflix.messaging.NFMessagingManager.start(NFMessagingManager.java:1628)
at com.netflix.logging.messaging.MessageDestinationDispatcher.startMessagingManager(MessageDestinationDispatcher.java:164)
at com.netflix.logging.messaging.MessageDestinationDispatcher.<init>(MessageDestinationDispatcher.java:25)
at com.netflix.logging.NFMessageAppender.append(NFMessageAppender.java:72)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:838)
at com.netflix.logging.log4jAdapter.Log4jLoggingAdapter.log(Log4jLoggingAdapter.java:64)
at com.netflix.logging.NFLogger.log(NFLogger.java:125)
at com.netflix.logging.LogManager.info(LogManager.java:152)
at com.netflix.logging.aggregator.Bucketer.init(Bucketer.java:92)
at com.netflix.logging.aggregator.Bucketer.<init>(Bucketer.java:80)
at com.netflix.logging.aggregator.TracerAggregator.<init>(TracerAggregator.java:29)
at com.netflix.logging.aggregator.TracerAggregator.<clinit>(TracerAggregator.java:20)
at com.netflix.logging.NFLogger.start(NFLogger.java:105)
at com.netflix.logging.LogManager.registerLogger(LogManager.java:67)
at com.netflix.logging.test.LoggingTest.sendDefault(LoggingTest.java:32)Hi,
I seem to be struggling with a problem that I'm not sure if I can ever find a solution.
I have a configured a local JMS client to forward my messages to a remote WLSB 9.2.
The local client is running JDK 1_0_14 on a windows platform.
The remote server is on IBM JRE on linux. Now I'm getting problems when the messages are forwarded by the local SAF client. The client does not seem to be able to decrypt the password I have in my SAFClient.xml. I have pretty much followed every line in the documentation of SAF client and has already revisited it a few times.
It seems to be something to do with the ClientSAFEncrypt utility that I was advised to get the encrypted password which I have put in the XML File. Here is the exception. Any help will be greatly appreciated.
All I know is it is something to do with encoding of the password, but I cannot get a clue what else.
<Mar 25, 2008 12:28:40 PM PDT> <Info> <Store> <BEA-280050> <Persistent store "SAFSTORE0V" opened: directory="C:\depot\javaSrc\logging\stores\default" writePolicy="Direct-Write" blockSize=512 directIO=false driver="NIO">
javax.naming.NamingException: Invalid password key to unlock the passwords in the configuration file [Root exception is weblogic.jms.common.JMSException: Invalid password key to unlock the passwords in the configuration file]
at weblogic.jms.safclient.jndi.InitialContextFactoryImpl.getNamingException(InitialContextFactoryImpl.java:31)
at weblogic.jms.safclient.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:162)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.netflix.messaging.ESBFactory.<init>(ESBFactory.java:103)
at com.netflix.messaging.ESBFactory.getFactory(ESBFactory.java:45)
at com.netflix.messaging.NFMessagingManager.getProducerHandle(NFMessagingManager.java:218)
at com.netflix.messaging.NFMessagingManager.initProducers(NFMessagingManager.java:730)
at com.netflix.messaging.NFMessagingManager.init(NFMessagingManager.java:863)
at com.netflix.messaging.NFMessagingManager.start(NFMessagingManager.java:1461)
at com.netflix.messaging.NFMessagingManager.start(NFMessagingManager.java:1628)
at com.netflix.logging.messaging.MessageDestinationDispatcher.startMessagingManager(MessageDestinationDispatcher.java:164)
at com.netflix.logging.messaging.MessageDestinationDispatcher.<init>(MessageDestinationDispatcher.java:25)
at com.netflix.logging.NFMessageAppender.append(NFMessageAppender.java:72)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:838)
at com.netflix.logging.log4jAdapter.Log4jLoggingAdapter.log(Log4jLoggingAdapter.java:64)
at com.netflix.logging.NFLogger.log(NFLogger.java:125)
at com.netflix.logging.LogManager.info(LogManager.java:152)
at com.netflix.logging.aggregator.Bucketer.init(Bucketer.java:92)
at com.netflix.logging.aggregator.Bucketer.<init>(Bucketer.java:80)
at com.netflix.logging.aggregator.TracerAggregator.<init>(TracerAggregator.java:29)
at com.netflix.logging.aggregator.TracerAggregator.<clinit>(TracerAggregator.java:20)
at com.netflix.logging.NFLogger.start(NFLogger.java:105)
at com.netflix.logging.LogManager.registerLogger(LogManager.java:67)
at com.netflix.logging.test.LoggingTest.sendDefault(LoggingTest.java:32)
at com.netflix.logging.test.LoggingTest.main(LoggingTest.java:19)
Caused by: weblogic.jms.common.JMSException: Invalid password key to unlock the passwords in the configuration file
at weblogic.jms.safclient.admin.ConfigurationUtils.doRemoteContexts(ConfigurationUtils.java:475)
at weblogic.jms.safclient.agent.AgentManager.<init>(AgentManager.java:54)
at weblogic.jms.safclient.ClientSAFDelegate.open(ClientSAFDelegate.java:65)
at weblogic.jms.safclient.ClientSAFImpl.open(ClientSAFImpl.java:62)
at weblogic.jms.safclient.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:160)
... 30 more
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_af.b(DashoA12275)
at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA12275)
at javax.crypto.Cipher.doFinal(DashoA12275)
at weblogic.jms.common.SecHelper.decryptString(SecHelper.java:140)
at weblogic.jms.safclient.admin.ConfigurationUtils.doRemoteContexts(ConfigurationUtils.java:473)
... 34 more
java.lang.IllegalStateException: Cannot create context: Invalid password key to unlock the passwords in the configuration file
at com.netflix.messaging.ESBFactory.<init>(ESBFactory.java:106)
at com.netflix.messaging.ESBFactory.getFactory(ESBFactory.java:45)
at com.netflix.messaging.NFMessagingManager.getProducerHandle(NFMessagingManager.java:218)
at com.netflix.messaging.NFMessagingManager.initProducers(NFMessagingManager.java:730)
at com.netflix.messaging.NFMessagingManager.init(NFMessagingManager.java:863)
at com.netflix.messaging.NFMessagingManager.start(NFMessagingManager.java:1461)
at com.netflix.messaging.NFMessagingManager.start(NFMessagingManager.java:1628)
at com.netflix.logging.messaging.MessageDestinationDispatcher.startMessagingManager(MessageDestinationDispatcher.java:164)
at com.netflix.logging.messaging.MessageDestinationDispatcher.<init>(MessageDestinationDispatcher.java:25)
at com.netflix.logging.NFMessageAppender.append(NFMessageAppender.java:72)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:838)
at com.netflix.logging.log4jAdapter.Log4jLoggingAdapter.log(Log4jLoggingAdapter.java:64)
at com.netflix.logging.NFLogger.log(NFLogger.java:125)
at com.netflix.logging.LogManager.info(LogManager.java:152)
at com.netflix.logging.aggregator.Bucketer.init(Bucketer.java:92)
at com.netflix.logging.aggregator.Bucketer.<init>(Bucketer.java:80)
at com.netflix.logging.aggregator.TracerAggregator.<init>(TracerAggregator.java:29)
at com.netflix.logging.aggregator.TracerAggregator.<clinit>(TracerAggregator.java:20)
at com.netflix.logging.NFLogger.start(NFLogger.java:105)
at com.netflix.logging.LogManager.registerLogger(LogManager.java:67)
at com.netflix.logging.test.LoggingTest.sendDefault(LoggingTest.java:32) -
How do you create Client Data Model Definition (cpx) in 10.1.2 struts proj
I recently upgraded to 10.1.2 and am starting a new project with a BC4J model project and a struts view project, for the life of me I can't see how to create a New Client Data Model Definition in 10g! Searching through the help I couldn't find a clear answer either. Anyone? I must be missing something simple.
Anyone know what I'm talking about?
-
How to create a JMS standalone client with SAS PE8.2 ?
HI everyone,
I use Creator2.1 and I want to write a JMS standalone client that communicate through JMS with a webapp built with Creator.
My pb is that I dont know how to set up initialContext.
Hashtable env=new Hashtable();
env.put(Context.PROVIDER_URL, "mq://localhost:28676/jms");
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
context = new InitialContext(env);
factory = (TopicConnectionFactory) context.lookup(factoryName);
For example this code doesnt work and I have the following exception when I try to run my client.
29 sept. 2006 10:31:03 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
ATTENTION: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2257)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2278)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:208)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:221)
at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:104)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:146)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:286)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:89)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:128)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:288)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.orange.clara.Main.main(Main.java:59)
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:336)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:191)
... 12 more
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:320)
... 13 more
Does anyone had already met this pb ?
Regards
R�gisPlease refer to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6377822, particularly the evaluation. Could your situation be the same too (i.e server ip address changing dynamically)? Also, which OS are you using and do you have any firewalls setup that prevents access to port 3700?
-
JMS Java client - JMSExcepiton initializeConnection
Hello,
I'm working on a JMS java client to connect to an OC4J instance that's residing in a Oracle Application Server. I have the client jars in the Java client classpath and in fact the JNDI lookup for the connection factory and topic succeeded but when I try to create the connection it fails with the following error:
javax.jms.JMSException: initializeConnection
at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1050)
at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1130)
at com.evermind.server.jms.TCPJMSRemoteServer.initializeConnection(TCPJM
SRemoteServer.java:161)
at com.evermind.server.jms.TCPJMSRemoteServer.initializeConnection(TCPJM
SRemoteServer.java:114)
at com.evermind.server.jms.TCPJMSRemoteServer.<init>(TCPJMSRemoteServer.
java:72)
at com.evermind.server.jms.EvermindConnection.<init>(EvermindConnection.
java:124)
at com.evermind.server.jms.EvermindTopicConnection.<init>(EvermindTopicC
onnection.java:69)
at com.evermind.server.jms.EvermindTopicConnectionFactory.unprivileged_c
reateTopicConnection(EvermindTopicConnectionFactory.java:96)
at com.evermind.server.jms.EvermindTopicConnectionFactory.access$000(Eve
rmindTopicConnectionFactory.java:41)
at com.evermind.server.jms.EvermindTopicConnectionFactory$1.execute(Ever
mindTopicConnectionFactory.java:78)
at com.evermind.server.jms.RemoteClientProxy.doSecureOp(RemoteClientProx
y.java:94)
at com.evermind.server.jms.EvermindTopicConnectionFactory.createTopicCon
nection(EvermindTopicConnectionFactory.java:75)
at com.evermind.server.jms.EvermindTopicConnectionFactory.createTopicCon
nection(EvermindTopicConnectionFactory.java:66)
at beis_test.BEISConsumer.consumeMessage(BEISConsumer.java:51)
at beis_test.BEISConsumer.main(BEISConsumer.java:193)
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 oracle.oc4j.appclient.ApplicationClientLauncherImpl.launch(Applicatio
nClientLauncherImpl.java:107)
at oracle.oc4j.appclient.AppClientContainer.main(AppClientContainer.java
:48)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.evermind.server.jms.TCPJMSRemoteServer$2.execute(TCPJMSRemoteServ
er.java:318)
at com.evermind.server.jms.RemoteClientProxy.doSecureOp(RemoteClientProx
y.java:94)
at com.evermind.server.jms.TCPJMSRemoteServer.makeSocket(TCPJMSRemoteSer
ver.java:315)
at com.evermind.server.jms.TCPJMSRemoteServer.initializeConnection(TCPJM
SRemoteServer.java:121)
... 18 more
JMSConsumer: Context Closed.
If I run this on the local machine it works - but it doesn't when I attempt it from my workstation. Any help will be greatly appreciated.
Thanks in advance,
BarryJNDI lookups go through the RMI port, which you apparently have configured correctly. JMS operations (starting with and including JMS connection creation) go through the JMS port (which for OC4J JMS is always a different port than the RMI port). The JMS port is specified where the connection factory is configured -- in jms.xml.
-
BC4J Client Data Model Definition Wizard does not dismiss
I'm a newbie trying to learn JDeveloper on my own to advance my career. I am following examples given in the Oracle9i JDeveloper Handbook by Koletzke, Dorsey, and Faderman. Everything has worked great so far until now. With the BC4J Client Data Model Definition Wizard, I make it all the way to the last screen and press "Finish". The message window displays several lines of compilation type messages concerning my BC4J components and ends with something along the lines of "compilation success, errors = 0". The appropriate .cpx file gets created and appears under the project in the navigator. However the Wizard never dismisses no matter how long I leave it open (30 hours and counting), and if I open the .cpx file in a text editor, it is empty. It's as if the processing gets hung and never completes. What am I missing and/or where do I look for additional error messages or help??
Anyone know what I'm talking about?
-
Using the SAF client from the wlfullclient.jar in Tomcat or Jetty?
I'm trying to use the SAF client in Tomcat and Jetty and if I use the wlfullclient.jar I get the following error when I start the application:
java.lang.InternalError: error initializing kernel caused by: java.lang.AssertionError: Duplicate initialization of WorkManager
If I use the "thin" client jars everything works fine. Unfortunately I need to be able to use the full client in some cases. Is there some way to get this to work or is there a conflict between the Weblogic classes and the other Servlet containers?
Edited by mhellkamp at 08/30/2007 3:42 PMI believe the conflict here is with the Tomcat/Jetty WorkManager. I don't think the client was inteneded to run insides another container. That's why you're getting that error of duplicate initialization of WorkManager.
Why not replace the Tomcat/Jetty with another WebLogic instance? :) -
WebLogic 10.0 JMS Thin Client and JVM 1.4
As mentioned in [WebLogic JMS Thin Client|http://download.oracle.com/docs/cd/E11035_01/wls100/client/jms_thin_client.html#wp1026979], it can be used on JVM 1.4 client, but it seems that wljmsclient.jar and wlclient.jar compiled using java 1.5 compiler with no 1.4 compatibility.
Where can I get a 1.4 complied version of this jars for WebLogic 10 ?
Edited by: user10385140 on 02.10.2008 2:32Hi,
The doc is correct that the 1.4 JVM is supported for thin 10.0 clients, but note that 1.4 is not supported for 10.3 (the latest version). If you confirm that there's a problem, I recommend contacting customer support. Meanwhile, as a work-around, you can use a client jar from an earlier version (such as 9.2 at the latest MP).
The latest updated version of the 10.0 client doc is at http://edocs.bea.com/wls/docs100/client/basics.html, the link you provided points to an older version of the edoc.
You might want to look at using a generated "full client" rather than a thin client unless a smaller jar size is important in your use case. The reasoning is stated in the updated edoc.
Regards,
Tom Barnes
WebLogic JMS Developer Team
Edited by: TomB on Oct 2, 2008 6:52 AM -
Classpath for JMS standalone client
Hi,
I observed some problem, when I try to start my JMS client application. If in classpath is oc4j.jar it works, but when I replace oc4j.jar with oc4jclient.jar doesn't
I notice the message:
Exception in thread "main" java.lang.NoClassDefFoundError: com/evermind/server/jms/EvermindXAConnectionFactory
at com.evermind.server.jms.ConnectInfo.getPass(ConnectInfo.java:98)
at com.evermind.server.jms.EvermindTopicConnectionFactory.createTopicCon
nection(EvermindTopicConnectionFactory.java:83)
at sapconnector.MaterialMoverClient.main(MaterialMoverClient.java:52)
the line no. 52 exactly means:
TopicConnection connection = factory.createTopicConnection();
What the OC4J client jar (oc4jclient.jar) is not enough for starting JMS standalone client?
regards
KrzysztofHi, thanks for the reply.
Well, I figured out that problem. It was my jar file. One of the jar file, which is imqjmsra.jar wasn't really the right one and that was giving me the problem. Well, at least that is working not, but I am having new problems.
Right, I have been trying to make this work for about three days now. The truth is that my standalone JMS does work, when it is running on the same machine where the J2EE Server is located, but I am trying to make my JMS standalone client to connect to J2EE server from different location. Now I am getting connection refused error. Well, I guess I will be keep trying util I get this working. -
I am developing a JMS thin client application hosted on a seperate UNIX box than
the JMS server which is provided by a third party.
Are wljmsclient.jar and wlclient.jar files from BEA Weblogic workshop 8.1 the
only JMS API
that I need for my JMS thin client application?
Is there any licensing fees for using these two jar files to build JMS thin client
applications?
Thanks
Yazid Benkhellat wrote:
> I am developing a JMS thin client application hosted on a seperate UNIX box than
> the JMS server which is provided by a third party.
> Are wljmsclient.jar and wlclient.jar files from BEA Weblogic workshop 8.1 the
> only JMS API
> that I need for my JMS thin client application?
Yes, unless you are using WorkShop WebService APIs. I'm not
sure if you need more (post to work-shop newsgroups to find out).
> Is there any licensing fees for using these two jar files to build JMS thin client
> applications?
No!
> Thanks
>
Tom, BEA
-
Booting WLS Java classes for JMS C Client
** Workshop 8.1 Beta **
I am trying to boot the WLS server with the WLS Java classes (used for supporting
the JMS C Client from dev2dev) contained in the CLASSPATH. The JVM is exiting
with the attached error.
I have removed the credentials in the config.xml as suggested by the error log.
Any ideas? Thanks, Craig.
[errors.txt]
Problem with loading JMSCHandler.class in the class loader. Added JMSCHandler.class
to weblogic.jar and problem was resolved..
"craig" <[email protected]> wrote:
>
>
>
>** Workshop 8.1 Beta **
>
>I am trying to boot the WLS server with the WLS Java classes (used for
>supporting
>the JMS C Client from dev2dev) contained in the CLASSPATH. The JVM is
>exiting
>with the attached error.
>
>I have removed the credentials in the config.xml as suggested by the
>error log.
>
>Any ideas? Thanks, Craig.
-
Hi,
I want to use JMS like the api to communicate 2 applications, but i'm having a problem because it can't find the variables for JNDI. I have been looking for a solution for this, and i have foud that this should be in a container in a server to find this variables. The problem is that the application which will use that is just a simple client installed in any computer, and not in a server so... it will not have any container or server to look for the variables.
What should I do?
Excuse me for my English
Thanks in advance.Let's start with a JMS concept.
JMS only specify the interface that the JMS provider should expose. Consequently, there is no constraints on how the messaging implementation is done, only how the external behavior should be. So, when dealing with a real application, you need real classes. The usual Java answer is to use a class factory. Provide an Interface to a factory and it will return the real implementation to you. In JMS, this concept goes further, with the notion of Object Store. The JMS objects used for the connection definitions, such as the connection factory, the queues and topics, are stored in a location that can be accessed using JNDI. Using this concept, the JMS application can then be reused with multiple JMS providers.
JNDI is a simple, but powerful, mean of accessing to a persistent location (file, ldap, DB) in which you can retrieve the object definition, and use them in the application. In Open MQ, You can use the file system or ldap to store the objects. When using the application server, you can also use its JNDI.
The specific definition on how to use the JNDI should be described in the programmer's guide or the system administrator's guide for the JMS provider you are using. If you can specify which one you are using, people on this forum may be better equipped to provide you with some guidance. Usually, the JNDI variable are set as properties for the application before making the call to JNDI.
BTW, you do not need a "server" to use JMS. But you will need one of the machines to host the broker so that each client machines would know where to connect.
HTH,
TE -
We have installed RM client in the POC server .
Installed Deployment Agent in Dev server .
We created Configuration stages for POC->Dev.
We created a template with x copy deployer and selected source as build definition.
While releasing we faced following issue ,
The release was success in POC (Where RM client is installed), but in DEV environment (Which is different server)it got rejected because of the error
"Package location(Path) does not exist or deployer user does not have access"Hi Dhamayandhi
There is quite a bit to do to get RM working successfully. I have a soup-to-nuts guide on implementing continuous delivery with TFS and RM
here.
Cheers - Graham
Blog:
http://pleasereleaseme.net LinkedIn:
Maybe you are looking for
-
I've just acquired an Iphone 4s 32gb model. If I take many photos on a trip, which together with the apps already installed, they will soon fill up the memory. What is the best way of storing them till I get home and d/l to my iMac? Is it possible
-
Connection failure when connecting to the net with...
I hope someone can help me. I have got Nokia PC suite on my PC. I often use it to connect to the net. Just recently I had a few viruses on my pc and now since they have been cleaned off I keep getting a connection failure when I try to connect. I hav
-
RV180W - Access Rules Don't Work
Hi, We have a RV180W and the Access Rules will not work. I'm trying to block HTTP and HTTPS services for a specific workstation on our LAN, but the access rules don't seem to be working. I've also tried blocking different services as well as ANY se
-
How do you slow down Siri's voice speed?
How do you slow down Siri's voice speed?
-
SOS! I suddenly can't read pdf files.
I got a new Mac Book Air in September and it has been great. Today I suddenly started having trouble viewing PDF files on a government website. I was prompted to update my Adobe and did so. Now, every time I attempt to open any online pdf file I get