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 &apos;EOF&apos;.; 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 Africa

Hi 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

Similar Messages

  • How to call Jakarta Ant via JAVA?

    Hi.
    My application has a new menu. This menu creates a build.xml Ant file.
    Now, when this menu is invoked , its action should call
    Jakarta Ant, after creating the xml file, so that the build.xml will
    do what is necessary.
    How can I do it? That is, how to call the Ant via java?
    Is there any way to use an Ant object?
    Thanks?
    Rodrigo Pimenta Carvalho.

    There is a slight problem in that
    PorjectHelper.configureProject is deprecated, but
    that is what Main calls...maybe someone else will
    complete this thread with an alternative call.The javadoc recommends using the non static method parse() instead. This is available by implementing class ProjectHelperImpl. An alternative to the code above might look like this:
            Project ant = new Project();
            ProjectHelper helper = new ProjectHelperImpl();
            ant.init();
            helper.parse(ant, new File("build.xml"));
            ant.executeTarget("clean");you might also want to add a logger so you can see the output of events generated by ant. The DefaultLogger class would be used like this. Simply add the code before you call the ant.init().
            DefaultLogger log = new DefaultLogger();
            log.setErrorPrintStream(System.err);
            log.setOutputPrintStream(System.out);
            log.setMessageOutputLevel(Project.MSG_INFO);
            ant.addBuildListener(log);

  • Error while running EJB from java client on JBOSS

    Hi
    As i am new to EJB i have created a helloworld application in ejb which is working fine when i try to call it from servlet but when i try to invoke the same ejb from java client (i.e from diff jvm) on jboss i got the following error:
    javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
         at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1399)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.gl.TestClient.main(TestClient.java:39)
    Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:254)
         at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)
         ... 4 more
    Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228)
         ... 5 more
    Caused by: java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:519)
         at java.net.Socket.connect(Socket.java:469)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:266)
         at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
         at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:224)
         ... 5 more
    Following is my code:
    Home Interface:
    package com.gl;
    import javax.ejb.CreateException;
    public interface testHome extends EJBHome {
         String JNDI_NAME = "testBean";
         public     test create()
         throws java.rmi.RemoteException,CreateException;
    Remote Interface:
    package com.gl;
    import java.rmi.RemoteException;
    import javax.ejb.EJBObject;
    public interface test extends EJBObject {
         public String welcomeMessage() throws RemoteException;
    Bean:
    package com.gl;
    import java.rmi.RemoteException;
    import javax.ejb.EJBException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    public class testbean implements SessionBean {
         public void ejbActivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbPassivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbRemove() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void setSessionContext(SessionContext arg0) throws EJBException,
                   RemoteException {
              // TODO Auto-generated method stub
         public void ejbCreate(){}
         public String welcomeMessage(){
              return "Welcome to the World of EJB";
    ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <session>
    <ejb-name>testBean</ejb-name>
    <home>com.gl.testHome</home>
    <remote>com.gl.test</remote>
    <ejb-class>com.gl.testbean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    jboss.xml:
    <?xml version='1.0' ?>
    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
    <jboss>
    <enterprise-beans>
    <entity>
    <ejb-name>testBean</ejb-name>
    <jndi-name>testBean</jndi-name>
    </entity>
    </enterprise-beans>
    </jboss>
    Client code:
    package com.gl;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class TestClient {
         public static void main(String[] args) throws Exception{
                   try{
                   /*     Properties props=new Properties();
                        props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
                        props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
                        props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
                   Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY,
    "org.jnp.interfaces.NamingContextFactory");
    props.put(Context.PROVIDER_URL, "localhost:1099");
                        System.out.println("Properties ok");
                        //env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
                        //env.put(Context.PROVIDER_URL,"http://localhost:8080");
                        //env.put(Context.SECURITY_PRINCIPAL, "");
                        //env.put(Context.SECURITY_CREDENTIALS, "");
                        Context ctx=new InitialContext(props);
                        System.out.println("context ok");
                        //testHome home = (testHome)ctx.lookup("testBean");
                        Object obj = ctx.lookup ("testBean");
                        System.out.println("ojb = " + obj);
                        testHome ejbHome = (testHome)PortableRemoteObject.narrow(obj,testHome.class);
                   test ejbObject = ejbHome.create();
                   String message = ejbObject.welcomeMessage();
                        System.out.println("home ok");
                        System.out.println("remote ok");
                        System.out.println(message);
                        catch(Exception e){e.printStackTrace();}
    I am able to successfully deployed my ejb on JBOSS but i m getting above error when i am trying to invoke ejb from java client.
    kindly suggest me something to solve this issue.
    Regards
    Gagan
    Edited by: Gagan2914 on Aug 26, 2008 3:28 AM

    Is it a remote lookup? Then maybe this will help:
    [http://wiki.jboss.org/wiki/JBoss42FAQ]
    - Roy

  • Calling stored procedure via java

    Hi all,
    i have a problem calling a stored procedure in my java code. I found an example at OTN which seems not to be correct. I know there had been a lot of posting regarding this isue but i did not find the solution.
    I had the following VB-code to translate to java:
    Set k = Server.CreateObject("ADODB.command")
    With k
    .activeconnection = Db
    .CommandType = 4
    .CommandText = "Get_SK"
    Set vret = .createparameter("vRet", 131, 2) 'Output
    .Parameters.append vret
    .Execute
    End With
    In my java code:
    CallableStatement sproc_stmt = null;
    try {
    sproc_stmt = lsession.connection().prepareCall("{ ? = call TCSDBOWNER.Get_SK}");
    sproc_stmt.registerOutParameter(1,OracleTypes.NUMERIC);
    sproc_stmt.setFetchSize(10);
    sproc_stmt.execute();
    The call generates an id for inserting new rows in the DB. executing the code shown above i got the following error:
    wrong number or types of parameter/arguments
    Is there anybody who can help me? Best regards,
    ak

    Hi again,
    this was really ugly:
    Re: Executing stored procedure via java
    Thanks all, regards,
    ak

  • 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.

  • Calling XI interfaces via Java

    Hi All,
    What is the method to call a Interface in XI via Java?
    Regards,
    Keerti

    are you talking about Java Proxy ?
    You can connect to an external Java based system via a Java proxy (XI adapter) - http://help.sap.com/saphelp_nw04/helpdata/en/e1/091640a991c742e10000000a1550b0/content.htm
    Also have a look at these weblogs;
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy

  • How to call Oracle Reports via Java Web Application ?

    Dear All,
    I have developed a web reports using Oracle Reports 11g and would like to display these reports via Java Web App that will call them.
    Kindly help me in this matter.
    Regards,
    Irfan

    i will go as John suggested.........Construct a URL with required parameters and call it using goLink component
    make a configuration in Report server and
    http://myServer:myport/reports/rwservlet?config=myconfig&destype=cache&desformat=PDF&report=myreport.jsp&myparameter=myvalue

  • 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

  • Error Call Web Service Deployed to OC4J 10g with JDev 10g

    I deployed a PL/SQL Package as a Web Service to a Stand Alone 10g OC4J instance. When I invoke the Web Service the text I am returned is this:
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.rmi.RemoteException: null; nested exception is:
         java.lang.NullPointerException</faultstring>
    <faultactor>/webservice/Mayoclinic</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I can successfully run the Web Service in the OC4J instance in JDev 10g.
    Any ideas. I recieve know errors in JDev 10g Deploying the application.

    Last line should be ...
    Any ideas. I recieve NO errors in JDev 10g Deploying the application.

  • Calling ABAP BAPIs from a JAVA client - Web Services vs. JCo

    Hi All,
    When calling BAPIs from a JAVA client, what are the pros/cons for making the call employing JCo vs web service technologies.  I understand that using SOAP would play better into the SOA theme and that there are nice tools to generate a WSDL document from a BAPI.  Aside from the obvious, are there any performance considerations and/or other major pros/cons to each
    Thanks,
    Mark

    Hi Mark,
    Have you got any information on this. If you have any information on this pls forward to me at <b>[email protected]</b> I am also having this confusion. My question is a bit deviating from your point. If we use XI when developing WDJs with WS, will it help in improving performance and maintenance.will it give any advantage if I use XI with BAPIs to connecto backend from WDJ apps. I got this confusion, becasue of a requirement to develop WDJ apps that will be accessed by 50,000 users. Somebody told client that use of XI willimprove performance.
    Any help is greatful
    Regards
    Ravindra
    Message was edited by:
            Ravindra Babu Tanguturi

  • Integrationevent wsdlLocation java client

    Hi All,
    I've read the webservice on demand guide but, I don't have a clue how to do this with the integrationevent webservice. I was able to connect to the pod and get the session id with java (client generated with jdeveloper) but now i struggle how to get the sessionid into the proxy to call getEvents. I did this before with .Net and it was no problem there was always a method setUrl(). This is what i have so far but...
    1. is this location a valid wsdl location vor Integrationevent.wsdl used for the call? I
    https://secure-ausomxefa.crmondemand.com/Services/Integration?wsdl
    2. This is the java call:
    //here is the session created and jsessionid is retrieved
    Session sesobj=new Session();
    integrationEventWS = new IntegrationEventWS(); //this is the call that throws the error mentiond down below
    Default_Binding_IntegrationEventWS default_Binding_IntegrationEventWS = integrationEventWS.getDefault();...
    3. and this is the IntegrationEventWS class with the wsdllocation:
    public class IntegrationEventWS
    extends Service
    private static URL wsdlLocationURL;
    private static Logger logger;
    static
    try
    logger = Logger.getLogger("crmondemand.ws.integrationevent.IntegrationEventWS");
    URL baseUrl = IntegrationEventWS.class.getResource(".");
    if (baseUrl == null)
    wsdlLocationURL =
    IntegrationEventWS.class.getResource("https://secure-ausomxefa.crmondemand.com/Services/Integration?wsdl");
    if (wsdlLocationURL == null)
    baseUrl = new File(".").toURL();
    wsdlLocationURL = new URL(baseUrl, "https://secure-ausomxefa.crmondemand.com/Services/Integration?wsdl");
    else
    if (!baseUrl.getPath().endsWith("/")) {
    baseUrl = new URL(baseUrl, baseUrl.getPath() + "/");
    wsdlLocationURL = new URL(baseUrl, "https://secure-ausomxefa.crmondemand.com/Services/Integration?wsdl");
    catch (MalformedURLException e)
    logger.log(Level.ALL,
    "Failed to create wsdlLocationURL using https://secure-ausomxefa.crmondemand.com/Services/Integration?wsdl",
    e);
    public IntegrationEventWS()
    super(wsdlLocationURL,
    new QName("urn:crmondemand/ws/integrationevent/",
    "IntegrationEventWS"));
    public IntegrationEventWS(URL wsdlLocation, QName serviceName)
    super(wsdlLocation, serviceName);
    @WebEndpoint(name="Default")
    public crmondemand.ws.integrationevent.Default_Binding_IntegrationEventWS getDefault()
    return (crmondemand.ws.integrationevent.Default_Binding_IntegrationEventWS) super.getPort(new QName("urn:crmondemand/ws/integrationevent/",
    "Default"),
    crmondemand.ws.integrationevent.Default_Binding_IntegrationEventWS.class);
    @WebEndpoint(name="Default")
    public crmondemand.ws.integrationevent.Default_Binding_IntegrationEventWS getDefault(WebServiceFeature... features)
    return (crmondemand.ws.integrationevent.Default_Binding_IntegrationEventWS) super.getPort(new QName("urn:crmondemand/ws/integrationevent/",
    "Default"),
    crmondemand.ws.integrationevent.Default_Binding_IntegrationEventWS.class,
    features);
    I'm always getting this error on calling the default constructor of IntegrationEventWS
    Exception breakpoint occurred at line 641 of URLClassPath.java.
    java.io.FileNotFoundException: \ade\aime_xdk_532664\oracle\xdk\lib\xmlparserv2.jar
    Process exited with exit code 0.
    I tried the process with Opportunity WS v2 and it's the same issue... what is wrong with the call??? and where is the sessionid put in?
    Thanks...
    SL

    Hi All,
    finally it did work out with axis to generate the client, but please Oracle do something with your webservices, it can't be so difficult to load a simple webservice into the IDE. The Integrationevent ws documentation isn't really clear and the manual work that has to be done for leveraging the service isn't state of the art at all!
    Regards
    SL

  • Help required for ---- Java Client  -- XI -- R/3

    Hello,
    *My Java Client is on Server A. My XI is on server B. I had wsdl (webservice) with me .*
    How to call wsdl (webservice) from Java Client that is on Server A to XI that is on server B.
    Pls help
    Regards

    Good Morning Prateek,
    I have tested with Altoval XML spy . It is working fine.
    Altoval XML spy (on my local machine) -- XI -- R/3.
    Now instead of xml spy I want java client  -- XI -- R/3 with scanerio that javal client is on server A and XI on server B.
    2. For that request parameter (O/B Interface) I have made wsdl (webservice) through XI .
    After making wsdl it ask to save that wsdl.I have saved that wsdl currently
    in my local machine.
    3.How to call this wsdl (webservice) from Java Client that is on Server A to XI that is on server B.
    Pls explain me the all the steps in detail and also send me links/docs for it.
    Regards

  • How to send  a request to servlet from a java client.

    I called a servlet from java client using URL object.
    I could establish a connection with server and display
    the content(like req.getservername etc.,)
    of servlet on client side(DOS prompt).
    My question is how do i send a request to servlet from the client.
    let me say, i have to send a value as 10 to servlet and do some processing
    ( like 10*2 = 20) display the output (20) on client side..
    It will be appreciated if u can mention the syntax...

    just add the query string to the url you use to create the URL object from.

  • How to invoke ant via java

    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 advance

    Search the ant documentation for a Launcher class.

  • EJB Java Client to Corba C++ object

    Does BEA have any examples of calling from an EJB java client to a CORBA C++ object
    (please no Tuxedo examples, thank you)?
    I've tried the c++ -> EJB examples, however now I need the other way around.
    thanks,
    Sean

    Andy Piper <[email protected]> wrote:
    "Sean Cloutier" <[email protected]> writes:
    Does BEA have any examples of calling from an EJB java client to aCORBA C++ object
    (please no Tuxedo examples, thank you)? Not that I am aware of. This is just a standard CORBA client scenario.
    andy
    -- Cool, thanks Andy!

Maybe you are looking for

  • Albums in Itunes

    Hi! I have a strange problem... When I look for ALBUMS in my ipad, it appears as if I had many different albums with the same name. Just to give an example... There are 6 "The While Album", each with a few songs (random). If you combine all of them,

  • Please help me... Its urgent

    Hi guys I am writing a program which will download the HTML source code of pages. Before downloading, I am checking whether that URL exists or not. But my program seems to hang when I use the function getPage of WebGrabber many times. My code is as f

  • What operating system is on my MacBook bought in 02/2009 in UK

    What operating system is on my MacBook bought in 02/2009 in UK

  • Imp fails with character set marker unknown

    Hi All, I'm trying to import a dump that was done in WE8ISO8859P1 with Oracle 9i 9.2.0.5.0 into the Western European XE version on Windows XP Professional SP2. I get an IMP-00037 Character set marker unknown error I've tried setting NLS_LANG to Ameri

  • This approval workflow is killing me

    I know this should be simple, but here is what I am trying to accomplish: User 1 submits his expense report through an infopath form. Manager 1 gets form, reviews and approves or rejects it. If it is approved, it goes to: Director 1 gets form, review