OutofMemory Error while sending file to database using Web services

I have a file of 30MB to be written to the MySQL database. I am doing this in Axis web services and it gives me the following error:
(I am using Tomcat as the application server and Apache as the web server, Axis 1.3 and MySQL standard 5.0.21 version. I have set the minimum and maximum heap size and it works well without using the web service (just uploading and downloading from the database using a simple java program). Another thing to notice is that I can send a file of almost 10MB size to the database using web service without any problem. But it doesn't work with the 30 MB .)
java.lang.OutOfMemoryError: Java heap space; nested exception is:
     java.lang.OutOfMemoryError: Java heap space
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: java.lang.OutOfMemoryError: Java heap space; nested exception is:
     java.lang.OutOfMemoryError: Java heap space
faultActor:
faultNode:
faultDetail:
     {http://xml.apache.org/axis/}hostname:dbr221d.dbr.louisville.edu
java.lang.OutOfMemoryError: Java heap space; nested exception is:
     java.lang.OutOfMemoryError: Java heap space
     at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
     at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
     at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
     at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
     at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
     at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
     at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
     at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
     at org.apache.axis.client.Call.invoke(Call.java:2767)
     at org.apache.axis.client.Call.invoke(Call.java:2443)
     at org.apache.axis.client.Call.invoke(Call.java:2366)
     at org.apache.axis.client.Call.invoke(Call.java:1812)
     at edu.louisville.bcc_ma.ws.lab.LabServiceSoapBindingStub.storeGZIPFile(LabServiceSoapBindingStub.java:472)
     at edu.louisville.bcc_ma.lims.labclient.container.SendGZIPFile.sendFile(SendGZIPFile.java:69)
     at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.login(LoginContainer.java:58)
     at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.main(LoginContainer.java:44)

Sorry for the delayed response here, forget to add it to my watchlist. I didn't catch if you were using Java 1.5 or not. Prior to 1.5 the default maximum heap space was 64MB which with the overhead of the appserver might be your problem.
Take a look at http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and the java -Xmx <size> command line option to change the default (I believe the size argument is in bytes, but don't hold me to that). I think you can pass that as a command line option to the startup script, but you should check the doco to see if it needs to be wrapped in some other arg etc.,
I seem to recall running into this same problem a few years back when I had a servlet doing some intense graphics processing on the fly and setting this option fixed the problem.

Similar Messages

  • Error while saving file to database using messageFileUpload

    Hi,
    In my OA Page I have messageFileUpload to save the file to a database. I have a custom stored procedure that I call in the AM that takes the file as BLOB and insert it into the table. My problem is for smaller files it works fine but as soon as I try to save a larger file i.e. over 0.5 MB I am getting the following errors. Sometime I get size error sometimes I get unreasonable conversion requested error. How can I solve this so it takes any size of file and save it.
    Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Data size bigger than max size for this type: 2251264;
    Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested ; Here is what I have in my Controller code snippet
    BlobDomain uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
    Serializable[] parametersFile =  { fileName, contentType, fileSize, uploadedByteStream };
    Class[] paramTypesFile = { String.class, String.class, Long.class, BlobDomain.class };
    am.invokeMethod("saveFile", parametersFile, paramTypesFile);Here is the AM method that also invokes the Stored Procedure and pass the file as BLOB to save
    conn = (OracleConnection)dbTransaction.getJdbcConnection();
    cStmt = (OracleCallableStatement)conn.prepareCall(
                      "{CALL FILE_PKG.saveFile(:1, :2, :3, :4)}");
    cStmt.setString(1, fileName);
    cStmt.setString(2, fileContentType);
    cStmt.setNUMBER(3, new NUMBER(fileSize.intValue()));
    cStmt.setBinaryStream(4,uploadedFile.getBinaryStream(),fileSize.intValue());Any help is appreciated.
    Thanks

    I was able to resolve it and used the below code just in case if anyone else trying to save the BLOB
    byte[] barray = uploadedFile.getBytes(0,fileSize.intValue());
    oracle.sql.BLOB data = oracle.sql.BLOB.createTemporary(conn, true, BLOB.DURATION_CALL);
    data.putBytes(1,barray);
    cStmt.setBlob(4,tempBlob);

  • Error while invoking a WS-Security secured web service from Oracle BPEL..

    Hi ,
    We are facing some error while invoking a WS-Security secured web service from our BPEL Process on the windows platform(SOA 10.1.3.3.0).
    For the BPEL process we are following the same steps as given in an AMIS blog : - [http://technology.amis.nl/blog/1607/how-to-call-a-ws-security-secured-web-service-from-oracle-bpel]
    but sttill,after deploying it and passing values in it,we are getting the following error on the console :-
    &ldquo;Header [http://schemas.xmlsoap.org/ws/2004/08/addressing:Action] for ultimate recipient is required but not present in the message&rdquo;
    Any pointers in this regard will be highly appreciated.
    Thanks,
    Saurabh

    Hi James,
    Thanks for the quick reply.
    We've tried to call that web service from an HTML designed in Visual Studios with the same username and password and its working fine.
    But on the BPEL console, we are getting the error as mentioned.
    Also if you can tell me how to set the user name and password in the header of the parter link.I could not find how to do it.
    Thanks,
    Saurabh

  • Sending and receiving values using web services vi

    hi trying to receive values  values using the webservices vi 's, but im facing same conversion errors. im sending my project and an image of the problem can anyone help me on this?
    Attachments:
    TZID.zip ‏21 KB
    labviewscrn.JPG ‏126 KB

    Hi,
    Here is a global tutorial about Web Services :
    http://zone.ni.com/devzone/cda/tut/p/id/7350
    There are exemples at the end of the document : webservicesdemo.zip
    Please check the instruction for using web services given in the Readme.doc, it could be the source of your problem.
    Also, mind that you need the same language for you labVIEW version than the one used to create the Web service VIs.
    Regards,
    Rémi M.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les présentations NIDays 2010 déjà disponibles au téléchargement !

  • Error While Restoring the Oracle Database using Cloud Backup

    Hello,
    I have been facing a serious error while oracle restoration. I have Backed up Complete Database. For Testing restoration, the DBA removed all the DBF, logs and Control File from there orignal Position.
    He restarted the Database in "Startup nomount" mode. No i am not able to connect to target database from my Backup Server remotely.
    Whenever i try to restore, it shows following error:-
    ***RMAN-04005: error from target database:***
    ***ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
    ***ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
    ***"ORA-12528: TNS:listener: all appropriate instances are blocking new connections***
    I am using Oracle 11g R2 x64-bit database and on Windows Platform with Windows Server 2008 R2.
    Can Anyone help me by connecting, rman to the remote target database when it is in nomount mode.
    I am not able to connect the sqlplus remotely.\
    Thanks in Advance...
    Regards
    Pravesh Upadhyay

    Devika,
    You have to stop all your adapters, your repository, close all IStudio client and stop all sessions connected to this schema before running the oaiimport.
    If you don't do this the oaiimport will not work properly as the script will not be able to drop the user and will try to re-create existing objects.
    Tip : use the following select to list the session using oaihub902 user (and get rid off them)
    select username, count(*)
    from V$session
    where username in ('OAIHUB902')
    group by username
    order by count(*) desc, username
    JL

  • Error while setting up Standby database using Grid Control

    I am getting this on grid control 10.2 on windows env while creating standby database using EM. I have checked this folder and it does exists.
    any ideas?
    C:\oracle\ora10.1\network\admin\listener.ora: java.io.IOException: The system cannot find the path specified

    There is no problem tnsnames.ora & listener.ora since I am getting the same error for just standby backup also.
    this is error on emoms.trc file
    2007-07-18 13:19:37,318 [EMUI_13_19_37_/console/database/instance/sitemap] ERROR perf.sitemap setMaintenancePage.1812 - java.sql.SQLException: ORA-00933: SQL command not properly ended
    ORA-06512: at "SYSMAN.ECM_UTIL", line 509
    ORA-06512: at line 1
    java.sql.SQLException: ORA-00933: SQL command not properly ended
    ORA-06512: at "SYSMAN.ECM_UTIL", line 509
    ORA-06512: at line 1
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:869)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1153)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2932)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3023)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4132)
         at oracle.sysman.util.jdbc.PreparedStatementWrapper.execute(PreparedStatementWrapper.java:173)
         at oracle.sysman.util.jdbc.CallableStatementWrapper.execute(CallableStatementWrapper.java:135)
         at oracle.sysman.eml.ecm.cloneHome.repaccess.CloneHomeSql.getClonableHomes(CloneHomeSql.java:449)
         at oracle.sysman.eml.ecm.cloneHome.repaccess.CloneHomeSql.getClonableHomes(CloneHomeSql.java:561)
         at oracle.sysman.eml.ecm.cloneHome.repaccess.CloneHomeSql.isHomeClonable(CloneHomeSql.java:363)
         at oracle.sysman.db.adm.inst.SitemapController.setMaintenancePage(SitemapController.java:1807)
         at oracle.sysman.db.adm.inst.SitemapController.setRequestAttributes(SitemapController.java:1385)
         at oracle.sysman.db.adm.BaseController.handleEvent(BaseController.java:1154)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:577)
         at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:174)
         at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:114)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:781)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:337)
         at oracle.sysman.eml.app.Console.doGet(Console.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:88)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    2007-07-18 13:19:42,505 [EMUI_13_19_42_/console/database/dataguard/create] ERROR em.dataguard validate.1118 - CreateBean: ClassNotFoundException: null
    2007-07-18 13:19:44,224 [EMUI_13_19_44_/console/database/dataguard/create] ERROR em.dataguard validate.1118 - CreateBean: ClassNotFoundException: null
    2007-07-18 13:19:46,052 [EMUI_13_19_44_/console/database/dataguard/create] ERROR em.dataguard mapHelpPage.2002 - StandbyUtil.mapHelpPage: dghelp for database/dataguard/createSchedule not mapped to any help ID.. Defaulting to oemdba_consens_data_guard_page
    2007-07-18 13:19:47,130 [EMUI_13_19_47_/console/database/dataguard/create] ERROR em.dataguard validate.1118 - CreateBean: ClassNotFoundException: null
    2007-07-18 13:19:53,052 [Thread-85] ERROR jobs.dbclone createTemplate.379 - TemplateManager.createTemplate(): Exception: java.io.IOException: The system cannot find the path specified
    2007-07-18 13:19:53,052 [Thread-85] ERROR jobs.dbclone submitJobPreparation.3013 - DBCloneObject.submitJobPreparation(): Exception: java.io.IOException: The system cannot find the path specified
    2007-07-18 13:19:53,052 [Thread-85] ERROR jobs.dbclone submitDBCloneJob.3228 - DBCloneObject.submitDBCloneJob(): Exception: The system cannot find the path specified
    2007-07-18 13:19:58,006 [EMUI_13_19_58_/console/database/dataguard/create] ERROR em.dataguard onEvent.1038 - CreateConfigController: Exception: oracle.sysman.db.dg.util.VxxStandbyException: The system cannot find the path specified

  • Error while creating physical standby database using Oracle Grid 10.2.0.5

    Hi All,
    I am setting up data guard using oracle grid.
    Primary database version: - 10.2.0.4
    Standby database version: - 10.2.0.4
    Primary OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    Standby OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    I am creating physical standby database using EM. But it is getting failed with error message in sqlnet.ora file
    Fatal NI connect error 12533, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=)(CONNECT_DATA=(SERVICE_NAME=INPRDSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=indb50.oii.com)(USER=oracle))))
      VERSION INFORMATION:
            TNS for Linux: Version 10.2.0.4.0 - Production
            TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.4.0 - Production
      Time: 17-AUG-2010 02:40:07
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12533
        TNS-12533: TNS:illegal ADDRESS parameters
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0As we can see, address_list is empty.
    Can anyone suggest what could be the reason behind this?

    Dear user13295317,
    Here is the error explanation;
    Oracle Error :: TNS-12533
    TNS:illegal ADDRESS parameters
    Cause
    An illegal set of protocol adapter parameters was specified.
    In some cases, this error is returned when a connection cannot be made to the protocol transport.
    Action
    Verify that the destination can be reached using the specified protocol.
    Check the parameters within the ADDRESS section of TNSNAMES.ORA.
    Legal ADDRESS parameter formats may be found in the Oracle operating system specific documentation for your platform.
    Protocols that resolve names at the transport layer (such as DECnet object names) are vulnerable to this error if not properly configured or names are misspelled.Hope That Helps.
    Ogan

  • Error while inserting record into database using BPEL

    I am trying to read from an xml file using a File Adapter and insert the values read into a database (by invoking a database adapter).
    I formed the BPEL Process in the following manner:
    1.Receive activity to receive the values read from the file
    2.Assign activiuty to assign the values read to the Database input variable
    3.Invoke activity to invoke the Database adapter.
    The process deploys fine although with a warning : Trying to assign incompatible types.
    But when the process is executed, it is faulting at the invoke stage.
    The error i am getting is :
    <messages><input><InvokeDBInput><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="EmployeesCollection"><EmployeesCollection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/SaveToDB">
    <ns0:Employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/filetoDB D:\Smita\Software\jdevstudio10133\jdev\mywork\FileToDatabase\filetoDB\emp.xsd" xmlns="http://xmlns.oracle.com/filetoDB" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/SaveToDB">
         <Name>John Smith</Name>
         <Email>[email protected]</Email>
         <Department>Finance</Department>
         <Designation>Accountant</Designation>
         <Grade>5</Grade>
    </ns0:Employees>
    </EmployeesCollection>
    </part></InvokeDBInput></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
    </part><part name="summary"><summary>file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_FileToDBTest1_3.5_1558cd90a5c3c9708cd747f1b3638054.tmp/SaveToDB.wsdl [ SaveToDB_ptt::insert(EmployeesCollection) ] - WSIF JCA Execute of operation 'insert' failed due to: Mapping Not Found Exception.
    The mapping [Name] for descriptor [class bpel___localhost_default_FileToDBTest1_3_5__MD5_02e1d439ab7f9c7430b64c2a306ee77c_.SaveToDB.Employees] could not be found. The input xml record had an element [Employees/Name].
    ; nested exception is:
         ORABPEL-11627
    Mapping Not Found Exception.
    The mapping [Name] for descriptor [class bpel___localhost_default_FileToDBTest1_3_5__MD5_02e1d439ab7f9c7430b64c2a306ee77c_.SaveToDB.Employees] could not be found. The input xml record had an element [Employees/Name].
    Make sure that the input xml is valid relative to the xsd and that the mapping exists in the Mappings.xml. If an old version of the descriptor without this mapping has been loaded by the database adapter, you may need to bounce the app server. If the same descriptor is described in two separate Mappings.xml files, make sure both versions include this attribute/mapping.
    </summary>
    </part><part name="detail"><detail>null</detail>
    </part></bindingFault></fault></messages>
    The xml and xsd files i have used are these:
    XML File (Employee.xml ) :
    <?xml version="1.0" encoding="UTF-8"?>
    <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/filetoDB D:\Smita\Software\jdevstudio1013\jdev\mywork\FileToDatabase\filetoDB\emp.xsd" xmlns="http://xmlns.oracle.com/filetoDB">
         <Name>John Smith</Name>
         <Email>[email protected]</Email>
         <Department>Finance</Department>
         <Designation>Accountant</Designation>
         <Grade>5</Grade>
    </person>
    Schema file : (emp.xsd) :
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://xmlns.oracle.com/filetoDB"
    xmlns="http://xmlns.oracle.com/filetoDB"
    elementFormDefault="qualified">
    <xs:element name="person">
    <xs:complexType>
    <xs:sequence>
         <xs:element name="Name" type="xs:string"/>
         <xs:element name="Email" type="xs:string"/>
         <xs:element name="Department" type="xs:string"/>
         <xs:element name="Designation" type="xs:string"/>
         <xs:element name="Grade" type="xs:integer"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element></xs:schema>
    can someone help me out?

    I figured where i was going wrong...added a transform activity after the assign activity to map the file input fieds to the database columns. Now it works fine.

  • Error while calling siebel crm on demand web service

    Hi.
    Has anyone encounter this problem before while trying to invoke the Siebel crm on demand web services? Please help.
    Also, do I have to set up the SSL Trust Key and trust file to include the Siebel crm SSL cert?
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultString: com.ibm.wsspi.channel.framework.exception.ChannelException: com.ibm.wsspi.channel.framework.exception.ChannelException: Invalid trust file name of null
    faultActor: null
    faultDetail:

    Hi, yes I only use jax-ws to generate client artifacts for On Demand. I can imagine for first time user you have really big problems to generate the client code... The reason for this is in most cases the size of the wsdl files.
    What you can do is.
    1. Think about what you really need of the selected wsdl. eg. if it is account do you need all related objects like PlanAccount etc?
    2. If you know what you need start to delete the not needed definitions from the wsdl and try the generation of client afterwards.
    Best Regards
    SL

  • Getting error while creating Customer Invoice Request via Web Service

    Hello,
    I am trying to create customer invoice request via web service.
    But I am getting the error message "No scheme configuration found for scheme '&CIRHP&' " continuously.
    It is working fine in reference tenant. But using the same payload its giving error in another tenant.
    Can you please tell me what is the root cause for this error?
    I have included the payload used in the prototype tenant(Payload.txt) and screen shot of the error.
    Thanks and Regards,
    Sriram

    Hi,
    Check the WSDL file is wellformed or not..You can test it using tools like XML Spy.
    Might be the attribute tag is missing something..If WSDL file is correct then, create proxy by selecting the WSDL file from local machine..
    Regards,
    Sunitha

  • Generate XML file from RFC using Web Services

    Hi,
      I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.
    I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.
    Any FM available?
    Thanks,
    Ram Sanjeev

    which version of WAS you are on .
    if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    lower version of WAS use class cl_http_client.
    if this case you have to manually build the soap message.
    /people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
    Regards
    Raja

  • Unknown error while trying to build and test web service

    Hi,
    I get this error while building my web service.It says "An unexpected exception
    occurred while attempting to process the classes and annotations for this Web Service.
    Error: Unknown KNEX string: description.null"
    Pasted below is the output on the IDE and the server.
    Please help!!
    Workshop output
    Charges.jws     0     An unexpected exception occurred while attempting to process the classes
    and annotations for this Web Service. Error: Unknown KNEX string: description.null
    Server output
    java.lang.NullPointerException
    at java.lang.Class.isAssignableFrom(Native Method)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:928)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.crackClass(WsdlTypeBagImpl.java:386)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addType(WsdlTypeBagImpl.java:522)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.filter(WsdlTypeBagImpl.java:606)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:940)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addParamHolder(WsdlTypeBagImpl.java:121)
    at weblogic.knex.wsdlgen.Schemas.addPartHolder(Schemas.java:45)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.createMessage(TypeXlatorImpl.java:221)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaOp(TypeXlatorImpl.java:721)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaService(TypeXlatorImpl.java:831)
    at weblogic.knex.dispatcher.TypeUtils.makeWsdlService(TypeUtils.java:1388)
    at weblogic.knex.dispatcher.TypeUtils.makeWsdl(TypeUtils.java:1459)
    at weblogic.knex.dispatcher.DispFile.makeDispClass(DispFile.java:2528)
    at weblogic.knex.dispatcher.DispFile.makeDispFile(DispFile.java:611)
    at weblogic.knex.dispatcher.DispUnit.makeDispUnit(DispUnit.java:50)
    at weblogic.knex.dispatcher.DispCache.ensureDispUnit(DispCache.java:584)
    at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:297)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5352)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:718)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet
    (WebAppServletContext.java:3032)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Thanks and Regards,
    SSN

    Hello,
    You might try asking your question to the WebLogic Workshop news group: weblogic.developer.interest.70beta.workshop
    Thanks,
    Bruce
    SSNarayan wrote:
    Hi,
    I get this error while building my web service.It says "An unexpected exception
    occurred while attempting to process the classes and annotations for this Web Service.
    Error: Unknown KNEX string: description.null"
    Pasted below is the output on the IDE and the server.
    Please help!!
    Workshop output
    Charges.jws 0 An unexpected exception occurred while attempting to process the classes
    and annotations for this Web Service. Error: Unknown KNEX string: description.null
    Server output
    java.lang.NullPointerException
    at java.lang.Class.isAssignableFrom(Native Method)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:928)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.crackClass(WsdlTypeBagImpl.java:386)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addType(WsdlTypeBagImpl.java:522)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.filter(WsdlTypeBagImpl.java:606)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:940)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addParamHolder(WsdlTypeBagImpl.java:121)
    at weblogic.knex.wsdlgen.Schemas.addPartHolder(Schemas.java:45)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.createMessage(TypeXlatorImpl.java:221)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaOp(TypeXlatorImpl.java:721)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaService(TypeXlatorImpl.java:831)
    at weblogic.knex.dispatcher.TypeUtils.makeWsdlService(TypeUtils.java:1388)
    at weblogic.knex.dispatcher.TypeUtils.makeWsdl(TypeUtils.java:1459)
    at weblogic.knex.dispatcher.DispFile.makeDispClass(DispFile.java:2528)
    at weblogic.knex.dispatcher.DispFile.makeDispFile(DispFile.java:611)
    at weblogic.knex.dispatcher.DispUnit.makeDispUnit(DispUnit.java:50)
    at weblogic.knex.dispatcher.DispCache.ensureDispUnit(DispCache.java:584)
    at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:297)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5352)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:718)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet
    (WebAppServletContext.java:3032)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Thanks and Regards,
    SSN

  • Resource_not_found error while sending file

    Hi,
    We are trying to send and recieve a file through File Adaptors
    The system is able to pick up the file from sending Business system but we are getting error that RESOURCE_NOT_FOUND in request message mapping.
    We are on XI 3.0 Stack 5.
    Has anybody experienced a similar error.
    Any speedy response to this query will be highly appreciated.
    Regards
    Siddhartha Jha

    Hi,
    The same scenario is working when executing without agent (local agent) ,
    only for ODI agent it is not working
    Another thing i noticed ,
    1.) ODI Studio on Windows environment
    2.) Weblogic server (where ODI agent has been deployed) is on Linux machine.
    3.) Shared location is on windows system
    Is it like when i use a local agent , i bypass the Linux machine server and hence I am able to write file on shared location
    While if I use ODI agent , I try to post on windows machine using server present in Linux environment , hence not able to write a file .
    Can this be an issue ? . If yes , how to workaround it
    Thanks ,
    Sasmit

  • Getting error while backing up SQL database using powershell

    I am trying to backup SQL database but strange thing is taking lpace, few databases i can backup with powershell but few i am getting error
        Exception calling "SqlBackup" with "1" argument(s): "Backup failed for Server 
        'Server1'. "
        At C:\_Scripts\defaultbackup.ps1:40 char:1
        + $smoBackup.SqlBackup($server)
        + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : FailedOperationException
        $dbToBackup = "test"
        #clear screen
        cls
        #load assemblies
        #note need to load SqlServer.SmoExtended to use SMO backup in SQL Server 2008
        #otherwise may get this error
        #Cannot find type [Microsoft.SqlServer.Management.Smo.Backup]: make sure
        #the assembly containing this type is loaded.
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoExtended") | 
        Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo") 
        | Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoEnum") | Out-  
        Null
        #create a new server object
        $server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") "(local)"
        $backupDirectory = $server.Settings.BackupDirectory
        "Default Backup Directory: " + $backupDirectory
        $db = $server.Databases[$dbToBackup]
         $dbName = $db.Name
         $timestamp = Get-Date -format yyyyMMddHHmmss
        $smoBackup = New-Object ("Microsoft.SqlServer.Management.Smo.Backup")
        #BackupActionType specifies the type of backup.
        #Options are Database, Files, Log
        #This belongs in Microsoft.SqlServer.SmoExtended assembly
        $smoBackup.Action = "Database"
        $smoBackup.BackupSetDescription = "Full Backup of " + $dbName
        $smoBackup.BackupSetName = $dbName + " Backup"
        $smoBackup.Database = $dbName
        $smoBackup.MediaDescription = "Disk"
        $smoBackup.Devices.AddDevice($backupDirectory + "\" + $dbName + "_" + $timestamp +   
        ".bak",   
        "File")
        $smoBackup.SqlBackup($server)
        #let's confirm, let's list list all backup files
        $directory = Get-ChildItem $backupDirectory
       $smoBackup.Devices.AddDevice($backupDirectory + "\" + $dbName + "_" + $timestamp + ".bak", "File")
    $smoBackup.SqlBackup($server)
    #let's confirm, let's list list all backup files
    $directory = Get-ChildItem $backupDirectory
    #list only files that end in .bak, assuming this is your convention for all backup files
        $backupFilesList = $directory | where {$_.extension -eq ".bak"}
        $backupFilesList | Format-Table Name, LastWriteTime
        $backupFilesList = $directory | where {$_.extension -eq ".bak"}
        $backupFilesList | Format-Table Name, LastWriteTime
    I read on internet that by using this in the script this problem can be sorted but i am
    not sure where exactly to put this line in above script set the ConnectionContext.StatementTimeout to 0
                  

    Hi Srk,
    I found the similar issue in this article, which had been sovled by adding the script below:
    $server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") $dbInstance
    $server.ConnectionContext.StatementTimeout = 0
    Refer to:
    Exception calling "SqlBackup" with "1" argument(s)
    Please feel free to let me know if this method can not work.
    Best Regards,
    Anna Wang

  • Error while loading the Repository database using OAIIMPORT

    We are building a test oai environment I am trying to load the repository with the export dump from our production oai using the OAIIMPORT script.
    I get the following error message:
    Deleting all tables, indexes, and logs ...
    Executing: sqlplus system/[email protected] @sql/deinstall_schema
    SQL*Plus: Release 9.0.1.4.0 - Production on Wed Aug 18 15:04:50 2004
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.4.0 - Production
    DROP USER oaihub902 CASCADE
    ERROR at line 1:
    ORA-01940: cannot drop a user that is currently connected
    Disconnected from Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.4.0 - Production
    Recreating user ...
    Executing: sqlplus system/[email protected] @sql/hub1 oaihub902
    SQL*Plus: Release 9.0.1.4.0 - Production on Wed Aug 18 15:04:50 2004
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.4.0 - Production
    DOC>** hub1.sql
    DOC>** Modified 11/14/2001 Arvind : Commented Out excessive priviledge from oaihub user
    DOC>** Modified 01/03/2002 Arvind : Added Parameter for oaihub user password
    DOC>** CREATE user oaihub902 and assign table space.
    DOC>*/
    old 1: CREATE USER oaihub902 IDENTIFIED BY &1 DEFAULT TABLESPACE USERS PROFILE DEFAULT ACCOUNT UNLOCK
    new 1: CREATE USER oaihub902 IDENTIFIED BY oaihub902 DEFAULT TABLESPACE USERS PROFILE DEFAULT ACCOUNT UNLOCK
    CREATE USER oaihub902 IDENTIFIED BY oaihub902 DEFAULT TABLESPACE USERS PROFILE DEFAULT ACCOUNT UNLOCK
    ERROR at line 1:
    ORA-01920: user name 'OAIHUB902' conflicts with another user or role name
    User altered.
    User altered.
    Grant succeeded.
    Grant succeeded.
    DOC>** Grant privileges TO user oaihub902.
    DOC>*/
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Disconnected from Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.4.0 - Production
    Importing metadata ...
    Executing: imp system/[email protected] fromuser=oai touser=oaihub902 commit=y file=uranus_aug04_exp.dmp
    Executing: sqlplus oaihub902/[email protected] @sql/post_import
    SQL*Plus: Release 9.0.1.4.0 - Production on Wed Aug 18 15:04:52 2004
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.4.0 - Production
    DOC> ** Create Tables
    DOC> */
    DOC> ** Workflow Tables and Sequences
    DOC> */
    CREATE TABLE lookupid (id NUMBER(10) NOT NULL
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE TABLE lookup (tableid NUMBER(10) NOT NULL
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    DOC> ** Component Info Tables and Sequences
    DOC> */
    CREATE TABLE ComponentInfo (name VARCHAR2(256) NOT NULL,
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE TABLE ComponentInfoValue (seqnum NUMBER
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE TABLE AppIDTable (appid     NUMBER
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE TABLE RepoIDTable (repoid NUMBER
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE TABLE MessageInfoIDTable (messageinfoid NUMBER
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    DOC> ** Correlation
    DOC> */
    CREATE TABLE msg_correlation ( messageinfoid     NUMBER,
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    DOC> ** Tracking and Status Tables
    DOC> */
    CREATE TABLE MessageStatusTable ( SenderApp     NUMBER,
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    DOC> ** Error Table and resubmission AQ
    DOC> */
    CREATE TABLE oai_agent_error ( errorID     NUMBER
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    DOC> ** Create Views
    DOC> */
    CREATE VIEW lcoview as
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE VIEW eventview as
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE VIEW eventlcoview as
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE VIEW emdview as
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE VIEW dsoview as
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    DOC> ** Create Queues
    DOC> */
    DOC> ** Hub Queue
    DOC> */
    Procedure created.
    PL/SQL procedure successfully completed.
    DOC> ** Error Queue
    DOC> */
    CREATE type oai_agent_error_type as object ( errorID     NUMBER,
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    DECLARE
    ERROR at line 1:
    ORA-24001: cannot create QUEUE_TABLE, OAIHUB902.OAI_AGENT_ERROR_OBJQTAB already
    exists
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2284
    ORA-06512: at "SYS.DBMS_AQADM", line 56
    ORA-06512: at line 3
    PL/SQL procedure successfully completed.
    DOC> ** Create Sequences
    DOC> */
    SELECT * FROM SEQUENCE_VALUES;
    ERROR at line 3:
    ORA-06550: line 3, column 18:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 3, column 4:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 6, column 44:
    PLS-00364: loop index variable 'SEQ_REC' use is invalid
    ORA-06550: line 6, column 4:
    PL/SQL: Statement ignored
    DROP TABLE SEQUENCE_VALUES
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Disconnected from Oracle9i Enterprise Edition Release 9.0.1.4.0 - Production
    With the Partitioning option
    JServer Release 9.0.1.4.0 - Production
    Any idea why these errors and how to fix this ?
    Thanks in advance
    Devika.

    Devika,
    You have to stop all your adapters, your repository, close all IStudio client and stop all sessions connected to this schema before running the oaiimport.
    If you don't do this the oaiimport will not work properly as the script will not be able to drop the user and will try to re-create existing objects.
    Tip : use the following select to list the session using oaihub902 user (and get rid off them)
    select username, count(*)
    from V$session
    where username in ('OAIHUB902')
    group by username
    order by count(*) desc, username
    JL

Maybe you are looking for