Error invoking LC API via Java
Hi *,
I'm using the Java-API to call LC services.
My web app is deployed on a Tomcat (6.0_20) and I have two LC instances (turnkey).
I'm trying to migrate some PDFs secured and reader enabled with the first LC instance to the second. The first instance is installed on a remote server and the calls are working fine. So I'v no problem to remove the PDF security policy applayed by the first LC instance, but if I'm trying to call the second instace (wich is runung local) im getting the following exception:
java.lang.RuntimeException: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
at de.actano.rcw.module.change_host.ChangeHostActionExecutor.applyReaderCredentials(ChangeHostActionExecutor.java:221)
at de.actano.rcw.module.change_host.ChangeHostActionExecutor.transformAttachments(ChangeHostActionExecutor.java:205)
at de.actano.rcw.module.change_host.ChangeHostActionExecutor.executeImpl(ChangeHostActionExecutor.java:133)
at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:688)
at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:625)
at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:487)
at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:475)
at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:696)
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:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:301)
at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:229)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy29.executeAction(Unknown Source)
at org.alfresco.web.bean.actions.RunActionWizard.finishImpl(RunActionWizard.java:101)
at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:122)
at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:119)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:322)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:229)
at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:128)
at org.alfresco.web.bean.wizard.WizardManager.finish(WizardManager.java:599)
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:597)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
at javax.faces.component.UICommand.broadcast(UICommand.java:109)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Caused by: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java:160)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:57)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.livecycle.readerextensions.client.ReaderExtensionsServiceClient.invoke(ReaderExtensionsServiceClient.java:58)
at com.adobe.livecycle.readerextensions.client.ReaderExtensionsServiceClient.applyUsageRights(ReaderExtensionsServiceClient.java:102)
at de.ipeq.iqweb.business.lc.service.LifeCycleServiceImpl.readerExtend(LifeCycleServiceImpl.java:532)
at de.actano.rcw.module.change_host.ChangeHostActionExecutor.applyReaderCredentials(ChangeHostActionExecutor.java:219)
... 62 more
Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
com.adobe.idp.DocumentError: The document pointing to the file "C:\Programme\Apache\Tomcat_6.0_20\docm1283160444844\7eddb78cf3d5f4c8212f326588130174" has expired. Consider increasing the document disposal timeout.
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:386)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:196)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at sun.reflect.GeneratedMethodAccessor385.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
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:592)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.adobe.idp.DocumentError: The document pointing to the file "C:\Programme\Apache\Tomcat_6.0_20\docm1283160444844\7eddb78cf3d5f4c8212f326588130174" has expired. Consider increasing the document disposal timeout.
at com.adobe.idp.DocumentFileBackend.checkFileExistance(DocumentFileBackend.java:412)
at com.adobe.idp.DocumentFileBackend.copy(DocumentFileBackend.java:419)
at com.adobe.idp.Document.addInvocationMarker(Document.java:2558)
at com.adobe.idp.Document.readObject(Document.java:934)
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:592)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at java.util.HashMap.readObject(HashMap.java:1067)
at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiver.java:291)
at com.adobe.idp.dsc.provider.impl.ejb.receiver.EjbReceiverBean.invoke(EjbReceiverBean.java:156)
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:592)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:363)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
... 24 more
Increasing the document disposal timeout is without any effect. I'm running exactly the same code, but with a diferent LC locations. Has someone an idea what is the problem...
Thanks and Regards,
bate_g
The problem is in the fact, I'm calling two different LC instances. If I'm calling only one LC client, everything is working fine. If I call the one instance and then the second for another operation (applying new policy) I'm getting the exception.
How can I work with two diferent LC instances? Any ideas?
Kind Regards,
bate_G
Similar Messages
-
How do i invoke Windows APIs in JAVA??? Please help.
Is there a way to invoke Windows APIs in Java??? Please help......Thankx
Short answer, you don't. However, you should look at Java Native Interface (JNI) very closely. It will allow you to wrap the Win32 API calls so that Java can call your wrapper methods. Another side to it, although not necessarily related to your question is a JavaBeans to COM bridge that you may want to look into as well, though it's probably not going to be a solution for what you're wanting to do right now.
-
I get the following error when trying to connect to the SAW Authentication service via java
[java] {com.siebel.analytics.web/soap/error/v1}Error:
[java] <sawsoape:Code>OQ78YWIW</sawsoape:Code>
[java] <sawsoape:Message>Assertion failure: false at line 126 of /vol1/users/anabuild/views/nigh\tly/Tue/aruba/RH_Linux/vobs/071217.1900/analytics_web/main/project/webxml/buffersaxcontenthandler.h</\sawsoape:Message>
[java] <sawsoape:File>/vol1/users/anabuild/views/nightly/Tue/aruba/RH_Linux/vobs/071217.1900/ana\lytics_web/main/project/webxml/buffersaxcontenthandler.h</sawsoape:File>
[java] <sawsoape:Line>126</sawsoape:Line>
[java]
I'm using Apache Axis to generate the proxy. Oddly enough, Ruby's SOAP client works fine calling the same function. Any thoughts or does anyone else have a proxy generation tool that they've used successfully?
Thanks!Hi,
According to your post, my understanding is that you want to create the Inplace hold for SharePoint via application.
Per my knowledge, there is no class in client object model like the Hold class(Microsoft.Office.RecordsManagement.Holds).
As a workaround, we can customize a web service, then we can use server object model to achieve it.
Here is a similar thread for your reference:
https://social.msdn.microsoft.com/Forums/office/en-US/f968d9d6-db5a-445f-bf90-0891217369e9/place-document-on-hold-using-csom-or-rest?forum=sharepointdevelopment
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Error invoking Web Service from Java client
Hi
I have created an ALSB Proxy service and exposed it as a web service. I have created a Java Client the code for which is pasted below:
String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
String url = "http://localhost:7001/Dummy_ALSB_Project/proxy/Dummy_Proxy_Service?WSDL";
String TARGET_NAMESPACE = "http://www.bea.com/servers/wls810/samples/examples/webservices/handler/log";
QName xsdString = new QName("http://www.w3.org/2001/XMLSchema", "string");
ServiceFactory factory = ServiceFactory.newInstance();
QName serviceName = new QName(TARGET_NAMESPACE, "LogHandler");
QName portName = new QName(TARGET_NAMESPACE, "ProcessSoap");
QName operationName = new QName("writeCustNameToFile");
Service service = factory.createService(serviceName);
Call call = service.createCall();
call.setPortTypeName(portName);
call.setOperationName(operationName);
call.addParameter("param0", xsdString, ParameterMode.IN);
call.setProperty(ENCODING_STYLE_PROPERTY,URI_ENCODING);
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY,"");
//set end point address
call.setTargetEndpointAddress(url);
call.invoke(new Object[]{ "The Joshua Tree" });
When I run the service, I get the following error:
java.rmi.RemoteException: BEA-380001: Internal Server Error
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:524)
at TC.methodB(TC.java:67)
at TC.main(TC.java:9)
Any clues about what is going wrong?? Thanks in advance.It's recommended to use the same verison of client and service.
-
Error calling php WS via Java client generated by JDev 10.1.3.2
Hi guys.
Gonna be a bit of a long one:
I'm trying to generate a WS client for a php WS that was written for our use:
The WSDL file looks as follows
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:CMS" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:CMS">
- <types>
- <xsd:schema targetNamespace="urn:CMS">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
- <xsd:complexType name="ArrayOfString">
- <xsd:sequence>
<xsd:element name="string" type="xsd:string" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
- <xsd:complexType name="ArrayOfArrayOfString">
- <xsd:sequence>
<xsd:element name="ArrayOfString" type="tns:ArrayOfString" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
- <xsd:complexType name="FragmentCheckInRequest">
- <xsd:all>
<xsd:element name="userName" type="xsd:string" />
<xsd:element name="userPass" type="xsd:string" />
<xsd:element name="fragData" type="xsd:base64Binary" />
</xsd:all>
</xsd:complexType>
- <xsd:complexType name="FragmentCheckInReply">
- <xsd:all>
<xsd:element name="return" type="xsd:int" />
</xsd:all>
</xsd:complexType>
- <xsd:complexType name="DataImportXMLRequest">
- <xsd:all>
<xsd:element name="userName" type="xsd:string" />
<xsd:element name="userPass" type="xsd:string" />
<xsd:element name="xmlData" type="xsd:base64Binary" />
<xsd:element name="opts" type="tns:ArrayOfArrayOfString" />
</xsd:all>
</xsd:complexType>
- <xsd:complexType name="DataImportXMLReply">
- <xsd:all>
<xsd:element name="return" type="xsd:int" />
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
- <message name="FragmentCheckInRequest">
<part name="fragment" type="tns:FragmentCheckInRequest" />
</message>
- <message name="FragmentCheckInResponse">
<part name="return" type="tns:FragmentCheckInReply" />
</message>
- <message name="DataImportXMLRequest">
<part name="fragment" type="tns:DataImportXMLRequest" />
</message>
- <message name="DataImportXMLResponse">
<part name="return" type="tns:DataImportXMLReply" />
</message>
- <portType name="CMSPortType">
- <operation name="FragmentCheckIn">
<documentation>Check in a Word file</documentation>
<input message="tns:FragmentCheckInRequest" />
<output message="tns:FragmentCheckInResponse" />
</operation>
- <operation name="DataImportXML">
<documentation>Import XML data</documentation>
<input message="tns:DataImportXMLRequest" />
<output message="tns:DataImportXMLResponse" />
</operation>
</portType>
- <binding name="CMSBinding" type="tns:CMSPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="FragmentCheckIn">
<soap:operation soapAction="urn:CMS#FragmentCheckIn" style="rpc" />
- <input>
<soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
- <output>
<soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
- <operation name="DataImportXML">
<soap:operation soapAction="urn:CMS#DataImportXML" style="rpc" />
- <input>
<soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
- <output>
<soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>
- <service name="CMS">
- <port name="CMSPort" binding="tns:CMSBinding">
<soap:address location="http://dtest.sun.ac.za/cms/cms/service/cms.php" />
</port>
</service>
</definitions>
I use Jdev 10.1.3.2 and generated the WS proxy, everything looks good. Then I go into the generated client and add in the following code:
public static void main(String[] args) {
try {
cmswstest.proxy.CMSPortClient myPort = new cmswstest.proxy.CMSPortClient();
System.out.println("calling " + myPort.getEndpoint());
DataImportXMLRequest dr = new DataImportXMLRequest();
String tmpXML =
"<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>" +
"<CMS_CURR_INFO_UPD>" +
"<MSG_SEQ_NO>NATX_ 0000000000000200706201337193</MSG_SEQ_NO>" + "</CMS_CURR_INFO_UPD>";
byte[] xmlb = tmpXML.getBytes();
dr.setUserName("elmarm");
dr.setUserPass("fud567");
dr.setXmlData(xmlb);
DataImportXMLReply repl = myPort.dataImportXML(dr);
System.out.println("Length of XML message = " + repl.get_return());
// Add your own code here
} catch (Exception ex) {
ex.printStackTrace();
When I run the client, I get the following error message:
calling http://dtest.sun.ac.za/cms/cms/service/cms.php
java.rmi.RemoteException: Mime Header Content-Type: text/xml requires SOAP envelope namespace: http://schemas.xmlsoap.org/soap/envelope/; nested exception is:
oracle.j2ee.ws.saaj.soap.SOAPVersionMismatchException: Mime Header Content-Type: text/xml requires SOAP envelope namespace: http://schemas.xmlsoap.org/soap/envelope/
at cmswstest.proxy.runtime.CMSBinding_Stub.dataImportXML(CMSBinding_Stub.java:161)
at cmswstest.proxy.CMSPortClient.dataImportXML(CMSPortClient.java:64)
at cmswstest.proxy.CMSPortClient.main(CMSPortClient.java:38)
Any ideas as to how to debug the situation. As is quite obvious, my experience with WS and SOAP is minimal at best :)
Thanks for all the help.
PS: I tried the same thing in Jdev 10.1.2 and got the following error:
[SOAPException: faultCode=SOAP-ENV:Client; msg=Parsing error, response was:
Expected 'EOF'.; targetException=oracle.xml.parser.v2.XMLParseException: Expected 'EOF'.]
at org.apache.soap.SOAPException.<init>(SOAPException.java:78)
at org.apache.soap.rpc.Call.invoke(Call.java:312)
at mypackage.CMSStub.DataImportXML(CMSStub.java:128)
at mypackage.CMSStub.main(CMSStub.java:51)
Elmar Matthee
University of Stellenbosch
South AfricaHi Vid,
To be able to deploy Doc-literal Web services on 10.1.2, you have to select the J2EE 1.3 type of web services when you create the first Web Service of a project. Once you have create a 1.4 service, the dialogue is not displayed again for the given project.
The other source you have is correct. the JAXRPC based type of Web service that is generated with JDeveloper 10.1.3 cannot be deployed on 10.1.2, as the new runtime is not available there.
One way to get a Doc-lit service on 10.1.2 is described in Mike's blog [1]. THe WSDL file generated in 10.1.3 is a good start, as it will enable an easier migration to 10.1.3, once it's available.
Hope this Helps,
Eric
[1] http://radio.weblogs.com/0132036/2003/12/07.html -
Invoking a browser via java application
I just downloaded code (to launch a browser) at:
http://www.javaworld.com/javatips/jw-javatip66_p.html
It brings up IE ONLY if it's not running already. But when it does launch IE, it does not resolve the website URL. It only produces a blank page...no errors, just blank...
Any ideas on that one?
BTW, make sure you add :
import java.io.*;
otherwise, the "catch" statement will not compile.
Thanks,
BobIt is absolutely normal that it only launches IE, because it actually launches Windows Explorer with a URL as parameter, and the Explorer hands it over to IE.
Otherwise the program should have to guess what is your default browser and its path, which probably can't be done without reading the registry, something java can't do.
All the program does is to launch a command :
rundll32 url.dll, FileProtocolHandler <url here>
type this command through Start menu -> Run dialog box and see if it opens the url. If it doesn't, then the problem is in your system. It opens the url on my comp. -
11G: Error invoking adf-binding service in composite with JAVA API
Hello,
i'm trying to invoke a asyncrhonous composite via JAVA API. My composite has two services: WS and ADF-BC SERVICE both of two are wired with a MEDIATOR that connects with two BPEL Process depending on two rules.
I need to invoke a process depending of the input: if the input is A i invoke the process 1 and if the input is B I invoke the process 2. I use the Mediator instead of switch because it's an example in order to build a complex decission system then.
R1 and R2 are two static rules in the Mediator.
R1 = $in.payload/client:process/client:tiposiniestro = 'A'
R2 = $in.payload/client:process/client:tiposiniestro = 'B'
And my XSD is:
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/POC_jws/ProcesoApertura/ProcesoApertura"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="process">
<complexType>
<sequence>
<element name="tiposiniestro" type="string"/>
</sequence>
</complexType>
</element>
<element name="processResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
</schema>
If i invoke with SOAP, sending the message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://xmlns.oracle.com/POC_jws/ProcesoApertura/ProcesoApertura">
<ns1:process>
<ns1:tiposiniestro>A</ns1:tiposiniestro>
</ns1:process>
</soap:Body>
</soap:Envelope>
the composite works. But if i try to invoke with JAVA, with the code:
String payload5 = "<process xmlns=\"http://xmlns.oracle.com/POC_jws/ProcesoApertura/ProcesoApertura\">" +
" <tiposiniestro>A</tiposiniestro>" +
"</process>";
String conversationId = UUID.randomUUID().toString();
NormalizedMessage nm = new NormalizedMessageImpl();
nm.addProperty(NormalizedMessage.PROPERTY_CONVERSATION_ID, conversationId);
Map<String,Object> payload = nm.getPayload();
payload.put("payload", pPayLoad);
nm.setPayload(payload);
service.post(pOperation, nm);
i get the following error:
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.w3c.dom.Element
How can I send the message via JAVA API using the mediator in my composite?
Is there any important difference in the format between send a request with SOAP or JAVA?
Thanks in advance.
Edited by: user7239022 on 05-ene-2010 7:38
Edited by: user7239022 on 05-ene-2010 7:40
Edited by: user7239022 on 05-ene-2010 7:49
Edited by: user7239022 on 05-ene-2010 8:41Talking about the dynamic rules in the Mediator, Oracle documentation says:
"As of now, only SOAP bindings are supported. There is a dummy SOAP binding in the composite.xml file. This endpoint is overridden by Mediator in runtime through NM property. So, outbound services can be called only over SOAP."
Is it valid for static rules as well? I means, how can i use Java API to invoke a Composite with a Mediator as first element? I always get the message:
+"java.lang.ClassCastException: java.lang.String cannot be cast to org.w3c.dom.Element"+
Thanks again -
Error invoking 'set_xslt_locale':'java.lang.IllegalAccessError
I am running seeded sourcing pages. I am getting following exception when i try to print an RFQ from JDeveloper:
Error invoking 'set_xslt_locale':'java.lang.IllegalAccessError: tried to access class oracle.apps.fnd.i18n.common.text.DigitList from class oracle.apps.fnd.i18n.common.text.ExcelNumberFormat'
Re: XML Publisher common user interface document viewer
In the above thread, i found below steps to resolve this:
Cause:
Essentially the problem is caused by incompatible versions of classes in the oracle.apps.fnd.i18n.* package held in the file jdevbin\jdev\appslibrt\aolj.jar versus the classes used by the BI Publisher libraries. The 'set_xslt_locale' method was introduced in BI publisher version 5.6.3 so if you have upgraded to this version on the server it is likely that you will get this error in JDeveloper.
Solution:
1) You will first need to copy the following file to your local JDev install and add it as a library via Project Settings --> Libraries :
$FND_TOP/java/3rdparty/stdalone/xdoparser.zip
2) Next fetch the latest version of the oracle.apps.fnd.i18n.* classes from $OA_JAVA. Create a zip file of these files (i.e. i18n.jar), copy to your local JDev install and add it as a library as you did with the xdoparser.zip.
3) Copying these files alone will not solve the problem because JDeveloper will use the oracle.apps.fnd.i18n.* classes located in the jdevbin\jdev\appslibrt\aolj.jar file before using the ones located in the file added in step 2 (i18n.jar). To get round this, ensure that the the library you have added for the i1n8.jar file is higher in the list (under Project Settings Libraries) than the libraries “FND Libraries” & “OA Developer Libraries” (if selected). This will ensure that the files in i18n.jar are used prior to those in jdevbin\jdev\appslibrt\aolj.jar. If this does not work (some users have found this approach not to work), make a backup of the file jdevbin\jdev\appslibrt\aolj.jar and then manully remove all files in the oracle.apps.fnd.i18n package from the file.
4) In addition to the above copy the file $OA_HTML/xdo_doc_display.jsp to your local OA_HTML directory (usually jdevhome\jdev\myhtml). You should also set the temporary directory of the XML Publisher (under Admin) to a directory that exists on your PC (eg. /var/tmp on your PC will be c:\var\tmp).
I am new to Java/JDeveloper/OAF.
Can someone please help me with the above steps?
I am unable to post anything in OA Framework forum.Yes, the OA Framework forum is "broken"
However, that is the best place to get help for this question. -
I need to generate PDF report using xml pub java APIs and RTF template and trying to call in OA Page.
I am getting this error any idea ?
52807_053618359][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[200]
[052807_053618359][][EXCEPTION] [DEBUG] [os.arch]:[x86]
[052807_053618359][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.Win32GraphicsEnvironment]
[052807_053618359][][EXCEPTION] [DEBUG] [java.ext.dirs]:[C:\Jdeveloper\jdevbin\jdk1.4.2\jre\lib\ext]
[052807_053618390][][EXCEPTION] [DEBUG] [oc4j.iiop.keyStoreLoc]:[keystore.jks]
[052807_053618390][][EXCEPTION] [DEBUG] [user.dir]:[C:\Jdeveloper\jdevhome\jdev\system9.0.3.5.1312\oc4j-config]
[052807_053618390][][EXCEPTION] [DEBUG] [CACHENODBINIT]:[true]
[052807_053618390][][EXCEPTION] [DEBUG] [line.separator]:[
[052807_053618390][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Client VM]
[052807_053618390][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBClass]:[com.oracle.iiop.server.OC4JORB]
[052807_053618390][][EXCEPTION] [DEBUG] [file.encoding]:[Cp1252]
[052807_053618640][][EXCEPTION] [DEBUG] [java.specification.version]:[1.4]
oracle.xml.parser.v2.XPathException: Extension function error: Error invoking 'set_xslt_locale':'java.lang.NoSuchMethodError: oracle.apps.fnd.i18n.common.text.DateFormatter.setCalendar(Loracle/apps/fnd/i18n/common/util/Calendar;)V'
at oracle.xml.parser.v2.XSLExtFunctions.callStaticMethod(XSLExtFunctions.java:113)
at oracle.xml.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction.java:199)
at oracle.xml.parser.v2.XPathExtFunction.getValue(XPathExtFunction.java:131)
at oracle.xml.parser.v2.XSLVariable.getValue(XSLVariable.java:206)
at oracle.xml.parser.v2.XSLStylesheet.processVariables(XSLStylesheet.java:591)
at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:466)
at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:448)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:246)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:136)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:173)
at oracle.apps.xdo.common.xml.XSLTClassic.transform(XSLTClassic.java:307)
at oracle.apps.xdo.common.xml.XSLTClassic.transform(XSLTClassic.java:184)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3555)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3614)
at oracle.apps.xdo.oa.common.DocumentHelper.getOutputURL(DocumentHelper.java:635)
at oracle.apps.xdo.oa.common.webui.XDOCommonRnCO.processRequest(XDOCommonRnCO.java:258)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:518)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:328)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:328)Check Re: Error invoking 'set_xslt_locale':'java.lang.NoSuchMethodError:
--Shiv -
Extract image and Features from the Catalog via JAVA API
Hello,
I would like to Extract image from the Catalog via JAVA API, Can anybody help on that? I also tried to extract the Features field form the Catalog but results in the error "Features field not found" Any ideas what could have wrong?
Many thanks,
DharmiHello,
Can anybody tell me where i can find the latest JAVAAPI reference guide? I found the one for MDM 5.5 SP 1 but that also refers to the last parameter of the CatalogCache.Init as int and not string.
I looked up in service.sap.com/instguides -> SAP Netweaver -> Release 4 -> Installation and there only following 3 files are there for MDM 5.5 SP2
MDM 5.5 SP02 - Configuration Guide SAP MDM
MDM 5.5 SP02 - Installation Guide SAP MDM
MDM 5.5 SP02 ERP-MDM Field Mapping and Check Tables
Regards,
Dharmi
Message was edited by: Dharmi Tanna
Message was edited by: Dharmi Tanna -
Error while invoking Webservice API ItemService_GetItemInformation
The following error is encountered while invoking Webservice API "ItemService_GetItemInformation"
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<faultcode>wsse:InvalidSecurity</faultcode>
<faultstring>Missing <wsse:Security> in SOAP Header</faultstring>
<faultactor/>
</env:Fault>
</env:Body>
</env:Envelope>
Same is repeated even after passing
RESPONSIBILITY_NAME => Inventory
RESPONSIBILITY_APPL_NAME => INV
SECURITY_GROUP_NAME => Standard
NLS_LANGUAGE => AMERICAN
Any pointer for the root cause of this error & how to resolve this?
Thanks In Advance!
priyadarshiHi ..
The error meaning: you need input the user_name and password for the SOAPHeader -
Authorization Error While Invoking BPEL Process Via RMI
Hi All,
I have been trying to invoke BPEL Process via RMI client.
I use the following piece of code for BPEL Process Invocation...
public class RMIClient {
public RMIClient() {
public static void main(String[] args){
Hashtable jndi = new Hashtable ();
jndi.put (Context.PROVIDER_URL, "opmn:ormi://host:6010:oc4j_soa/orabpel");
jndi.put (Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
jndi.put (Context.SECURITY_PRINCIPAL,"oc4jadmin"); // username of Bpel Manager
jndi.put (Context.SECURITY_CREDENTIALS,"welcome1"); //password of BPEL Manager
Locator locator=null;
try {
locator = new Locator("default",jndi);
} catch (ServerException e) {
e.printStackTrace();
IDeliveryService deliveryService =
(IDeliveryService)locator.lookupService
(IDeliveryService.SERVICE_NAME );
// construct the normalized message and send to oracle bpel process
NormalizedMessage nm = new NormalizedMessage( );
String xml = "<ns1:MyFirstBPELProjectProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/MyFirstBPELProject\">\n" +
" <ns1:input></ns1:input>\n" +
" </ns1:MyFirstBPELProjectProcessRequest>";
nm.addPart("payload", xml );
NormalizedMessage res=null;
try {
res = deliveryService.request("MyFirstBPELProject", "process", nm);
} catch (ServerException e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
Map payload = res.getPayload();
When I try to connect to my locally deployed BPEL process Manager and Invoke the same process (MyFirstBPELProjectProcess ) it works fine and creates an Instance on BPEL Process Manager Console.
When I tried Invoking the same BPEL process (MyFirstBPELProjectProcess ) deployed on a Remote machine ,it doesnt create an Instance.
I believe my connections settings are all correct ,since it doesnt give me an connection issue on my standalone client.
I tried looking at the following file default_group~oc4j_soa~default_group~1.log available opmn folder under SOA Suite OAS and there
are no errors.
Could some body point the log files that I need to look at.
I am sort of clueless...
Regards
HarishCAn you post the error. HAve you made sure that the remote machine has connection on the port 6010. You can test this with the folloing command from the remote machine
telnet host 6010
obviously replace host with the fully qualified host name of the SOA machine.
cheers
James -
How to call business rules scripts via Java API
Hi
I have a problem. I have some scripts (business rules in essbase) that can be seen thru Administration Services Console under Business Rules folder. How can I execute these script using Provider Services (via Java API to EssBase interface)?hi
i look too java api sample for "HBR Lounch"
you can try found example in EAS folder
C:\Hyperion\AdminServices\AppServer\InstalledApps\Tomcat\5.0.28\eas\webapps\hbrlauncher\MC_LaunchWindow.jsp
please back, if you will have resolution :) -
Hi.
My application has a gui. Now, when a button in the gui is invoked, its action should invoke Ant build which is existing , so that the build.xml will
do what is necessary.
How can I do it? That is, how to call the Ant via java? can anybody help me
Thanks in advanceSearch the ant documentation for a Launcher class.
-
How to invoke BPEL process from JAVA API
Hi Guys
Any idea if you can tell me how to invoke BPEL process from JAVA API ?
What to do in BPEL process manager to achieve that?
Regards
DeepakSee http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/invoke.htm#sthref1373 and the JavaDocs http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/toc.htm.
Maybe you are looking for
-
hi i have a standard oracle report query which i ve taken from the data model is it possible to rewrite this query without the bind variable , also the data given as output should be same when rewritten wht does &C_vendor_dynamic_SQL stand for SELECT
-
Me and my daughter had been using the same apple id, she was triyng to change it, now all of my iphone contact are gone, what can i do ti get it back , this is very important to me.
-
"The ipod "ipod" cannot be updated because ......
I am unable to update my ipod nano and get the message "The ipod "ipod" cannot be updated because there is not enough free space to hold all of the songs in the selected playlists." Huh? I have the 4GB nano and currently have 3.55GB used and 181MB fr
-
RoboHelp8: Search Tab takes time to show results
Hi, I am experiencing yet another irritating problem with RoboHelp 8. When I deploy my web help, my search tab takes longer than usual to load search results. The Contents, Index and Glossary tabs are working fine.
-
I have two problems when I create my first iWeb blog: 1. The rss feed of the blog doesn/t work in the browser: I publish my iWeb site in a folder. Therefor I choose the folder and that same window I type in the url of the website. When the blog is sh