Getting errors while writing to a BLOB column using PrepareStatement

Hello,
I am getting the following errors when I am trying to insert in a BLOB in the oracle 9i database:
java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-06502: PL/SQL: numeric or value error ORA-06512: at line 205 ORA-22297: warning: Open LOBs exist at transaction commit time
It gets inserted into the BLOB column correctly even after throwing exception.I am using the following code:
String outputXML = outputXML //Some huge string having a length of 52k
String pKey = "DATA-WORKATTACH-URL MELLONFINCORP-GSS-CPG E-444!20061130T211932.030 GMT";
String createDateTime = "20061212T145931.448 GMT";
String createOpName = "Haque, Nadeem";
String createOperator = "ADCDTB6";
String createSystemID = "WFE";
String insName = "TESt INS";
String objClass = "Data-WorkAttach-Note";
String updateDateTime = "20061207T191900.510 GMT";
String updateOpName = "Haque, Nadeem";
String updateOperator = "ADCDTB6";
String updateSystemID = "WFE";
String label = "This is a test for label";
String attachDate = "20061207T191900.510 GMT";
String attachedBy = "Nadeem";
String attachName = "Nadeem Haque";
String note = "This is a test note";
String refObjectKey = "E-438!20061130T211932.030";
String replicationDate = "20061207T191900.510 GMT";
try{
java.sql.PreparedStatement pstmt = null;
java.sql.Statement stmt = null;
java.io.OutputStream tempBlobOStream = null;
oracle.sql.BLOB tempBlob = null;
javax.naming.Context ctx = new javax.naming.InitialContext();
tools.findPage("tempWorkPage").putString ("testctx", ctx.toString());     
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("jdbc/gswWorkflowReportingData");
tools.findPage("tempWorkPage").putString ("testds", ds.toString());
java.sql.Connection conn = ds.getConnection();
tools.findPage("tempWorkPage").putString ("testconn", conn.toString());
java.sql.ResultSet lobDetails = null;
     try{
          byte [] ba = outputXML.getBytes();
          String query = "INSERT INTO GSW06U.pc_data_workattach(PZINSKEY,PXCREATEDATETIME,ATTACHDATE,PXUPDATEDATETIME,PXCREATEOPNAME,PXCREATEOPERATOR,PXCREATESYSTEMID,PXINSNAME,PXOBJCLASS,PXUPDATEOPNAME,PXUPDATEOPERATOR,PXUPDATESYSTEMID,PYLABEL,ATTACHEDBY,ATTACHNAME,NOTE,REFOBJECTKEY,ATTACHSTREAM) values(?,to_date(concat(substr(?,1,8),substr(?,10,6)),'YYYYMMDDHH24MISS'),to_date(concat(substr(?,1,8),substr(?,10,6)),'YYYYMMDDHH24MISS'),to_date(concat(substr(?,1,8),substr(?,10,6)),'YYYYMMDDHH24MISS'),?,?,?,?,?,?,?,?,?,?,?,?,?,EMPTY_BLOB())";
          tools.findPage("tempWorkPage").putString ("query", query);
          pstmt = conn.prepareStatement(query);
          pstmt.setString(1, pKey); // Bind PZINSKEY
          pstmt.setString(2, createDateTime); // Bind PZINSKEY
          pstmt.setString(3, createDateTime);
          pstmt.setString(4, attachDate);
          pstmt.setString(5, attachDate);
          pstmt.setString(6, updateDateTime);
          pstmt.setString(7, updateDateTime);
          pstmt.setString(8, createOpName);
          pstmt.setString(9, createOperator);
          pstmt.setString(10, createSystemID);
          pstmt.setString(11, insName);
          pstmt.setString(12, objClass);
          pstmt.setString(13, updateOpName);
          pstmt.setString(14, updateOperator);
          pstmt.setString(15, updateSystemID);
          pstmt.setString(16, label);
          pstmt.setString(17, attachedBy);
          pstmt.setString(18, attachName);
          pstmt.setString(19, note);
          pstmt.setString(20, refObjectKey);
          pstmt.execute(); // Execute SQL statement
          // Retrieve the row just inserted, and lock it for insertion of the LOB columns
          stmt = conn.createStatement();
          lobDetails = stmt.executeQuery("SELECT AttachStream FROM GSW06U.pc_data_workattach WHERE PZINSKEY = '" + pKey + "' FOR UPDATE");
          tools.findPage("tempWorkPage").putString ("idvalue", pKey);
          // Retrieve Blob streams for AttachStream column and load the sample XML
          if( lobDetails.next()) {
          //Get the CLOB from the resultset
          tempBlob = (oracle.sql.BLOB)lobDetails.getBlob(1);
          tools.findPage("tempWorkPage").putString ("pos1", "at pos1");
          // Open the temporary CLOB in readwrite mode, to enable writing
          tempBlob.open(oracle.sql.BLOB.MODE_READWRITE);
          tools.findPage("tempWorkPage").putString ("pos2", "at pos2");
          // Get the output stream to write
          tempBlobOStream = tempBlob.getBinaryOutputStream();
          tools.findPage("tempWorkPage").putString ("pos3", "at pos3");
          // Write the data into the temporary CLOB from the byte array
          tempBlobOStream.write(ba);
          // Flush and close the stream
          tempBlobOStream.flush();
          conn.commit();
          //Close everything
tempBlobOStream.close();
          tempBlobOStream = null;
          tempBlob.close();
          tempBlob =null;
          lobDetails.close();
          lobDetails = null;
          stmt.close();
          stmt = null;
          pstmt.close();
          pstmt = null;
          conn.close(); // Return to connection pool
          conn = null; // Make sure we don't close it twice
     catch(java.sql.SQLException sqlexp) {
               tempBlob.freeTemporary();
               sqlexp.printStackTrace();
               tools.findPage("tempWorkPage").putString ("SQLException", sqlexp.toString());
     catch(java.lang.Exception exp) {
               tempBlob.freeTemporary();
               tools.findPage("tempWorkPage").putString ("InnerException", exp.toString());
               exp.printStackTrace();
     finally
          if (lobDetails != null) {
          try { lobDetails.close(); } catch (java.sql.SQLException e) { System.out.println(" Error while Freeing Result sets" + e.toString()); }
          lobDetails = null;
          if (stmt != null) {
          try { stmt.close(); } catch (java.sql.SQLException e) {System.out.println(" Error while Freeing java Statement" + e.toString()); }
          stmt = null;
          if (pstmt != null) {
          try { pstmt.close(); } catch (java.sql.SQLException e) {System.out.println(" Error while Freeing java PrepareStatement" + e.toString()); }
          pstmt = null;
          try{
          if (tempBlob != null) {
     // If the BLOB is open, close it
     if (tempBlob.isOpen()) {
     tempBlob.close();
     // Free the memory used by this BLOB
     tempBlob.freeTemporary();
          tempBlob = null;
          catch (Exception ex) { // Trap errors
          System.out.println(" Error while Freeing LOBs : " + ex.toString());
          if (conn != null) {
          try { conn.close(); } catch (java.sql.SQLException e) { System.out.println(" Error while Freeing Connection" + e.toString()); }
          conn = null;
catch(java.lang.Exception e)
     tools.findPage("tempWorkPage").putString ("LangException", e.toString());
     e.printStackTrace();
}

Hello,
I am getting the following errors when I am trying to
insert in a BLOB in the oracle 9i database:
java.sql.SQLException: ORA-00604: error occurred
at recursive SQL level 1 ORA-06502: PL/SQL: numeric
or value error ORA-06512: at line 205 ORA-22297:
warning: Open LOBs exist at transaction commit
time
You're doing exactly what the error says, that is committing with an open LOB. Look at the following piece of code: you write in the LOB, you flush it and then commit. There is no closing of the LOB stream before committing.
Try putting the tempBlobOStream.close() instruction before the commit.
// Write the data into the temporary CLOB from the
he byte array
          tempBlobOStream.write(ba);
          // Flush and close the stream
          tempBlobOStream.flush();
nn.commit();
          //Close everything
tempBlobOStream.close();

Similar Messages

  • Getting error while writing JUnit test case for RestFul Services

    Hi All,
    I have written Restful services in Netbean 6.8.
    It's running well...no issues.
    {color:#0000ff}While writing JUnit test cases for them, I am getting following error:
    {color}{color:#993300}Testcase: testGetAuthenticated(com.ct.services.LoginServicesTest): Caused an ERROR
    Implementing class{color}
    java.lang.IncompatibleClassChangeError: Implementing class
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:160)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:65)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
    at com.ct.services.LoginServices.getAuthenticated(LoginServices.java:205)
    at com.ct.services.LoginServicesTest.testGetAuthenticated(LoginServicesTest.java:84)
    Test com.ct.services.LoginServicesTest FAILED
    F:\NetbeanProjectsWorkspace\DemoProject\nbproject\build-impl.xml:972: Some tests failed; see details above.
    BUILD FAILED (total time: 11 seconds)
    {color:#0000ff}Strange thing is that when I am commenting below lines and its related calls:
    {color}
    {color:#ff0000}EntityManagerFactory mEmf = Persistence.createEntityManagerFactory("AnyName");
    EntityManager mEm = mEmf.createEntityManager();
    {color}
    {color:#0000ff}from my code, JUnit test cases are working fine.
    {color}Anybody having any idea about this ?
    Thanks
    Avi
    Edited by: Avi007 on Aug 28, 2010 5:17 AM

    Hi All,
    [http://stackoverflow.com/questions/2778295/test-driven-development-problem]
    Please refer the above link for the solution
    Thanks
    Avi
    Edited by: Avi007 on Aug 30, 2010 12:33 AM

  • Getting error while deleting rows from the database using the View Object

    Hi All,
    I am using jdev 11.1.1.4.0. I am removing the rows from the database using viewobject( quering the viewobject to find the records i want to delete).
    I am using vo.removeCurrentRow(0). Before this statement I am able to get the rows I want to delete.
    after that i am doing am.transaction.commit(). But I am getting the error..
    javax.faces.el.EvaluationException: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for CriteriaEO
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for CriteriaEO
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:1117)
         at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:553)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8134)
         at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:5863)
         at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:6369)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6551)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3275)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3078)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2088)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2369)
         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 com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         ... 53 more
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:924)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1261)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1419)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:869)
    Please give suggestions...
    Thanks
    Kanika

    Hi,
    First Run Application module and confirm whether model project is OK,Cause for the Error is Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long
    check:
    Issues with table/column name length
    identifier is too long
    I guess following error occurred because above issue
    JBO-26080: DMLException
    Cause: An unexpected exception occurred while executing the SQL to fetch data for an entity instance or lock it.
    Action: Fix the cause for the SQLException in the details of this exception.
    See:
    http://download.oracle.com/docs/cd/A97337_01/ias102_otn/buslog.102/bc4j/jboerrormessages.html#26080Hope you will helpful

  • Getting error While testing Web Service deployed Glassfish using Net beans.

    Hi,
    I created a web service in netbeans. I deployed it on glassfish server too.
    My web service contains one method which return type is Document. Here is my web service class code.
    @WebService(serviceName = "DocumentTest")
    @Stateless()
    public class DocumentTest {
         * This is a sample web service operation
        @WebMethod(operationName = "hello")
        public String hello(@WebParam(name = "name") String txt) {
            return "Hello " + txt + " !";
        @WebMethod
        public Document getDocument(){
            Document doc = null;
            return doc;
    }After Deployment when I m testing the web service I am getting follwoing error on Browser
    Error generating artifacts for the following WSDL http://localhost:8093/DocumentTest/DocumentTest?WSDL
    Possible causes can be invoking https when the application is not configured for securityI am just testing whether I can send Document object or not.
    Regards,
    Ajay Sharma
    Edited by: Ajay Sharma on Nov 27, 2012 12:37 PM
    Edited by: Ajay Sharma on Nov 29, 2012 2:16 PM

    Ajay Sharma wrote:
    I am just testing whether I can send Document object or not.An XML document? Wouldn't that be a really ridiculous web service?

  • Getting Error while trying to enter multiple records using PA70

    Hi all,
    While trying to enter multiple records for a custom infotype using transaction PA70,
    the system asked to provide details of the custom infotype in T588Q and T588r tables after giving the details i'm able to enter into the custom infotype screen but the Personnel number is defaultly taken as
    zero and im not able to change the value and if i click save after entering the other details it is throwing an error telling that Infotype doesnt exist.
    Please Help..
    Thanks & Regards,
    Kumar Madduru

    Hi,
    Let us know the detailed error text. Probably you haven't included the infotype to maintain in Fast Entry or doesn't have the authorization.
    Good Luck
    Om

  • Getting errors while updating links in Indesign document using javascript

    Hi,
    We are updating the links in InDesign document using javascript. After running the script, we are getting the below errors in Adobe InDesign CC debug.
    When closing the document for first time we are getting the below mentioned errors,
    ASSERT 'fRefCount == 0' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRICache.tpp at line 230 failed.
    Erased item list not empty at block delete time
    blockUID = 10486786 not freed
    Internal error: 904 items were leaked!
    After that we are opening the same document for second time, then we are getting the below mentioned errors,
    ASSERT 'ts_DBPubFile->PlacementUIDIsAvailable(uid)' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRIUtils.tpp at line 195 failed.
    DB failed to create UID!
    ASSERT 'this->FindInIDRangeList(fLastCreatedBlockUID) >= 0' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRICache.tpp at line 476 failed.
    ASSERT 'fLastCreatedBlockUID != kInvalidUID && fLastCreatedItemID != 0' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRICache.tpp at line 467 failed.
    ASSERT '(SaLRIUtils<SnapshotID , SnapshotInfo>::ts_DB)->IsValidUID(itemUID)' in ..\..\..\source\components\database3\revisioneddatabase\SnapshotCache.cpp at line 55 failed.
    Please help us to solve this error in InDesign debug.
    Thanks,
    Vimala L

    You're probably better off raising this in the SDK forum.

  • Getting error while trying to create a document using oracle web ADI resp.

    Hi All,
    When I am trying to create a document using Oracle Web ADI Responsibility and using "Ben Ri Process Bnf" integrator, it is showing me error
    "The following error has occurred
    Exception Name: oracle.apps.bne.exception.BneParameterException - No parameter list definition at parameter list id 800:PER_RI_JPG_PARAM_LIS
    Log File Bookmark: 868035"
    Can anybody tell me the cause of this error?
    Thanks.

    Please see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
    Thanks,
    Hussein

  • Error while writing wsdl file

    Hi,
    i' m working on jdeveloper 10.1.3.1.0 and when i want to add a partner link to my BPEL project i get 'error while writing wsdl file' 'exception null' error then i couldn't create file.
    so how can i solve this problem?
    HELP:)

    Once the wrapper procedure is created by the adapter, the adapter does a second search to obtain the information about the wrapper (i.e. parameters, their data types, etc.). What's likely happening here is that the wrapper is getting created, but the adapter can't find it. The XSD is based on the wrapper, so if it can't be found, then no XSD can be generated. Try removing the existing wrapper package or choose that option in the wizard when it generates a new one.

  • Problem while writing data on xls file using jxl API

    Hi,
    I am getting problem while writing data on excel file using jxl api.
    When i write data on file and all handles associated to the file are closed, file size increases but when i open the file nothing is written in it and when file is closed manually from excel window, file size decreased to its original that was before writing data.
    here is code:
              FileOutputStream os = new FileOutputStream(this.dirPath + this.fileName, true);
              WritableWorkbook this.workbook = Workbook.createWorkbook(os);
    after writing data following handler are closed:
    this.os.flush();
                        this.workbook.write();
                        this.workbook.close();
                        this.os.close();
                        this.os = null;
    can any body help me.
    Thanks in advance

    Err, I did help you. I did understand your problem; and I solved it for you. What was missing was that you apparently made no effort to understand what you were being told. Or even consider it. You just argued about it, as though you were the one with the solution, instead of the one whose code didn't work.
    And the other thing that was missing was the part where you said 'thank you' to me for solving your problem. Somewhat more appropriate than biting the hand that fed you, frankly. I do this for nothing, on my own gas, and it's extremely irritating when people keep asking about problems I have already solved for them. I am entitled to discourage that. It's part of making them more efficient actually.
    But it happens often enough that it also makes me think I'm just wasting my time. Probably I am.

  • Getting Error while creating Genric Datasource

    Hi,
    I was try to create genric extracter where i was getting error
    While creating view genric extracter where i am getting error "Entry A ZV_ZFRT  does not exist in DD02L - check your entry".
    My requirement is need to create extracter which is getting populated from three modules like SD,MM,FI/CO.From these three module i am using several tables and some of the tables don't have relation btween these tables as like foreign key and refrence key.
    Which extracter i need to create as given scenario?
    Does view will fullfill with my requirement or any other extracter.
    Please some one can help me in this scenario.
    Answer would be great appreciate.

    Hi,
    Rather than writing a program write a function module. Create a structure and include all the necessary fields in the structure. Then in the function module write the logic to extract the values for those fields. While creating the datasource specify the function module and structure name.
    Refer this link:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Hope this helps.
    PB

  • Getting error while taking MAX DB trans log backup.

    Hi,
    I am getting error while taking trans log backup of Maxdb database for archived log through data protector as below,
    [Critical] From: OB2BAR_SAPDBBAR@ttcmaxdb "MAX" Time: 08/19/10 02:10:41
    Unable to back up archive logs: no autolog medium found in media list
    But i am able to take complete data and incremental backup through data protector.
    I have already enabled the autolog for MAX DB database and it is writing that log file directly to HP-UX file system. Now i want to take backup of this archived log backup through data protector i.e. through trans log backup. So that the archived log which is on the file system after trans log backup completed will delete the archived logs in filesystem.  So that i don;t have to manually delete the archived logs from file system.
    Thanks,
    Subba

    Hi Lars,
    Thanks for the reply...
    Now i am able to take archive log backup but the problem is i can take only one archive file backup. Not multiple arhive log files generated by autolog at filesystem i.e /sapdb/MAX/saparch.
    I have enabled autolog and it is putting auto log file at unix directory i.e. /sapdb/MAX/saparch
    And then i am using the DataProtector 6.11 with trans log backup to backup the archived files in /sapdb/MAX/saparch. When i start the trans backup session through data protector it uses the archive stage command as "archive_stage BACKDP-Archive LOGBackup NOVERIFY REMOVE" If /sapdb/MAX/saparch has only one archive file it will backup and remove the file successfully. But if /sapdb/MAX/saparch has multiple archive files it gives an error as below,
      Preparing backup.
                Setting environment variable 'BI_CALLER' to value 'DBMSRV'.
                Setting environment variable 'BI_REQUEST' to value 'OLD'.
                Setting environment variable 'BI_BACKUP' to value 'ARCHIVE'.
                Constructed Backint for MaxDB call '/opt/omni/lbin/sapdb_backint -u MAX -f backup -t file -p SAPDB.13576.1283767878.par -i /var/opt/omni/tmp/MAX.
    bsi_in -c'.
                Created temporary file '/var/opt/omni/tmp/MAX.bsi_out' as output for Backint for MaxDB.
                Created temporary file '/var/opt/omni/tmp/MAX.bsi_err' as error output for Backint for MaxDB.
                Writing '/sapdb/data/wrk/MAX/dbm.ebf' to the input file.
                Writing '/sapdb/data/wrk/MAX/dbm.knl' to the input file.
            Prepare passed successfully.
            Starting Backint for MaxDB.
                Starting Backint for MaxDB process '/opt/omni/lbin/sapdb_backint -u MAX -f backup -t file -p SAPDB.13576.1283767878.par -i /var/opt/omni/tmp/MAX.
    bsi_in -c >>/var/opt/omni/tmp/MAX.bsi_out 2>>/var/opt/omni/tmp/MAX.bsi_err'.
                Process was started successfully.
            Backint for MaxDB has been started successfully.
            Waiting for the end of Backint for MaxDB.
                2010-09-06 03:15:21 The backup tool is running.
                2010-09-06 03:15:24 The backup tool process has finished work with return code 0.
            Ended the waiting.
            Checking output of Backint for MaxDB.
            Have found all BID's as expected.
        Have saved the Backup History files successfully.
        Cleaning up.
            Removing data transfer pipes.
                Removing data transfer pipe /var/opt/omni/tmp/MAX.BACKDP-Archive.1 ... Done.
            Removed data transfer pipes successfully.
            Copying output of Backint for MaxDB to this file.
    Begin of output of Backint for MaxDB (/var/opt/omni/tmp/MAX.bsi_out)----
                #SAVED 1009067:1 /sapdb/data/wrk/MAX/dbm.ebf
                #SAVED 1009067:1 /sapdb/data/wrk/MAX/dbm.knl
    End of output of Backint for MaxDB (/var/opt/omni/tmp/MAX.bsi_out)----
            Removed Backint for MaxDB's temporary output file '/var/opt/omni/tmp/MAX.bsi_out'.
            Copying error output of Backint for MaxDB to this file.
    Begin of error output of Backint for MaxDB (/var/opt/omni/tmp/MAX.bsi_err)----
    End of error output of Backint for MaxDB (/var/opt/omni/tmp/MAX.bsi_err)----
            Removed Backint for MaxDB's temporary error output file '/var/opt/omni/tmp/MAX.bsi_err'.
            Removed the Backint for MaxDB input file '/var/opt/omni/tmp/MAX.bsi_in'.
        Have finished clean up successfully.
    The backup of stage file '/export/sapdb/arch/MAX_LOG.040' was successful.
    2010-09-06 03:15:24
    Backing up stage file '/export/sapdb/arch/MAX_LOG.041'.
        Creating pipes for data transfer.
            Creating pipe '/var/opt/omni/tmp/MAX.BACKDP-Archive.1' ... Done.
        All data transfer pipes have been created.
        Preparing backup tool.
            Setting environment variable 'BI_CALLER' to value 'DBMSRV'.
            Setting environment variable 'BI_REQUEST' to value 'OLD'.
            Setting environment variable 'BI_BACKUP' to value 'ARCHIVE'.
            Constructed Backint for MaxDB call '/opt/omni/lbin/sapdb_backint -u MAX -f backup -t file -p SAPDB.13576.1283767878.par -i /var/opt/omni/tmp/MAX.bsi_
    in -c'.
            Created temporary file '/var/opt/omni/tmp/MAX.bsi_out' as output for Backint for MaxDB.
            Created temporary file '/var/opt/omni/tmp/MAX.bsi_err' as error output for Backint for MaxDB.
            Writing '/var/opt/omni/tmp/MAX.BACKDP-Archive.1 #PIPE' to the input file.
        Prepare passed successfully.
        Constructed pipe2file call 'pipe2file -d file2pipe -f /export/sapdb/arch/MAX_LOG.041 -p /var/opt/omni/tmp/MAX.BACKDP-Archive.1 -nowait'.
        Starting pipe2file for stage file '/export/sapdb/arch/MAX_LOG.041'.
            Starting pipe2file process 'pipe2file -d file2pipe -f /export/sapdb/arch/MAX_LOG.041 -p /var/opt/omni/tmp/MAX.BACKDP-Archive.1 -nowait >>/var/tmp/tem
    p1283767880-0 2>>/var/tmp/temp1283767880-1'.
            Process was started successfully.
        Pipe2file has been started successfully.
        Starting Backint for MaxDB.
            Starting Backint for MaxDB process '/opt/omni/lbin/sapdb_backint -u MAX -f backup -t file -p SAPDB.13576.1283767878.par -i /var/opt/omni/tmp/MAX.bsi_
    in -c >>/var/opt/omni/tmp/MAX.bsi_out 2>>/var/opt/omni/tmp/MAX.bsi_err'.
            Process was started successfully.
        Backint for MaxDB has been started successfully.
        Waiting for end of the backup operation.
            2010-09-06 03:15:25 The backup tool process has finished work with return code 2.
            2010-09-06 03:15:25 The backup tool is not running.
            2010-09-06 03:15:25 Pipe2file is running.
            2010-09-06 03:15:25 Pipe2file is running.
            2010-09-06 03:15:30 Pipe2file is running.
            2010-09-06 03:15:40 Pipe2file is running.
            2010-09-06 03:15:55 Pipe2file is running.
            2010-09-06 03:16:15 Pipe2file is running.
            Killing not reacting pipe2file process.
            Pipe2file killed successfully.
            2010-09-06 03:16:26 The pipe2file process has finished work with return code -1.
        The backup operation has ended.
        Filling reply buffer.
            Have encountered error -24920:
                The backup tool failed with 2 as sum of exit codes and pipe2file was killed.
            Constructed the following reply:
                ERR
                -24920,ERR_BACKUPOP: backup operation was unsuccessful
                The backup tool failed with 2 as sum of exit codes and pipe2file was killed.
        Reply buffer filled.
        Cleaning up.
            Removing data transfer pipes.
                Removing data transfer pipe /var/opt/omni/tmp/MAX.BACKDP-Archive.1 ... Done.
            Removed data transfer pipes successfully.
            Copying output of Backint for MaxDB to this file.
    Begin of output of Backint for MaxDB (/var/opt/omni/tmp/MAX.bsi_out)----
    End of output of Backint for MaxDB (/var/opt/omni/tmp/MAX.bsi_out)----
            Removed Backint for MaxDB's temporary output file '/var/opt/omni/tmp/MAX.bsi_out'.
            Copying error output of Backint for MaxDB to this file.
    Begin of error output of Backint for MaxDB (/var/opt/omni/tmp/MAX.bsi_err)----
    End of error output of Backint for MaxDB (/var/opt/omni/tmp/MAX.bsi_err)----
            Removed Backint for MaxDB's temporary error output file '/var/opt/omni/tmp/MAX.bsi_err'.
            Removed the Backint for MaxDB input file '/var/opt/omni/tmp/MAX.bsi_in'.
            Copying pipe2file output to this file.
    Begin of pipe2file output (/var/tmp/temp1283767880-0)----
    End of pipe2file output (/var/tmp/temp1283767880-0)----
            Removed pipe2file output '/var/tmp/temp1283767880-0'.
            Copying pipe2file error output to this file.
    Begin of pipe2file error output (/var/tmp/temp1283767880-1)----
    End of pipe2file error output (/var/tmp/temp1283767880-1)----
            Removed pipe2file error output '/var/tmp/temp1283767880-1'.
        Have finished clean up successfully.
    The backup of stage file '/export/sapdb/arch/MAX_LOG.041' was unsuccessful.
    2010-09-06 03:16:26
    Cleaning up.
        Have encountered error -24919:
            Can not remove file '/var/tmp/temp1283767880-0'.
            (System error 2; No such file or directory)
        Could not remove temporary output file of pipe2file ('/var/tmp/temp1283767880-0' ).
        Have encountered error -24919:
            Can not remove file '/var/tmp/temp1283767880-1'.
            (System error 2; No such file or directory)
        Could not remove temporary output file of pipe2file ('/var/tmp/temp1283767880-1' ).
    Have finished clean up successfully.
    Thanks,
    Subba

  • Getting error while opening Enterprise project type (EPT)

    Hello All,
    In Project Server 2013, I am getting error while opening any Enterprise project type (EPT) from EPT page or when I am trying ot create any new EPT. How can I troublshoot this, please help.
    Thanks in advance

    I searched ULS logs and got the below error details.
    Exception occured in method 'Workflow.ReadWorkflows' System.Data.NoNullAllowedException: Column 'WORKFLOW_ASSOCIATION_NAME' does not allow nulls.     at System.Data.DataColumn.CheckNullable(DataRow row)     at System.Data.DataColumn.CheckColumnConstraint(DataRow
    row, DataRowAction action)     at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)     at System.Data.DataTable.SetNewRecordWorker(DataRow row,
    Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException)     at System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID,
    Int32 pos, Boolean fireEvent)     at System.Data.DataTable....
    Let me know your advise on this.

  • Rendering error while writing to file...Quicktime

    Hi all,
    I am brand new here and have an urgent question. I have been getting an error in After Effects CS6 whenever I try to render to a quicktime movie that says "Rendering error while writing to file...An output module failed. The file may be damaged or corrupted."
    I have spent days trying to fix this and I have read other peoples posts with the same question but I have cleared my disk cache and reinstalled quicktime without success.
    Any help would be great I am not super technology advanced so try to keep it simple if you can.
    Computer Specs:
    750gb Hard Drive
    8gb Ram
    Intel Core i5
    Nvidia Geforce GTX 660M graphics

    Start by going through all of the troubleshooting suggestions here:
    http://blogs.adobe.com/aftereffects/2011/02/troubleshooting-quicktime-errors-with-after-ef fects.html
    If you need additional help, please provide answers to all of the questions listed here: "FAQ: What information should I provide when asking a question on this forum?"

  • ORA-2002 : error while writing to audit trail

    Hi all ,
    I am oracle 11g and on SPARC OS.
    I enabled audit in my database by setting the parameter audit_trail=DB and then i restarted my instance.
    On doing so the database started but whenever i am trying to connect using pl/sql developer , i am getting the following list of errors :
    ORA-00604 : error occured at recursive SQL level 1
    ora-00904 : "DBID" invalid identifier
    Ora-02002 : error while writing to audit trail
    ORA-00604 : error occured at recursive SQL level 1
    ora-00904 : "DBID" invalid identifier
    I checked on the net for ora-02002 and increased the size of the system tablespace from 750 M to 1000M.
    My system tablespace is dictionary managed.
    bounced the database also , but still getting the same errors.
    please help
    regards
    KKukreja
    Edited by: ~JuniorDBA~ on Dec 20, 2010 8:59 PM

    Hi Nicolas,
    here is the output
    SQL> desc sys.aud$
    Name                                      Null?    Type
    SESSIONID                                 NOT NULL NUMBER
    ENTRYID                                   NOT NULL NUMBER
    STATEMENT                                 NOT NULL NUMBER
    TIMESTAMP#                                         DATE
    USERID                                             VARCHAR2(30)
    USERHOST                                           VARCHAR2(128)
    TERMINAL                                           VARCHAR2(255)
    ACTION#                                   NOT NULL NUMBER
    RETURNCODE                                NOT NULL NUMBER
    OBJ$CREATOR                                        VARCHAR2(30)
    OBJ$NAME                                           VARCHAR2(128)
    AUTH$PRIVILEGES                                    VARCHAR2(16)
    AUTH$GRANTEE                                       VARCHAR2(30)
    NEW$OWNER                                          VARCHAR2(30)
    NEW$NAME                                           VARCHAR2(128)
    SES$ACTIONS                                        VARCHAR2(19)
    SES$TID                                            NUMBER
    LOGOFF$LREAD                                       NUMBER
    LOGOFF$PREAD                                       NUMBER
    LOGOFF$LWRITE                                      NUMBER
    LOGOFF$DEAD                                        NUMBER
    LOGOFF$TIME                                        DATE
    COMMENT$TEXT                                       VARCHAR2(4000)
    CLIENTID                                           VARCHAR2(64)
    SPARE1                                             VARCHAR2(255)
    SPARE2                                             NUMBER
    OBJ$LABEL                                          RAW(255)
    SES$LABEL                                          RAW(255)
    PRIV$USED                                          NUMBER
    SESSIONCPU                                         NUMBERsince i took over the database , no one did anything ... i only truncated the aud$ table today.
    But while going through the files i came across a SQL file that had this content :
    more move_audit.sql
    create table system.aud$
    tablespace AUD_TSP
    as select * from aud$;
    create index system.i_aud1 on system.aud$(sessionid, ses$tid);
    rename aud$ to aud$_temp;
    create view aud$ as
    select * from system.aud$;
    connect system/XXXXX
    grant all on aud$ to sys with grant option;
    grant delete on aud$ to delete_catalog_role;Now I am not sure what has happened and who has done what,but when i checked on TOAD, system tablespace had aud$ table and there was no table in tablespace AUD_TSP.
    thanks and regards
    Kkukreja
    Edited by: ~JuniorDBA~ on Dec 21, 2010 12:55 AM

  • Getting error while loading Flat File

    Hello All,
    I am getting error while loading flat file. Flat file is a CSV file.
    Value ',,,,,,,,' of characteristic 0DATE is not a number with 000008 spaces
    Data seprator  |
    Escape sign    ;
    It has 23708 entries , it s loading successfully till 23 665 entries
    Besides when checked in PSA
    for record having entries >23667 has calender day as ,,,,,, where as rest entries are  having date
    Besides when i checked in Flat file ,the total number of rows is 23,667 is there but i wonder why it has got 23,708 in
    RSMO
    Could you please let me know how to correct.
    regards
    path

    Hi,
    For date column you should maintain YYYYMMDD formate Eg: 20090601, kepp cursor on date column and right click and Formate >Custome>make it 00000000 then save teh file as .CSV . First type values on column and do like this formate and save it and without opening it load it. Once you open it you losw 00000000 formate you need to give again the same formate.
    Settings in Infopackage:
    Data Format  = CSV
    Data Separator = ,
    Escape Sign = ;
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a6567e07211d2acb80000e829fbfe/content.htm
    Thanks
    Reddy

Maybe you are looking for

  • BW Data Load failure

    Hi,    I created a BW Data Source in R/3 and checked in RSA3 (R/3) it is extracting the required record... But when i started data load in BW using that extractor i am geting error message <b>Request IDoc : Application document not posted</b> How can

  • Can you give a document link for script logic for NW version7??

    Hi all,     who can give a document link for script logic for nw version7??     thanks in advance!!

  • Unable to view /Developer Folder

    Hi All, I am using Macosx Lion. I dont know but after the updation of LION.  I cant view some folders like "developer" which contains all the development tools. Please tell m hoe to view the developer folder in macosx lion Thanking you, Bharath Ch

  • DNG conversion during photo download via bridge

    Hi, I have CS6 & ACR 8.2 (the latest version I think) but since I've been using CS6, when I download my photo's with Bridge photo downloader, the conversion (that happens at the same time) (from *.CR2) doesn't work anymore.  I just keep getting my *.

  • Why is Adobe After Effects CS4 so Slow?

    I am trying to use After Affects but somehow it is very slow. I know the problem is not with my computer processor because Photoshop, Premiere and Illustrator work just fine. If I move any object, I have to wait for at least 3-4 minutes before it loa