JBoss as RMI/JRMP server
Is there any way to use JBoss as RMI/JRMP server, that is, could I use JBoss instead of rmiregistry?
What runs on JBoss 1099?
Can you bind a RemoteObject created by an EJB to the JNDI registry so remote clients can access it? I'm having problems when I try to bind it:
javax.naming.CommunicationException [Root exception is java.rmi.MarshalException: Invalid remote object]
13:45:57,456 INFO [STDOUT] at org.jnp.interfaces.NamingContext.bind(NamingContext.java:511)
13:45:57,456 INFO [STDOUT] at org.jnp.interfaces.NamingContext.bind(NamingContext.java:469)
13:45:57,456 INFO [STDOUT] at javax.naming.InitialContext.bind(InitialContext.java:355).
13:45:57,535 INFO [STDOUT] Caused by: java.rmi.MarshalException: Invalid remote object
13:45:57,536 INFO [STDOUT] at java.rmi.server.RemoteObject.writeObject(RemoteObject.java:342)
13:45:57,536 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
13:45:57,537 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
13:45:57,537 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
13:45:57,537 INFO [STDOUT] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
13:45:57,538 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
13:45:57,538 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
13:45:57,539 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
13:45:57,539 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
13:45:57,540 INFO [STDOUT] at java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
13:45:57,540 INFO [STDOUT] at org.jnp.interfaces.MarshalledValuePair.<init>(MarshalledValuePair.java:44)
13:45:57,541 INFO [STDOUT] at org.jnp.interfaces.NamingContext.bind(NamingContext.java:494)
13:45:57,541 INFO [STDOUT] ... 46 moreThat's when I try to bind to a string like "/blah/blah".
If I try with "rmi:/blah/blah" it says:
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
Plus another 500 exception lines. ;)
Any ideas?
Similar Messages
-
How to create a RMI/JRMP service
I created a construct of my RMI/JRMP following the example: ClientReceiver, Customer, QueryServer, ClientReceiverImplementation, CustomerImplementation, QueryServerImplementation, and so on. then i made the stub and skeleton(rmic -d ...). compilation is right too, but i got the error at " Naming.rebind("localhost:8088/hello", queryserverImpl)", failure as follow:
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
at java.net.Socket.<init>(Socket.java:262)
at java.net.Socket.<init>(Socket.java:100)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:120)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at zyz.rmi.queryservicejrmp.QueryServerImplementation.main(QueryServerImplementation.java:157)
can help me ??Either grant AllPermissions in your policy file or the specific permissions you ought to mention over there.
There are a no. of permissions that can be mentioned in your permission file. The general idea is that you supply your application in a signed JAR file as a code aource and supply a policy file which contains protection domain for that code source, listing the permissions granted to the application.
Use java.security.debug=access to discover which permission your application needs -
RMI Connector Server not running in java 1.4
I have an application using sun JDMK implementation which is running fine in java 1.3 As I go to java 1.4, the RMI connector server is not running, the state goes to OFFLINE. I don't see any exception except that the server doesn't stay alive. Any idea on the problem ?
If you have the possibility of changing your application so that it uses the RMI connector defined by the JMX Remote API, then I would strongly encourage you to do so. You can get an implementation from http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/download.jsp (look for JMX Remote API Reference Implementation).
If you don't have the option of doing this in the short term, then you could try turning on JDMK traces by calling com.sun.jdmk.TraceManager.parseTraceProperties() in the main method of your application, and specifying -DLEVEL_DEBUG on the command-line. You will probably see some logging information that will help you diagnose your problem.
�amonn McManus -- JMX Spec Lead -- http://weblogs.java.net/blog/emcmanus -
Weblogic/rmi/extensions/server/Stub
Hello,
I have a small batch program trying to connect to WLS8.1 but get following Exception. I do have weblogic.jar in my CLASSPATH.
Any ideas guys?
java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stub
ThanksA B <> writes:
There were some changes in the stub architecture between 8.1 and 9.0, not sure if this is what you are running into - but it might be
andy
Hello,
I have a small batch program trying to connect to WLS8.1 but get following Exception. I do have weblogic.jar in my CLASSPATH.
Any ideas guys?
java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stub
Thanks -
JBOSS 4.0 Application Server start up problem?
1. JBOSS Application Server start up problem?
I have installed the JBOSS 4.0 application server in eclipse 3.4(Ganymede) in order to work with the adempiere open source ERP.When I start the JBOSS server,It displays the message “Server started in Xm:XXs:XXXms” in the console window.But the progress bar in server window is still running.Once the time out is over,it displays the message server cannot be started.
What should I do in order to make eclipse know that the server is started(message in console as server started) and set its status to “Started”?
2.Is it possible to copy and paste the .war created in eclipse 3.4 using JBOSS 4.0 to Glassfish v2 which requires archive file .ear form in NetBeans IDE 6.1?i also noticed when I start the server some times the first line it display in the container will be starting Microcontainer some times it diaplays microkernel?You can find out reason based on that also?
Actually I was using 8080 port for my Oracle 10g Express Edition.Even when I change the port in server view,I had same problem.In order to recover from the problem,I finally changed my database port,My Jboss 4.0 has started succesfully. When I access the JBOSS in URL http://localhost:8080/jmx-console,i got the error can you tell me what can i do?
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
root cause
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
Apache Tomcat/5.0.28 -
SEVERE Failed to created RMI-IIOP server because: null
i use jdk1.3.1_04, j2sdkee1.3 on Windows 2000 Professional.
When i tried to start J2EE server using "j2ee -verbose", log file shows the message "SEVERE Failed to created RMI-IIOP server because: null" .
I have been looking for the reason of this message in this forum...
but it seems i cant find it..
PLEASE SOMEBODY HELP ME !!!! i really dont know the reason..
TIAscreen message is the following.
C:\>C:\jdk1.3.1_04\bin\java -Xmx128m -Djavax.net.ssl.trustStore=C:\j2sdkee1.3\li
b\security\cacerts.jks -Djava.security.auth.policy=C:\j2sdkee1.3\lib\security\ja
as.policy -Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERS
ISTENT_SSL:1060 -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.
xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=C:\j2sdkee1.3
-Dcom.sun.jms.service.jdbc.dbpath=C:\j2sdkee1.3\repository\lobtae\db\ -Djms.prop
erties=C:\j2sdkee1.3\config\jms_service.properties -Djava.security.policy==C:\j2
sdkee1.3\lib\security\server.policy -Djava.security.auth.login.config=C:\j2sdkee
1.3\lib\security\login.config -Dcom.sun.enterprise.home=C:\j2sdkee1.3 -classpath
C:\j2sdkee1.3\lib\system\cloudscape.jar;C:\j2sdkee1.3\lib\system\tools.jar;C:\j
2sdkee1.3\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3\lib\cloudscape\cloudclient.ja
r;C:\j2sdkee1.3\lib\classes;C:\j2sdkee1.3\classes;C:\j2sdkee1.3\lib\j2ee.jar;C:\
j2sdkee1.3\lib\locale;;C:\jdk1.3.1_04\lib\tools.jar;C:\j2sdkee1.3\lib\jhall.jar
com.sun.enterprise.server.J2EEServer -verbose
J2EE server listen port: 1050
Naming service started:1050
Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloudscap
eDB;create=true
Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscape
DB;create=true
Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:CloudscapeDB
;create=true
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.co
re.RemoteXaDataSource@1318b
Starting JMS service...
C:\> -
JBoss + java.rmi.MarshalException: Socket timed out
Hello.
I'm not author of the software, I've just been transfered to try solve this problem:
I've got an client application, an server app, JBoss, and Oracle DB.
Now, when i try to create a big report in xls, which usually takes over 30minutes i get the exception:
pl.wasko.serloc.DelegateException: Utracono po��czenie z serwerem.
Spr�buj ponowi� operacj�
at pl.wasko.mra.template.delegate.DocumentDelegate.unknownException(DocumentDelegate.java:74)
at pl.wasko.mra.template.delegate.DocumentDelegate.exportToXls(DocumentDelegate.java:590)
at pl.wasko.mra.client.task.ExportTemplateToFileTask.<init>(ExportTemplateToFileTask.java:71)
at pl.wasko.mra.client.document.DocumentAdministration$11.construct(DocumentAdministration.java:447)
at pl.wasko.mra.client.task.SwingWorker$2.run(SwingWorker.java:146)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.rmi.MarshalException: Socket timed out. Waited 1800000 milliseconds for response while calling on InvokerLocator [socket://193.178.240.21:3873/]; nested exception is:
java.net.SocketTimeoutException: Read timed out
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:302)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
at $Proxy1.exportTemplateToXlsByteArray(Unknown Source)
at pl.wasko.mra.template.delegate.DocumentDelegate.exportToXls(DocumentDelegate.java:581)
... 4 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2200)
at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2490)
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2500)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1267)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
... 18 moreProblem is that I'm not the author of this program, program is old, and the author learned on it, so it's code is illegible (I mean dificult to debug, and even read).
I've only discovered that it uses Jasper to generate raport (I think so... I don't know), trace ended here:
JasperConversion conv = new JasperConversion();
JasperPrint jasperPrint = conv.createJasperPrint(template,params,searchCompileReport,userId, reportPagination);
String test = System.getProperty("pl.wasko.mra.template.test");
if(test != null && test.equals("1"))
String tempDir = System.getProperty("jasper.reports.compile.temp");
if(tempDir != null)
conv.exportToPdfFile(jasperPrint,tempDir+"/test.xls");
}I really don't ahve any ideas, I've tried to edit xml files on jboss - no result, properties files - the same, I was looking for something in the code to change timeout, but without results.
Please, if anyone had similar problem, or have an idea, how to fix this, I will be very gratefullif you are using jboss 4+ and ejb3, ib believe you want to edit the "ejb3.deployer/META-INF/jboss-service.xml" file. you want to change the "InvokerLocator" attribure on the "jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3" mbean. it should currently look like "socket://${jboss.bind.address}:3873". you want to add a "timeout" attribute like "socket://${jboss.bind.address}:3873/?timeout=yourTimeoutHere", where "yourTimeoutHere" is your desired timeout in milliseconds.
-
Error In Starting Jboss after installing OIM server
Hi All,
I have Installed OIM_Server(OIM 9.1.0.1) ON Jboss server(4.2.3) , I have 1 GB RAM m/c so have JVM setting as -XMS512m -XMX768 m. While installation of OIM Server, it showed the success message. But When I am starting the server , to perform post installation check, it is showing following error message .
Does anybody have any ideas what the problem is? Please provide the possible solution.
Thanks to All :)
Error :
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linked java:comp/UserTransaction to JNDI name: UserTransaction
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] addEnvEntries
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkResourceEnvRefs
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkResourceRefs
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkMessageDestinationRefs
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkEjbRefs
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkEjbLocalRefs
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkServiceRefs
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkSecurityDomain
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] No security-domain given, using default: java:/jaas/other
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking security/securityMgr to JNDI name: java:/jaas/other
2009-07-16 18:43:27,166 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, End
2009-07-16 18:43:27,401 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
2009-07-16 18:44:02,667 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Running RemoverTask
2009-07-16 18:44:04,964 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] RemoverTask, PassivatedCount=0
2009-07-16 18:44:04,964 DEBUG [org.jboss.ejb.plugins.AbstractInstanceCache] removePassivated, now=1247750044964, maxLifeAfterPassivation=1200000
2009-07-16 18:45:11,465 ERROR [STDERR] Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread"
2009-07-16 18:45:11,465 ERROR [STDERR] java.lang.NoClassDefFoundError: org/quartz/core/JobRunShell
2009-07-16 18:45:11,465 ERROR [STDERR] at org.quartz.impl.StdJobRunShellFactory.borrowJobRunShell(StdJobRunShellFactory.java:86)
2009-07-16 18:45:11,465 ERROR [STDERR] at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:352)
2009-07-16 18:45:11,465 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.quartz.core.JobRunShell, msg=PermGen space
2009-07-16 18:45:11,465 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:560)
2009-07-16 18:45:11,481 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
2009-07-16 18:45:11,481 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
2009-07-16 18:45:11,481 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
2009-07-16 18:45:11,481 ERROR [STDERR] ... 2 more
2009-07-16 18:45:11,481 ERROR [STDERR] Caused by: java.lang.OutOfMemoryError: PermGen space
2009-07-16 18:45:26,168 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Running RemoverTask
2009-07-16 18:45:26,168 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] RemoverTask, PassivatedCount=0
2009-07-16 18:45:26,168 DEBUG [org.jboss.ejb.plugins.AbstractInstanceCache] removePassivated, now=1247750126168, maxLifeAfterPassivation=1200000
2009-07-16 18:45:26,168 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] RemoverTask, done
2009-07-16 18:45:33,247 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Running RemoverTask
2009-07-16 18:45:33,247 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] RemoverTask, PassivatedCount=0
2009-07-16 18:45:33,247 DEBUG [org.jboss.ejb.plugins.AbstractInstanceCache] removePassivated, now=1247750133247, maxLifeAfterPassivation=1200000
2009-07-16 18:45:33,247 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] RemoverTask, doneI am getting these errors starting JBoss after installing OIM 9.1.0.1 on windows 2003 server with JBoss 4.2.3GA canany one please help me why.
19:04:04,468 INFO [WEBSTARTUP] Scheduler started
19:04:04,484 INFO [TomcatDeployer] deploy, ctxPath=/xlWebApp, warUrl=.../tmp/de
ploy/tmp5989105329966275493XellerateFull.ear-contents/xlWebApp-exp.war/
19:05:02,984 ERROR [STDERR] Exception in thread "DefaultQuartzScheduler_QuartzSc
hedulerThread"
19:11:18,359 ERROR [STDERR] Exception in thread "IdleRemover"
19:15:34,562 ERROR [STDERR] Exception in thread "Thread-15" -
Java.rmi.ServerException: Server unavailable, please try later
I'm testing a service proxy in JDeveloper 10.1.3.1.
I'm using encryption and signing.
Now that I have the encryption/signing key loading, I get the following error:
WARNING: Subject Key ID extension not found.Using BST Referencing scheme
java.rmi.ServerException:
start fault message:
Server unavailable, please try later
:end fault message
at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:560)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:396)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
at pkg.service.client.runtime.RequestSoap_Stub.execute(RequestSoap_Stub.java:84)
at pkg.service.client.RequestSoapClient.execute(RequestSoapClient.java:48)
at pkg.service.client.RequestSoapClient.main(RequestSoapClient.java:34)
Process exited.
Debugger disconnected from local process.
Is this a failure of the RMI server on my side or is it a failure to connect to the service? Is the destination service sending this to me or just the transmission code?
It looks to me from the trace and the vagueness of the message that this is from the Oracle transmission code in the StreamingSender class, not a message received from the destination webservice. Would love some confirmation, though.
Thanks for any help.This error generally means there is trouble in the host file, or there is trouble with anti-virus software. Check this section of the support document that you came here from.
Unable to contact the iOS software update server gs.apple.com
Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
Install the latest version of iTunes.
Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
Try to restore from another known-good computer and network.
If the errors persist on another computer, the device may need service. -
Hi,
I have JBOSS running on a Windows Server. Our applications on JBOSS use network printers which are installed on the server for printing purposes. This works fine so far, except for one case for which I ask you for support:
If I map a printer, which is (only) conneted via USB with a PC and shared in the network, the printer is available on the server with JBOSS and can be mapped, BUT JBOSS is not able to see this particular printer and print on it, while the other installed
network printers are available and functional via JBOSS.
My researchs have led to the conclusion, that JBOSS doesn't see this printer, as JBOSS is running unter the SYSTEM account, while the printer was installed with an administrator account. Strangely network printers don't cause this issue.
If I start JBOSS with an administrator account, it can see and use the shared printer. But unfortunately this is not an option, as it causes other issues with our applications.
So the question is: Is there a way to make the printer visible for the SYSTEM account? Or any other suggestions?
Many thanks in advance and best regards,
Amirsimple solution is to install your printers locally rather than connecting to a network resource, locally installed printers have the advantage of being
visible to every user on your system including system accounts. To install a printer locally rather than connecting to a network printer start the "Add Printer Wizard" and select "Local printer attached to this computer"
Best,
Howtodo -
Hi,
I just want to know if there is a possibility to let the Clients of a rmi based Client-Server-archtiecture know, when a Server crashes.
The problem is, that the names are still bound in the rmi-registry of a server, but the server is not able to do that service, because of a crash.
Of course the client then gets an exception, but is there a way to let him know that befor a lookup call in the rmiregistry of the server?
Thx, for helping!No.
You're not the first person to ask this question. You may have luck searching the forum for more detailed replies. -
Distributed transactions across RMI-IIOP client to RMI-IIOP server do not work
Hi,
Based on the links below:
http://e-docs.bea.com/wls/docs61/jta/trxrmi.html#1018506
http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
It appears that is possible to have distributed transactions across RMI-IIOP
clients and RMI-IIOP applications (servers).
I followed up the "Transactions Sample RMI Code" section but it appears that
the transaction context is not propagated from client to server. I am also
surprised by the note:
Note: These code fragments do not derive from any of the sample applications
that ship with WebLogic Server. They merely illustrate the use of the
UserTransaction object within an RMI application.
The above note suggests that there is no sample code available.
Is there anyone who successfully had RMI-IIOP applications (servers)
participating in distributed transactions?
Is there any sample code that illustrates RMI-IIOP applications (servers)
participating in distributed transactions?
If anyone thinks that this should work I will post my code that does not
work.
Regards,
Dan Cimpoesu
But if you look to the diagram:
http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1040200
it suggests that transactional context is passed from clients to RMI-IIOP
servers.
Am I wrong?
Dan
"Andy Piper" <[email protected]> wrote in message
news:[email protected]..
"Dan Cimpoesu" <[email protected]> writes:
Transactions over IIOP are not supported or implemented in WLS 6.1 or
previous. This is a feature of WLS 7.0. In 7.0 we implement OTS.
andy
Hi,
Based on the links below:
http://e-docs.bea.com/wls/docs61/jta/trxrmi.html#1018506
http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
It appears that is possible to have distributed transactions across
RMI-IIOP
clients and RMI-IIOP applications (servers).
I followed up the "Transactions Sample RMI Code" section but it appearsthat
the transaction context is not propagated from client to server. I amalso
surprised by the note:
Note: These code fragments do not derive from any of the sampleapplications
that ship with WebLogic Server. They merely illustrate the use of the
UserTransaction object within an RMI application.
The above note suggests that there is no sample code available.
Is there anyone who successfully had RMI-IIOP applications (servers)
participating in distributed transactions?
Is there any sample code that illustrates RMI-IIOP applications(servers)
participating in distributed transactions?
If anyone thinks that this should work I will post my code that does not
work.
Regards,
Dan Cimpoesu -
BusinessService which sends JMS messages to a JBoss 4.2.x server
Hi,
how do I configure my OSB so that I can send JMS messages to a JBoss server? I have added a Foreign JMS server with the appropriate initial context data and have put the jboss relevant jars into my <domain>/lib directory (javassist.jar, jbossall-client.jar, jboss-aop-jdk50.jar, jboss-messaging-client.jar, trove.jar) but I still get an error in the proxy service when it forwards the message to the business service referencing the imported JMS queues and connectionFactory. The message is:
<18.02.2010 18:00 Uhr MEZ> <Warning> <ALSB Logging> <BEA-000000> < [RouteToJboss, _onErrorHandler-1181696354513531347--39bf6a8e.126dc62f38e.-7e57, Log error, ERROR] Error occurred in flow: BEA-380002[JMSPool:169803]JNDI lookup of the JMS connection factory jboss.connectionFactory failed: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]RouteToJbossrequest-pipeline>
Am I missing something?
Best regards,
Dimo
PS. I also had to put a newer log4j version in the preclasspath because jboss client seems to require verisons >= 1.2.12 and the one shipped with OSB does not cut itThere is a difference between supported and certified.
ADF was certified (meaning tested) with JBoss 4.0.4.
We didn't test with JBoss 4.2 so we don't know if it works or not.
However it is supported - meaning that if you try to deploy to 4.2 and run into issues you can open bugs with Oracle support. -
An rmi client server design problem
I am implementng a networked cards game in java using rmi . The server keeps track of the turn of the players and activates ther clients(on an applet) whose turn it is to play .
Both client and server call each others methods.
Prblem one :
Right now if a a client disconnects , a process run through all the clients active and gets a remote exception on the server and removes ALL the 4 players i nthat particulat group. If I want to save the state and allow any player to contuniue from there , how will I do it?
Problem 2:
How do I keep track of the time a client takes to play.
If he takes longer than say 5 mintes , I should disconnect him.There seem to be two issues at stake: <b>catching the remote exception</b> and <b>multithreading</b> your application on the server.
When a client disconnects "suddenly" (without logging off via remote method call to alert server), the remote method call by the server to all <i>n</i> players triggers a remote exception that must be caught and dealt with accordingly (do I understand that it is causing the application to exit at present?) When caught, you must identify which player is "gone" and remove that client from the pool of client objects.
Right now, it sounds as if the app is NOT multithreaded. You can create a low-priority thread that looks at a time variable for each player to determine its last moment of play. This means every successful remote call from client-server or vice-versa will update that client's 'lastplayed' variable with (long) System.currentTimeMillis() for example. -
Hi
Following problem: I have written a RMI client and server. The program works fine, but at the end I would like to terminate the server. I thought that it works with the System.exit(0) but I receive the following exception:
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception
is: java.io.EOFException
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:203)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at systest.testRMI.Server_Stub.terminate(Unknown Source)
at systest.testRMI.TestClient.main(TestClient.java:41)
Caused by: java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:333)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:189)Why that? Must I do something else?? Before I terminate the server i did the unbinding from the registry.
I hope you can help me.Are you trying to stop the server inside a method that is supposed to return something?
You could start a new Thread which will wait a short while and then stop the server to give your call time to return...
Maybe you are looking for
-
What is the advantages of using Flexconnect groups
what is the advantages of using Flexconnect groups in WLC? Reg, Ezra.
-
There is also a "Hide" button at the bottom, but if I click that the window disappears. I have tried leaving it open, but nothing happens.
-
Hello all, I understand that SAP automatically generates an ABAP program for every ABAP Query wherein the selection fields are connected by an "AND" statement within the WHERE clause of the actual SELECT statement. Is there a way to control this WHER
-
Determine System Entities in a XML File
Hello, i have some xml Files with the following content: <?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet type="text/xsl" href="style/webstyle.xsl"?> <!DOCTYPE contentobject PUBLIC "-//Test//DTD Content v1.1 20021018//EN" "dtd/content.dtd
-
Filter or Collection for Metadata State
When trying to save metadata, LR sometimes reports a conflict about a file having been changed by another program or other error. It is almost impossible to track down those conflicts as the only indicator of which images have the problem is the smal