File to database scenario in JCAPS513

Hi ,
I ma trying to do File to database scenarion in Jcaps513. here i am using Oracle 9i as database . I m using prepare statement for it .
I m trying to fetch data from databse and write into simple text file . But after deployment i am getting following error.
please suggest me solution for the same.
[#|2009-06-18T17:32:34.085+0530|SEVERE|IS5.1.3|prj_Database_File.cm_database_jcd_Database_File_1.jcd_Database_File_Runtime_Handler|_ThreadID=14; ThreadName=Worker: 4; Context=project=prj_Database_File,deployment=dp_databse,collab=cm_database_jcd_Database_File 1,external=File1;stacktrace-id=1;|com.stc.codegen.framework.runtime.ServiceInitializationException: Error in allocating a connection. Cause: Connection could not be allocated because: invalid arguments in call
com.stc.codegen.framework.runtime.ServiceInitializationException: Error in allocating a connection. Cause: Connection could not be allocated because: invalid arguments in call
     at com.stc.oracle.runtime.ejb.OracleEWayRuntimeHandler.initializeService(OracleEWayRuntimeHandler.java:262)
     at prj_Database_File.cm_database_jcd_Database_File_1.jcd_Database_File_Runtime_Handler.handleRequest(prj_Database_File.cm_database_jcd_Database_File_1.jcd_Database_File_Runtime_Handler:355)
     at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)
     at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:135)
     at $Proxy39.handleRequest(Unknown Source)
     at com.stc.connector.codegen.fileadapter.AbstractFileAdapterMDB.sendMessage(AbstractFileAdapterMDB.java:153)
     at com.stc.connector.codegen.fileadapter.AbstractFileAdapterMDB.onContents(AbstractFileAdapterMDB.java:104)
     at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:940)
     at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
     at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:948)
     at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:42)
     at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:136)
     at $Proxy43.onContents(Unknown Source)
     at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.stc.connector.framework.eway.EndpointProxy.invoke(EndpointProxy.java:175)
     at $Proxy42.onContents(Unknown Source)
     at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.stc.connector.framework.eway.MessageResourceManager$MessageSender.run(MessageResourceManager.java:245)
     at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:54)
     at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)

The message: "Error in allocating a connection. Cause: Connection could not be allocated because: invalid arguments in call" could be a sign that you should double-check configurations in your Environment.
Regards

Similar Messages

  • Simple File to Database Scenario

    Dear Experts
    I am working on a File to Database scenario. My requirement is to update the database with latest information. For example
    1. First day i got a file of 100 records...Insert all the 100 records.
    2. Second day i will get 110 records (here 100 records is old data and 10 records is the delta). Now PI needs to lookup with DB and insert the updates of 100 records and insert the delta 10 records...
    3. Third day i got 125 records file (here 110 is previous days data and 15 is todays delta). I need to update the changes of all the 110 and insert 15 delta records
    Thanks

    Hi,
          Since you want to update the existing records and insert the delta, the 'update_insert' option of JDBC receiver should fulfill your requirements.
    Refer the following links for more help on this
    Re: jdbc update_insert
    Jdbc Reaciver UPDATE_INSERT
    Regards

  • Problem in file to database scenario

    Hi friends,
    I have done file to database(oracle) scenario. I have tried to push the data to database.but it is not reached to database.
    I have tested my scenario in Integration Directory.I didn't get any error msg under test configuration.
    Pls verify the main and sub table levels in oracle database.
    ORDERSDEMO -
    > ORDERSTEST -
    > ORDERSTABLE
    Data base connection In ID:
    JDBC Driver  -
      com.oracle.jdbc.Driver
    Connection   -
      jdbc:oracle://aljs047:1521\ORDERSTABLE
    Kindly guide me if I have done mistake in the connection.
    Your valuable cooperation is greatly appreciated.
    Points will be awarded.
    Thanks in advance.
    Best Regards,
    Naresh.

    You have given the Connection  like this right?
    Connection: jdbc:oracle://aljs047:1521\ORDERSTABLE
    But the right one is
    Connection: jdbc:oracle://aljs047:1521/ORDERSTABLE
    (Just check that forword slash & Backword Slash)
    Where:-
    aljs047: is the host name
    1521: is your port
    ORDERSTABLE : is your Database Table Name

  • File content to database scenario

    Hi All,
            I am doing file content conversion to database scenario.
            In this scenario i got the following problem.
    Error during database connection to the database URL 'jdbc:mysql://ibxi:3306/javatest' using the JDBC driver 'org.gjt.mm.mysql.Driver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:mysql://ibxi:3306/javatest': SAPClassNotFoundException: org.gjt.mm.mysql.Driver'
    In this i am connecting to mysql database.at that time in receiver side i got the problem.
    please do the need ful.
    Thanks & Regards,
    Kakshayini.

    Sorry for the above post..
      First check whether the required drivers has installed on your J2EE Engine or not. If it is not installed, please follow the bellow steps,
    1.Get the existing <b>aii_af_jmsproviderlib.sda</b> file from your SAP XI installation (if you already have JDBC or JMS drivers deployed).
    2. Unzip the file, add the required .jar files (each database has it's own .jar file that has
         to be deployed on your J2EE Engine ).
        For example if it is SQL server db -mssqlserver.jar
    3. Again zip the flies including all .jars with the name "aii_af_jmsproviderlib" and it has
        to be deployed in to the J2EE Engine.
    4. Start the SDM (Software Deployment Manager) and select the
          aii_af_jmsproviderlib.zip file and start the deployment.
    I hope once you have done this thing, the problem will be solved.
    Regards,
    Velan
    <b></b><b></b>

  • Error in File-XI-JDBC Scenario

    Dear All,
    I am working on File-XI-JDBC scenario which is using stored procedure (SP_UPDATE). When I am processing the file it is giving me the following error in the message monitoring:
    Unable to execute statement for table or stored procedure. 'SP_UPDATE' (Structure 'Statement') due to java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'access' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)
    Please guide me what is this error all about and how this can be resolved.
    Warm Regards,
    N.Jain

    Dear All,
    Now, I am able to update the SQL Server database but only one record is coming at the target. Can anyone please guide me what is he error in my Data types o in my mappings. Following is the source Data Type:
    MT_TEST_FILE_T179T      1..1     DT_TEST_FILE_T179T
         ROOT                         1..unbounded
            PRODH                    1..unbounded     xsd:string
            VTEXT                      1..unbounded     xsd:string
            DATUM                     1..unbounded     xsd:string
    Following is the target Data Type:
    MT_TEST_JDBC_T179T      1..1     DT_TEST_JDBC_T179T
         STATEMENT                1..1
            SP_UPDATE             1..1
                action                    required     xsd:string
                TABLE                  1..1                     xsd:string     
                    PRODH             1..unbounded     xsd:string
                       type               optional            xsd:string
                    VTEXT               1..unbounded     xsd:string
                       type               optional            xsd:string
                    DATUM              1..unbounded     xsd:string
                       type               optional            xsd:string
    Following are the mappings done:
    EXECUTE-->@action
    storedprocedurename-->TABLE
    PRODH-->PRODH
    VTEXT-->VTEXT
    DATUM-->DATUM
    CHAR-->@type.
    With this stucture and mapping i am able to insert only one recored in the database even though there are multiple entries in the file.
    Please guide me in solving this error so that multiple records can be inserted.
    Warm Regards,
    N.Jain

  • Strange error in File-XI-JDBC scenario

    Dear All,
    I am working currently on File-XI-JDBC scenario and is facing with a stange problem.
    I have writtern one simple query which is downloading the data from R/3 and is sending to XI Server local folder. From that folder File is getting picked by XI and is posted into SQL database.
    Now, when I am generating the required file from R/3-DEV server then my scenario is getting executed successfully but if file is generated thru R/3-QAS Server then the scenario is giving the following error "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'MARA_UPDATE' (structure 'Statement'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Error converting data type nvarchar to smalldatetime."
    Also, if I am copying the complete data from the error file and paste it into a new file and executing again then the scenario is executing correctly.
    I have checked the payload and didn't find anything there.
    Kindly help me in solving this error.
    Regards,
    N.J

    Hi Farooq,
    Thanx for your reply. But this scenario is running when we are sending the file from R/3-DEV Server and also if I am copying all the contents of the error file and pasting it into a new file and then processing the file then the scenario is getting executed and I am getting no error with the same data which I have processed earlier and has thrown error.
    Reg,

  • Error comming in File to JDBC scenario.

    Hi Frnds,
    I am trying to do the File to JDBC scenario and is using the SQLServer.
    After processing the message, it is showing executed successfully in moni but for the receciver communication channel  i am getting the error like---->
    Error during database connection to the database URL 'jdbc:sqlserver://10.112.132.211:1433;databaseName=DemoDB' using the JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://10.112.132.211:1433;databaseName=DemoDB': SAPClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver'
    What could be the possible solution for it.
    Thnx
    Raj.

    Hi Raj,
    As Prateek mentioned, the error you are getting is because of an improper installation of a driver.
    Check out the doc for the driver installtion steps : [How To Install and Configure External Drivers for the JDBC & JMS Adapters|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f]
    Also, the following thread contains some more useful links : Re: What's necessary to connect SQL server to XI?
    Thanks,
    Pooja Pandey

  • File to JDBC Scenario using stored procedure Question

    Does anyone have an aswer (or have you seen a Blog that covers it) to the problem of having to do a table refresh before doing inserts in a file 2 jdbc scenario?
    Essentially the details are as follows:
    I have an input file that has all the data for a table (it's a complete table dump) of lets say userdata (username, name, hiredate).
    I need to pass that to an oracle database via stored procedure(s).  But before I start issuing my insert (via insert stored procedure) I have to somehow issue a delete statement to delete all the contents of the table I'm about to update.  I'm on XI 3.0 and aren't sure what the best solution to this may be.
    Again if there is a blog that covers this then if you could point me in that direction it would be great.  Otherwise if anyone has any good ideas it would be appreciated.

    Hi,
    For structure refer this blog..
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Use two <Statement> tags as shown here and there you may have separate tablenames.
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
    Thanks,
    Jogula Ramesh

  • File-XI-JDBC Scenario

    Dear All,
    I am working on File-XI-JDBC scenario. I am able to update the SQL database with the file.
    My SQL database is having following columns:
    MATNR MATXT DATUM
    Now, I want is that even if the MATNR is already existing in the database then again that entry should not be inserted into the database with the different date although the same MATNR exists in the flat file.
    Please guide me on how this can be done.
    Warm Regards,
    N.Jain

    HI,
    Check out the weblog and help for writing stored procedure:
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    http://www.ics.com/support/docs/dx/1.5/tut6.html
    http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html
    http://www.sqlteam.com/article/stored-procedures-an-overview
    Thnx
    Chirag

  • Facing Problems in File to JDBC scenario

    Hi Folks,
        I am trying to configure a file to jdbc scenario where I'm getting the below error.
    Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=D:\usr\sap\PRD\SYS\global\Receive\Student.mdb' using the JDBC driver 'sun.jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:Driver={Microsoft Access Driver (.mdb)};DBQ=D:\usr\sap\PRD\SYS\global\Receive\Student.mdb'*: SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'
    I Have done the below configuration for the receiver JDBC adapter
    Driver : sun.jdbc.odbc.JdbcOdbcDriver
    Connection : jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=D:\usr\sap\PRD\SYS\global\Receive\Student.mdb
    tried to provide the user id & password as well as the password and also tried with with keep them blank. My Ms access 2007 database table is in the application server itself.
    I've also checked with the below blogs & forums:
    MS  ACCESS 2007 to PI 7.01
    /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    http://www.riyaz.net/blog/jdbc-adapter-configuration/technology/1200/
    Thanks Experts.

    Hi Santosh,
    If also could be possible that, you have not added proper JDBC dirver and hence i think you are getting following error:
    Data source name not found and no default driver specified'
    So first add the JDBC driver( .jar) to the SAP PI JDBC library and redeploy the .sda file and then retest your scenario. Here is a link to PDF which explain how to add external drivers to use new DB drivers in the JDBC adapter.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f?quicklink=index&overridelayout=true
    Regards,
    RK

  • Xi file to rfc scenario

    hi,
    I have to pass an excel file from  server pass , all the contents and name(both are changing everyday) as a string to a filed of wrapper ZRFC(bapi ),based on return code of zrfc (return code for error )it will shoot mail to concerned person

    If the RFC call is used to insert data in some database, then you will have to use BPM, with async-sync bridge. File - RFCreq - RFC Resp - Mail.
    If just a lookup from RFC is required, then you may avoid BPM by creating file to mail scenario with RFC lookup.
    Regards,
    Prateek

  • Multiple records are not loaded   in FILE to RFC  scenario

    Hi   ,
         I did  File- to-RFC  scenario.. it was working fine.. but the problem is... from my file.. it was loading the first record only into the R/3 database..  what i have to do..  i'm new to XI..
      generally a file must conatin multiple records.. but my scenario was  performing.. that was loading only the first record of my file.. and  remaining records it wa skipping.. 
    plz provide me the solution..
    Thanks
    Babu

    Hi
    In message mapping, change the occurrence of the RFC to be 0 to unbounded.
    Map the root node of the file xml structure to the RFC's root node.
    In the interface mapping after selecting the source and the target message interface,change the occurrence of the target interface to 0 to unbounded i.e.RFC .
    While doing the interface determination, you will find an option called Enhanced / Extended  Select this and then select the Interface mapping.
    Thanks

  • File to Database Using BPM

    Hi All,
    I am trying to do one of the End-To-End scenarios which are described in the following document published by Mukeshlal Parida https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
    I followed the steps described for the File to Database Using BPM. 
    I created a software component File Workshop and DB Workshop and created the respective products.  I created the appropriate namespaces under the specified products.  However, when I go to create the container elements in the Integration Process, I am only able to view and add the Abstract interfaces created in the specific software component where I am creating the integration process. 
    The instructions are not clear.  I am on XI 3.0 (SP16).  Any help would be appreciated.
    Thanks
    Sandeep

    Hi,
      U can use the abstract interfaces in BPM.
      U have to define all the Interfaces as Abstract and use in BPM transformations. The Container elements are specific to the Software component.
    From...
    Yallabandi.

  • Regarding File 2  JDBC Scenario

    Hi Friends,
                  can anybody help me on file 2 jdbc scenario. here my input file is not picked but in moni it is showing black flag. and in message monitoring in adapter engine sender side interface status is successful but receiver side interface status is waiting and i am not getting the output in my database table.please help me one this issue

    Hi Uday
    Kindly check your server and port whether they are up
    go to transaction SM49 and click on PING then in the next string give your server and port address and press F8
    you will get the actual status of your server
    also
    You have to deploy the required JDBC drivers for the database before making connection. Ask the database provider or your vendor for the divers. That should be deployed using SDM tool
    Start visual admin of XI and select service "Deploy" and then select option "Deploy and start" to select file and deploy it
    now here is the steps to deploy this module.
    How to deploy adapter module in production
    Three option available:
    1. Using SDM
    2. Using Visual Admin
    3. Using NW development studio (Not available for Production)
    We will use Visual Admin “Deploy” deploy service to deploy EAR file of adapter module.
    Steps:
    1. Goto VM->Deploy service
    2. Select option “Deploy and start”
    3. Select EAR file provided for deployment
    4. Restart the service.
    5. Done
    follow this guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ffd890-0201-0010-708f-d5dad2dfcf3a
    good luck
    regards
    Sandeep
    If helpful kindly reward points
    Edited by: sandeep sharma on Apr 19, 2008 7:46 AM

  • The log file for database 'tempdb' is full

    Hi Experts,
    in my sync RFC to JDBC scenario I get the following error message which says:
    11.02.2009 11:23:20 Error Unable to execute statement for table or stored procedure.
    'Trns' (Structure 'XYZ')
    due to java.sql.SQLException:
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]
    The log file for database 'tempdb' is full. Back up the transaction
    log for the database to free up some log space.
    11.02.2009 11:23:20 Error JDBC message processing failed;
    reason Error processing request in sax parser: Error when executing
    statement for table/stored proc. 'Trns' (structure 'XYZ'):
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]
    The log file for database 'tempdb' is full. Back up the transaction log
    for the database to free up some log space.
    see here:
    http://img23.imageshack.us/img23/6541/unbenannthd9.jpg
    does anyone know how to solve this problem?
    thanks
    chris

    Christian,
    See this page for more information on the error you're getting: http://sqlserver2000.databases.aspfaq.com/why-is-tempdb-full-and-how-can-i-prevent-this-from-happening.html.
    Kind regards,
    Koen

Maybe you are looking for

  • Excise invoice is not meant for exports. Message no. 4F242

    Hi All As per my Client Requirement i need to do export sales from specific Plant(Depot). which is used for only export sales. i created STO and then i did Delivery and Billing (JEX) and created Excise invoice with refrence to Billing Doc while Creat

  • ITunes won't recognize iPod, but Windows will...

    When I plug in my iPod a Windows folder comes up, showing the folders within the iPod, but iTunes doesn't recognize that it is connected. I have the latest iTunes(5.0) and iPod software. What's going on here? Also: Are there any advantages to defragm

  • How do I get music on my iPod Nano

    I've had an iPod Nano for about a year now and I've been using iTunes for years. I've been happily filling my nano for all that time. Things have now changed. I now have no idea how to fill my Nano with the music I want. I have about 500GB worth of m

  • HTTP to RFC scenario, RWB error

    Hi I am following this scenario /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit I tried in RWB-->component Monitoring->Integration Engine and gave Header Information sender, interface, Namespace, user, Password(XI user ID and Passwo

  • Smaller - Larger buttons do not work

    In mail I can not use the Smaller - Larger buttons on the tool bar to change type size when I am creating a new message. I can use Command + or Command -, but not the buttons. I tried repairing permissions, I removed and replaced the buttons, neither