on 2006 May 11 4:47 PM
Hi all,
I've my sld configured and in communication with J2EE and backend. Now I've to activate/create new JCO connection. At this moment the connection that i need is at "red state" and if i try to create it, i get the error message
System already exists in SLD, witch is true.
if I try to create with a unique name it says:
Failed to create new JCO client connection LCMG_R3_SelfServiceGenerics_MetaData: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection. at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:150) at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.createJCOClientConnection(SystemLandscapeFactory.java:356) at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.createJCOClientConnection(WDSystemLandscape.java:107) at com.sap.tc.webdynpro.tools.sld.ButtonBar.onActionFinish(ButtonBar.java:224) at com.sap.tc.webdynpro.tools.sld.wdp.InternalButtonBar.wdInvokeEventHandler(InternalButtonBar.java:265) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:101) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:304) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:659) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59) at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) 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:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for LCMG_R3_SelfServiceGenerics_MetaData at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:670) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:486) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:252) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:226) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:106) at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:148) ... 30 more Caused by: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:393) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:564) ... 35 more
Someone could help me activating a JCO connection or give me documentation for it !?
Thanks a lot.
Best Regards,
Pedro
Request clarification before answering.
Hi folks,
thanks for your answers, it was for extreme help.
Now i can configure the JCO and activate (green).
But I've JCO connection that is in red state and if I try to create it it says :
Failed to create new JCO client connection SAP_R3_SelfServiceGenerics_MetaData: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Connection SAP_R3_SelfServiceGenerics_MetaData already exists in the SLD. Please choose another name. at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.createJCOClientConnection(SystemLandscapeFactory.java:272)
Remove buttom is unavailable. Do you know why this happens?
JCO SAP_R3_SelfServiceGenerics works fine (test and ping).
Thanks.
Regards,
Pedro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this:
1. Open http://<yourserver>:<port>/sld
2. Navigate to content maintenance
3. Navigate to subset: landscape definition
Class JCO message server destination & JCO application server destination
Delete everything that doesn't belong there.
Regards,
Satyajit.
Hi,
Accessing the System SLD
try {
// Get the required CIMClient object
com.sap.lcr.api.cimclient.CIMClient
cimClient = WDSystemLandscapeFactory.getClient();
// Get accessor for message server objects
SAP_BCMessageServerAccessor acc = new SAP_BCMessageServerAccessor (cimClient);
instances = acc.enumerateInstances(false, true, null);
// Loop the list of instances
for (int i = 0; i < instances.length; i++) {
SAP_BCMessageServer msgServer
= (SAP_BCMessageServer) instances<i>.getJavaCIMObject();}
System.out.println (msgServer.getCaption());
}
} catch (Exception e) {
throw new WDSystemLandscapeException ("Failed to access system landscape, e);
}
Jco Client Connection
WDJCOClientConnection client =
WDSystemLandscape.getJCOClientConnection(myJCOClient);
// Create JCO clients using load-balanced access
IWDJCOClientConnection clientConn1 =
WDSystemLandscape.createJCOClientConnection(
"MyJCOClient",
10,
"hs001.wdf.sap-ag.de",
"ABC",
"PUBLIC",
"000",
WDUserDefinitionType.DEFINED_USER,
"testUser",
"demo",
"de");
IWDJCOClientConnection clientConn2 =
WDSystemLandscape.createJCOClientConnection(
"MyJCOClient",
10,
"hs001.wdf.sap-ag.de",
"ABC",
"PUBLIC",
"000",
WDUserDefinitionType.SSO,
null,
null,
null);
// Create JCO clients using application-specific access
IWDJCOClientConnection clientConn3 =
WDSystemLandscape.createJCOClientConnection(
"MyJCOClient",
10,
"hs001.wdf.sap - ag.de",
"81",
"000",
WDUserDefinitionType.DEFINED_USER,
"testUser",
"demo",
"de");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please tell me how Accessing the System SLD is the http://host:pot/sld?
and how edit
try {
// Get the required CIMClient object
com.sap.lcr.api.cimclient.CIMClient
cimClient = WDSystemLandscapeFactory.getClient();
// Get accessor for message server objects
SAP_BCMessageServerAccessor acc = new SAP_BCMessageServerAccessor (cimClient);
instances = acc.enumerateInstances(false, true, null);
// Loop the list of instances
for (int i = 0; i < instances.length; i++) {
SAP_BCMessageServer msgServer
= (SAP_BCMessageServer) instances.getJavaCIMObject();}
System.out.println (msgServer.getCaption());
}
} catch (Exception e) {
throw new WDSystemLandscapeException ("Failed to access system landscape, e);
}
Jco Client Connection
WDJCOClientConnection client =
WDSystemLandscape.getJCOClientConnection(myJCOClient);
// Create JCO clients using load-balanced access
IWDJCOClientConnection clientConn1 =
WDSystemLandscape.createJCOClientConnection(
"MyJCOClient",
10,
"hs001.wdf.sap-ag.de",
"ABC",
"PUBLIC",
"000",
WDUserDefinitionType.DEFINED_USER,
"testUser",
"demo",
"de");
IWDJCOClientConnection clientConn2 =
WDSystemLandscape.createJCOClientConnection(
"MyJCOClient",
10,
"hs001.wdf.sap-ag.de",
"ABC",
"PUBLIC",
"000",
WDUserDefinitionType.SSO,
null,
null,
null);
// Create JCO clients using application-specific access
IWDJCOClientConnection clientConn3 =
WDSystemLandscape.createJCOClientConnection(
"MyJCOClient",
10,
"hs001.wdf.sap - ag.de",
"81",
"000",
WDUserDefinitionType.DEFINED_USER,
"testUser",
"demo",
"de");
Regards
Minerva
Hi,
Please find this tutorial,
Thanks,
Raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
30 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.