Java commands for using RMI in linux .

Please tell me if the commands for running client , creating stubs , starting rmi registry etc are different in windows and linux .
In linux I got error when I put the command : start rmiregistry . (saying start not a command)

'start' is a Windows thing. Try
rmiregistry &

Similar Messages

  • Problems using RMI between linux and windows.

    I have problems using RMI between linux and windows.
    This is my scenario:
    - Server running on linux pc
    - Clients running on linux and windows PCs
    When a linux client disconnect, first time that server try to call a method of this client, a rmi.ConnectException is generated so server can catch it, mark the client as disconnected and won't communicate with it anymore.
    When a windows client (tested on XP and Vista) disconnect, no exceptions are generated (I tryed to catch all the rmi exception), so server cannot know that client is disconnected and hangs trying to communicate with the windows client.
    Any ideas?
    Thanks in advance.
    cambieri

    Thanks for your reply.
    Yes, we are implementing a sort of callback using Publisher (remote Observable) and Subscribers (remote Observer). The pattern and relative code is very well described at this link: http://www2.sys-con.com/ITSG/virtualcd/java/archives/0210/schwell/index.html (look at the notifySubscribers(Object pub, Object code) function).
    Everything works great, the only problem is this: when a Publisher that reside on a Linux server try to notify something to a "dead" Subscriber that reside on a Windows PC it does't receive the usual ConnectException and so tends to hang.
    As a workaround we have solved now starting a new Thread for each update (notification), so only that Thread is blocked (until the timeout i guess) and not the entire "notifySubscribers" function (that contact all the Subscribers).
    Beside this, using the Thread seem to give us better performance.
    Is that missed ConnectException a bug? Or we are just making some mistake?
    We are using java 6 and when both client and server are Linux or Windows the ConnectException always happen and we don't have any problem.
    I hope that now this information are enough.
    Thanks again and greetings.
    O.C.

  • How to call java stored procedure using RMI?

    Is it possible to make a call to java stored procedure using RMI. ?
    How can I run the RMI registry on the Oracle Server ?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Thomas Grounds ([email protected]):
    Is it possible to make a call to java stored procedure using RMI. ?
    In principle it is possible. See the Java-Doc.s of Oracle 8.1.6.
    I have successful granted the java.net.SocketPermissions in my USER_JAVA_POLICY view (see Doc.) Now I was able to use the RMI-Sockets, but following
    failure try to connect to RMI-Object via RMIregistry an Oracle Error occurs
    ORA-03113: end-of-file on communication channel
    and after that my Oracle Connection is closed.
    How can I run the RMI registry on the Oracle Server ?<HR></BLOCKQUOTE>
    I think you do not need the RMI registry on Oracle Server. It should be possible to start the RMI registry wherever you want in your network and access it via the right registry string.
    Ciao
    Margit
    null

  • Batch command for using Java in IE

    Hello,
    I'm looking for a batch command that sets IE to use Java (Sun).
    It should do the same job as if manually checking the check box of 'Use <java version> for applet' in advanced internet options of IE.
    Is there a way to do it?

    Sorry, currently there's no batch command to set IE to use Java from Sun.
    There're quite a few registry keys need to be set when that option is selected.
    Registry settings for:
    - turning off console for MSVM;
    - hooking up Sun's Java console to IE;
    - adding a "TreatAs" to the Web Browser Applet Control so that applets with applet tag will use Sun's Java;
    etc.

  • Java Compiler for MAC OS X & Linux

    Greetings:
    I could use a recommendation for a JAVA compiler.
    Any help is appreciated.
    Q1: For Mac OS X, what is a recommended Java compiler / JDK ?
    Q2: Can I program and compile a Java program with the Xcode platform? If so, how?
    (fyi: did notice there isn't a JAVA library like C++...but there probably is one out there)
    Q3: For Linux OS, what is a recommended Java compiler? (probably the same as Mac)
    If you have a website for downloading a compiler and / or Java Library for X code, toss it my way.
    Thank you for your time.
    Cheers,
    Shockwave

    The javac compiler is installed in /System/Library/Frameworks/JavaVM.framework/Commands/. On my machine it's also installed in /usr/bin/javac.
    The java libraries in /System/Library/Frameworks/JavaVM.framework/Libraries/ then there are others in /usr/lib/java/.
    I believe that you can use Xcode as an IDE for java or download Eclipse. Then again the Terminal.app (your shell), vi or emacs, and the javac command will get you going.

  • Java Code for using an Enterprise Service?

    Hi,
    I am new to CE , Can some one please provide the code for consuming an Enterprise Service inside my Application Service.
    I have Imprted the Inventory LookUp ES insid emy project, create the default mapping for the same inside an application service, created a method which calls the mapped ES method.
    But I got stuck at this juncture as I dont know how should I recieve the data from the user and through which object also how should I send this data to the ES to recieve the response.
    Please reply ASAP.
    Thanks,
    Manish

    Hi Dipankar,
    i as not aware of the steps which you just mentioned. Here I would like to ask that I should provide the Destination Name as the name of the Application Service or something else.
    Presently I have taken the name of the Aplication Service as the Destination Name and provided the WSDL of the Enterprise Service as the URL.
    And after that I mapped the application service with the Destination Created.
    The implementation code written is :
    public com.sap.xi.appl.global2.InventoryByLocationAndMaterialResponseMessage_SyncType findInventory(java.lang.String id, java.lang.String location) throws com.sap.caf.rt.exception.CAFServiceException {
              com.sap.xi.appl.global2.InventoryByLocationAndMaterialQueryMessage_SyncType request = new InventoryByLocationAndMaterialQueryMessage_SyncType();
              InventoryByLocationAndMaterialQueryMessage_SyncTypeCS1E data = new InventoryByLocationAndMaterialQueryMessage_SyncTypeCS1E();
              Material mat = new Material();
              Location loc = new Location();
              mat.setId(id);
              loc.setId(location);
              List locList = new ArrayList();
              List matList = new ArrayList();
              locList.add(loc);
              matList.add(mat);
              data.setLocation(locList);
              data.setMaterial(matList);
              request.setInventorySelectionByLocationAndMaterial(data);
              com.sap.xi.appl.global2.InventoryByLocationAndMaterialResponseMessage_SyncType response = this.InventoryByLocationAndMaterialQueryResponse_In(request);
              return response;
    I believe that when I test the application service in CAF runtime it will provide the Id and Location when I enter that in the UI to the Application Service and then I can use that to pass the data onto the Enterprise Service.
    Please correct me if I am wrong.
    But now I am getting the following error :
    "com.sap.engine.services.webservices.espbase.query.exceptions.TechnicalException: Deserializing WSDL stream http://iwdf0512.wdf.sap.corp:55080/sap/bc/srt/xip/sap/ECC_INVENTORY002QR?sap-client=800&wsdl=1.1 failed "
    The details are :
    Error Details
    com.sap.caf.rt.connectivity.exception.EngineException: com.sap.engine.services.webservices.espbase.query.exceptions.TechnicalException: Deserializing WSDL stream http://iwdf0512.wdf.sap.corp:55080/sap/bc/srt/xip/sap/ECC_INVENTORY002QR?sap-client=800&wsdl=1.1 failed
    at com.sap.caf.rt.connectivity.ws.WSExecuteManager.executeWS(WSExecuteManager.java:136)
    at com.sap.caf.rt.connectivity.ExecutionManager.executeWS(ExecutionManager.java:126)
    at com.sap.caf.rt.connectivity.ExternalOperationExecutor.execute(ExternalOperationExecutor.java:80)
    at com.sap.caf.rt.connectivity.ExternalOperationExecutor.execute(ExternalOperationExecutor.java:55)
    at com.sap.caf.rt.bol.da.remote.GenericOperationExecutor.execute(GenericOperationExecutor.java:53)
    at com.sap.inventory.modeled.appsrv.ecc_inventory002qr.ECC_INVENTORY002QRBean.InventoryByLocationAndMaterialQueryResponse_In(ECC_INVENTORY002QRBean.java:33)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:43)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext$InvocationContextImpl.proceed(AbstractInvocationContext.java:131)
    at com.sap.caf.rt.interceptors.LogInterceptor.aroundInvoke(LogInterceptor.java:61)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Application.invoke(Interceptors_Application.java:37)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
    at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
    at $Proxy418_10002.InventoryByLocationAndMaterialQueryResponse_In(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.findByDataObject(ServiceWrapper.java:330)
    at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.findByDataObject(CAFServiceAccessBeanImpl.java:230)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:43)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatefulTransactionAssociation.invoke(Interceptors_StatefulTransactionAssociation.java:43)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatefulSessionInstanceGetter.invoke(Interceptors_StatefulSessionInstanceGetter.java:37)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
    at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
    at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
    at com.sap.engine.services.ejb3.runtime.impl.StatefulBMProxyInvocationHandler.invoke(StatefulBMProxyInvocationHandler.java:55)
    at $Proxy123_10002.findByDataObject(Unknown Source)
    at com.sap.caf.rt.ui.esf.BONodeServiceAccess.findBy(BONodeServiceAccess.java:296)
    at com.sap.caf.rt.ui.esf.Query.execute(Query.java:222)
    at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.execute(TableViewCC.java:353)
    at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.wdp.InternalTableViewCC.execute(InternalTableViewCC.java:181)
    at com.sap.caf.ui.servicebrowser.components.visualizer.views.TableViewCV.onActionExcuteQuery(TableViewCV.java:429)
    at com.sap.caf.ui.servicebrowser.components.visualizer.views.wdp.InternalTableViewCV.wdInvokeEventHandler(InternalTableViewCV.java:342)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:72)
    at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:156)
    at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.execute(ProcessingEventPhase.java:91)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:161)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:109)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:96)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:469)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:52)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1388)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1208)
    at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoProcessing(AbstractExecutionContextDispatcher.java:145)
    at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppProcessing.doService(DispatchHandlerForAppProcessing.java:35)
    at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
    at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoProcessing(ExecutionContextDispatcher.java:114)
    at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:80)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:506)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:526)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:457)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:248)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:698)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:230)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:228)
    at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:192)
    at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
    at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
    at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
    at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:92)
    at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:104)
    at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
    at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:309)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    Caused by: com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: com.sap.engine.services.webservices.espbase.query.exceptions.TechnicalException: Deserializing WSDL stream http://iwdf0512.wdf.sap.corp:55080/sap/bc/srt/xip/sap/ECC_INVENTORY002QR?sap-client=800&wsdl=1.1 failed
    at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImpl.getEndpointConfigurations(DestinationsHelperImpl.java:884)
    at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImpl.getWSDLUrl(DestinationsHelperImpl.java:401)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:222)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:192)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:175)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:160)
    at com.sap.caf.rt.connectivity.ws.WSExecuteManager.executeWS(WSExecuteManager.java:106)
    ... 137 more
    Caused by: com.sap.engine.services.webservices.espbase.query.exceptions.TechnicalException: Deserializing WSDL stream http://iwdf0512.wdf.sap.corp:55080/sap/bc/srt/xip/sap/ECC_INVENTORY002QR?sap-client=800&wsdl=1.1 failed
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.getWSDLDefinitions(WSQueryImpl.java:509)
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.initialize(WSQueryImpl.java:310)
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSEndpoints(WSQueryImpl.java:165)
    at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImpl.getEndpointConfigurations(DestinationsHelperImpl.java:873)
    ... 143 more
    Caused by: com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://iwdf0512.wdf.sap.corp:55080/sap/bc/srt/xip/sap/ECC_INVENTORY002QR?sap-client=800&wsdl=1.1"
    at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.loadDOMDocument(WSDLLoader.java:140)
    at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:91)
    at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:80)
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.getWSDLDefinitions(WSQueryImpl.java:507)
    ... 146 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://iwdf0512.wdf.sap.corp:55080/sap/bc/srt/xip/sap/ECC_INVENTORY002QR?sap-client=800&wsdl=1.1"
    at com.sap.esi.esp.service.server.query.discovery.WSTransportSettingsResolver.resolveEntity(WSTransportSettingsResolver.java:362)
    at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.loadDOMDocument(WSDLLoader.java:127)
    ... 149 more
    Close
    -Manish

  • Is java safe for use with iMac?

    Do I need Java on my new imac?

    It depends on whether your are using Java applidations or not. Applications such as OpenOffice, NeoOffice, MaoneyDance, and others use the Java Virtual Machine for cross platform compatibility and are not subject to the same vulnerabities that have plagued Java applets

  • How to convert a .jsp to a .java/.class for use in pplcode

    .

    At first , thanks for your help ,armalcolm
    But I don't understand how to convert java string array to c string(char)array.I have seen the doc. , but I don't understand still.
    Belown is my code
    <code>
    JNIEXPORT void JNICALL Java_init
    (JNIEnv *env, jobject jobj, jobjectArray jfilename, jint jlength)
         jobject obj = env->NewObject(env,mid,param);
         jobjectArray obj_java = (jobjectArray)env->CallObjectMethod(obj,mid,param);
         length = jlength;
         filename = (char**) malloc(length * sizeof(char*));
         for (i=0;i<length;i++)
              jstring jstr = env->(jstring) GetObjectArray(obj_java,i);
              filename[i] = (char*) malloc(strlen(jstr)+1);
              strcpy(filename,GetStringUTFChars(jstr,0));
    </code>
    I know this is a error codes.Can you help me??
    I don't know how to use NewObject() , CallObjectMethod() and GetObjectArray() method
    Thanks

  • How to write a java function for use in where clause in SQL statement

    Hi,
    Does anyone know a good tutorial on how to write and include a Java class/function into Oracle.
    I'd like to write mathematical function to use in my queries, but the resources available in PL/SQL are very limited.
    Many thanx

    Pim,
    I see you got an answer in the PL/SQL forum.
    But in case you haven't seen it, perhaps this Web page will help:
    http://www.oracle.com/technology/tech/java/jsp/index.html
    Good Luck,
    Avi.

  • Java library for performance measuring in Linux

    Hi everybody!
    I'm going to extend an agent-based system. My agents should be able to evaluate performance data like eg CPU workload in Linux systems.
    Are there any java libraries, which are able to read out that information??
    Thanks in advance

    Not in standard java.
    You will need some OS specific stuff that you either write or acquire to gather that information. If you need to write it then you will be looking at either JNI or Runtime.exec().

  • *PROBLEM SOLVED: Using "java" command in JSDK1.4.1

    I had a problem before when using the java command for JSDK1.4.1
    What I just realised/found was that there different situations
    for using the "java" command. I will give you some tips in
    case you are running in the same problem or may be to help
    another person:
    RUNNIN FILES (.java) THAT ARE "NOT" PART OF A PACKAGE
    1)Let's say you have a "test.java" file in "C:\APP\SUB\"
    2)You can compile it from iside or outside the folder that
    holds the "test.java" (i.e. SUB)
    3)After compiled, you can ONLY run the "test.class" file
    from within the folder that holds the CLASS file i.e. "SUB"
    You can not be at the "APP" folder and type:
    "java SUB.test" NOR "java SUB/test"
    RUNNING FILES (.JAVA) THAT ARE PART OF A PACKAGE
    1)Let's say you have a "test.java" file in "C:\APP\SUB\COM\"
    2)Now let's say that the fiel includes the "package SUB.COM;" line
    in the code, which makes it part of a package.
    COMPILING
    3)If the "test.java" file does NOT use another file in the same
    folder, you can compile it from where ever you want. It could
    be from within inside OR outside the folder holding the file
    4)If the "test.java" file DOES use another file in the same folder,
    then you have to go "javac" it from any folder aoutside the
    folder that is hosting (holding) the "test.java" file
    EXMAPLE:
    If am in folder "APP" I can do this: "javac SUB/COM/test.java"
    Or if am in "SUB" I can do: "javac COM/test.java"
    BUT if Im in "COM" I can NOT do: "javac test.java"
    RUNNING
    5)Make sure that you have produced a "test.class" file when compiling
    6)Recall that the "test.java" file includes the line "package SUB.COM;"
    which means that it is part of this package. and that it is stored
    inside "COM"
    7)You can ONLY run the "test.class" file from the FIRST folder above
    the package where that the "test.class" file is forming part of
    i.e from inside the "APP" folder, You CAN NOT run the file from
    anywhere else but the first folder (APP) above the package (SUB.COM)
    8)EXAMPLE:
    To run the "test.class" I must be in: "C:\APP"
    I can NOT be in "C:\" nor "C:\APP\SUB" nor "C:\APP\SUB\COM"
    Then type in the command window: "java SUB.COM.test" and..
    *** ESO ES TODO AMIGOS!! **** (THAT'S ALL FOLKS)
    I hope this help to other people.. some factors like enviromental
    variable may change what I just stated though.
    In my computer runnning "Windows 2000" my variables are:
    1)JAVA_HOME: C:\j2sdk1.4.1
    2)path: <other paths>;C:\j2sdk1.4.1\bin;
    THANK U FOR ALL THE PEOPLE WHO WERE TRYING TO HELP ME SINCE YESTERDAY
    my email: [email protected]

    Yeah, he did get a lot of it wrong but oh well, at least he's putting forth some effort. If you need any help alex, just send me a note. Everyone should also look into using Jakarta Ant for even your simple applications, it makes all these little directory issues go away real fast. If you need a generic build.xml file that has nice features, again, just send me a note.
    -Spinoza

  • Strange system hang using rmi

    Hi, I read for several hours now, but I can't find a hint what problem I'm experiencing. Perhaps someone has an idea?
    I have a small java application (jdk1.3.1_08) which starts a RMIRegistry, binds an object name. It then starts another java application in another jvm using Runtime.exec(...).
    Everything fine until here. The second application starts and works fine.
    BUT: Now I close app2 and start it again from app1. Basically everything works also this time. But there is a delay at startup from app2 which I cannot explain. App2 hangs for 10 secondes up to 70 seconds, between two debug outputs!!!
    Every little hint is appreciated!!
    Torsten.

    I think the hanging of app2 is not depending on what it actually does. But I try to explain some more, you're right:
    App1 is kind of a starter environment, a launch center for several applications. One of these applications is my app2. The reason for using rmi and the second jvm is that I now can use a System.exit(0) in app2 without killing the launch center (app1). When I start app2 standalone from command line without rmi, then it starts without the strange system hang.
    What does app2 do?
    App2 has a starting time of about 30 seconds (standalone) where several things are initialized. In detail, it is a Swing application using the oracle framework JClient for data binding of Swing components and the oracle framework BC4J for mapping to an oracle database. The system hang when started in the second jvm occurs in the startup process, but not at a specific point in the programm. This means: on PC1 it hangs everytime between the same two debug outputs, on PC2 (a bit faster) it hangs later in the code. Thats the reason why I think, there could be a rmi problem.
    What I did not mention yet: The launch center (app1) builds a kind of transfer object which is passed via rmi to app2 in the second jvm.
    Does this help to solve my problem? I really run out of ideas what to do...

  • Install Java plugin for IE without manual update or install

    Hi,
    I have a client machine with JRE installed. Now i see the problem that java plugin is not installed in IE. Is there anyway i could manually register java plugin for IE without using installer or java update ? would it be possible to use command line argument or such alternative please let me know.

    I would like to find a way to allow a user without
    administrative rights to install the Java-Plugin for
    using Java-Applets. As far as I understood, the
    plugin can be installed in a silent way withou
    registry modifiactions. Is this working for users
    without admin rights?Could anyone please explain, why it is so difficult for Sun to create an installation package for user without admin rights? The whole "GetJava"-program doesn't make any sense for ordinary users if they get the JRE downloaded seamlessly and then the installation fails due to missing admin rights. This way Java would never succeed on the desktop.
    Andr�

  • Oracle Scripting 11i - custom java command problem

    Hello
    Can someone pls help me with the following issue I'm having with Oracle Scripting 11i.
    I want to use in my script a custom Java command for a shortcut button. I follow the instructions given in the docs that I found, but seems that I miss something, so pls advice.
    This is what I did:
    1. in my script a defined a shortcut button with a Java command type. The command name is correctly specified as :
    a.b.myclass::mymethod - I'm also passing a Proxy parameter and a string - the name of the group I want to jump to. (this is the exact example I found in Oracle Scripting use and administer course dating from 2000 -:( ).
    2. I packaged my classes in a jar. (What is strange is that I am using the exact code for my method as the ScriptUtil class provided as bestpractice by Oracle)
    3. using Oracle Scripting Administration Console I upload my jar as global.
    4. Deploy my script to the database.
    5. Run the script
    After all that, what I get when I push the shortcut button is .... nothing!!!!
    If I am removing my jar from the database using Oracle Scripting Administration console - I am getting "Unable to load class since no jar was associated with your script"
    If I'm indicating on purpose a Java method name (that does not exist in my class) I'm getting java.lang.RuntimeException.
    So, I really do not know what the problem is, since my code is the same as the ScriptUtil class, and if I'm using the Script Util as my Java Command it works just fine.
    Can someone help me? What am I doing wrong? Did I missed a step?
    Thank you
    Cristina

    Hello
    Can someone pls help me with the following issue I'm having with Oracle Scripting 11i.
    I want to use in my script a custom Java command for a shortcut button. I follow the instructions given in the docs that I found, but seems that I miss something, so pls advice.
    This is what I did:
    1. in my script a defined a shortcut button with a Java command type. The command name is correctly specified as :
    a.b.myclass::mymethod - I'm also passing a Proxy parameter and a string - the name of the group I want to jump to. (this is the exact example I found in Oracle Scripting use and administer course dating from 2000 -:( ).
    2. I packaged my classes in a jar. (What is strange is that I am using the exact code for my method as the ScriptUtil class provided as bestpractice by Oracle)
    3. using Oracle Scripting Administration Console I upload my jar as global.
    4. Deploy my script to the database.
    5. Run the script
    After all that, what I get when I push the shortcut button is .... nothing!!!!
    If I am removing my jar from the database using Oracle Scripting Administration console - I am getting "Unable to load class since no jar was associated with your script"
    If I'm indicating on purpose a Java method name (that does not exist in my class) I'm getting java.lang.RuntimeException.
    So, I really do not know what the problem is, since my code is the same as the ScriptUtil class, and if I'm using the Script Util as my Java Command it works just fine.
    Can someone help me? What am I doing wrong? Did I missed a step?
    Thank you
    Cristina

  • Generating Java wrappers for PL/SQL Packages in JDeveloper 3.1

    I have not been successful in using JD3.1 to generate java classes for use in calling PL/SQL packages from a Java Servlet I am developing. I have followed the directions under the 'Generating Java Code for Oracle Objects and PL/SQL Packages' help topic: I display the package in the database browser window, right click on the package, select 'Generate Java', and click 'OK' on the pop-up JPublisher window that appears. The wizard clocks out for a few moments, then the JPublisher window disappears, but the java class is not added to JDeveloper's Navigation pane for the Project and Package I specified in the wizard.
    Any idea where the generated class is going to?

    should be, but isn't... JDeveloper3.1
    (build 681) default install... Is it in
    a custom package I didn't install? Or
    am I just a dumb nut?Hmm.. I thought it was in there.. JPub is a java based tool. You can invoke it as such.
    1st, use setvars.bat from your jdeveloper/bin directory.
    2nd, run java oracle.jpub.java.Main (pass it the same arguments as you would the jpub.exe)
    Here's the output from my machine here:
    D:\JDeveloper31\bin>setvars D:\JDeveloper31
    Setting JDeveloper 1.2 runtime environment to "D:\JDeveloper31"
    Setting JDK version 1.2 in "D:\JDeveloper31\java1.2"
    D:\JDeveloper31\bin>java oracle.jpub.java.Main
    JPub: Java Object Type Publisher, version 8.1.6.0.0 Production
    (and the rest of the help)
    Take Care,
    Rob
    null

Maybe you are looking for