1 Reply Latest reply: Jan 26, 2013 4:30 AM by yoonas RSS

    REP-56048: Engine rwEng-0 crashed when calling oraclebarcode.jar

    936168
      Report Builder 10.1.2.02.
      Report server - AIX 6.1

      *******************************************
      I am trying to add a barcode to an oracle report rdf using
      oraclebarcode.jar file

      ************************
      Report function

      function CF_tote_barcodeFormula return varchar2 is
      myFileName varchar2(500);
      result varchar2(500);
      barcodeData varchar2(10) := :cf_tote_nbr;

      begin
           
           --globals.bcobj := barcodemaker.new();
           
      myFileName := 'TEMP'; --srw.create_temporary_filename;
      barcodemaker.setBarWidthinch(globals.bcobj,0.005);
      barcodemaker.setBaseCodeData(globals.bcobj,barcodeData);
      barcodemaker.setBarCodeType(globals.bcobj,globals.barcode_to_use);
      barcodemaker.setDirectory(globals.bcobj,'/tmp');
      barcodemaker.setFullPath(globals.bcobj,myFileName);
      barcodemaker.renderBarCode(globals.bcobj);
      return (myFileName);


      end;

      *******************
      1. jar file in $ORACLE_HOME/reports/jlib/oraclebarcode.jar
      2. rep_wcs11_ouihome2. <engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" ma
      xEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="90000" clas
      sPath="/u01/home/oracle/product/10.1.2/midt/reports/jlib/oraclebarcode.jar">
      3. reports.sh --REPORTS_DEFAULT_DISPLAY=NO; export REPORTS_DEFAULT_DISPLAY
      DISPLAY=`hostname`:1.0; export DISPLAY
      4 I found these trace files in $ORACLE_HOME/je22/home

      ***************** javacore45809974.1359128142.txt *****************************
      looks like oraclebarcode.jar is read ok because it's listed in the classpath.

      2XHENVVAR IBM_JVM_CHANGED_ENVVARS_30540344=AIXTHREAD_SCOPE,LDR_CNTRL
      2XHENVVAR IBM_JAVA_COMMAND_LINE=/u01/home/oracle/product/10.1.2/midt/jdk/jre/bin/java -cp /u01/home/oracle/product/10.1.2/midt/reports/jlib/oraclebarcode.jar:/u01/home/oracle/product/10.1.2/midt/j2ee/home/lib/ojsp.jar:/u01/home/oracle/product/10.1.2/midt/reports/jlib/rwrun.jar:/u01/home/oracle/product/10.1.2/midt/jlib/zrclient.jar -Duser.language=en -Duser.region=US -Xmx256M oracle.reports.engine.RWEngine name=rwEng-0 server=rep_wcs11_ouihome2 ORACLE_HOME=/u01/home/oracle/product/10.1.2/midt engineimplclass=oracle.reports.engine.EngineImpl cacheDir=/u01/home/oracle/product/10.1.2/midt/reports/cache server_ior=tmp_1583948484
      2XHENVVAR LDR_CNTRL=MAXDATA=0x80000000
      2XHENVVAR IBM_JVM_LDR_CNTRL_OLD_VALUE=
      2XHENVVAR TNS_ADMIN=/u01/home/oracle/product/10.1.2/midt/network/admin
      2XHENVVAR REPORTS_CLASSPATH=/u01/home/oracle/product/10.1.2/midt/reports/jlib/rwbuilder.jar:/u01/home/oracle/product/10.1.2/midt/reports/jlib/rwrun.jar:/u01/home/oracle/product/10.1.2/midt/jlib/zrclient.jar:/u01/home/oracle/product/10.1.2/midt/j2ee/home/oc4j.jar:/u01/home/oracle/product/10.1.2/midt/j2ee/home/lib/ojsp.jar:/u01/home/oracle/product/10.1.2/midt/reports/jlib/oraclebarcode.jar

      *********** and orbtrc.23012013.1646.09.txt

      09:35:48.628 com.ibm.rmi.iiop.Connection send:1707 WT=31 ORBRas[default] org.omg.CORBA.COMM_FAILURE: purge_calls:1446 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
      at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java(Compiled Code))
      at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java(Compiled Code))
      at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java(Compiled Code))

      09:35:48.633 com.ibm.CORBA.iiop.ClientDelegate@492022c4 invoke:774 WT=31 ORBRas[default] Received SystemException org.omg.CORBA.COMM_FAILURE: purge_calls:1446 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
      at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java(Compiled Code))
      at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java(Compiled Code))
      at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java(Compiled Code))
      , p1=<null>

      ********************************************************

      The reports gets the REP56048 error and I don't know what else to look at. When I run the report with this URL I get a trace file.

      http://wcs11.dickies.com:7778/reports/rwservlet?report=workorders_barcode_test.rdf&destype=cache&desformat=pdf&userid=wcs/wcs@wcs122&paramform=YES&tracefile=jmw_trace.log&traceopts=trace_all&tracemode=trace_replace

      ******
      I see a file created - /tmp/5Kaea.TMP which is probably the barcode.

      *******
      The trace file just ends when the COBRA communication failure is reached.

      this is the end.

      <HEADER>
      <TSTZ_ORIGINATING>2013-01-25T10:00:32.351-06:00</TSTZ_ORIGINATING>
      <ORG_ID>oracle.com</ORG_ID>
      <COMPONENT_ID>REP</COMPONENT_ID>
      <MSG_ID>50103</MSG_ID>
      <MSG_TYPE TYPE='TRACE'></MSG_TYPE>
      <MODULE_ID>C Engine</MODULE_ID>
      </HEADER>
      <PAYLOAD>
      <MSG_TEXT><![CDATA[ 10:00:32  PLS  (  Function:       cf_tote_barcodeformula
      ]]></MSG_TEXT>
      </PAYLOAD>
      </MESSAGE>
      *******************************************************
      Trace file just stops when the COBRA failure is encountered. I don't know else to look at.