cancel
Showing results for 
Search instead for 
Did you mean: 

VM crash when calling crystal report in java

Former Member
0 Kudos

=======

REPOST

=======

We experience a serious problem when try to develop a crystal report application that run at Sun Solaris 10. Our program is to export pdf from crystal report. The program will always got VM crash when open the crystal report or export the crystal report (but it's not 100% happened, it will always happen when we second time open the same report). I got no problem when run my program in the windows XP. May anyone help on it?

Below see the coding and the VM crash message:

-


reportDocument = new ReportClientDocument();

reportDocument.open(mSummaryReportName, 0);

String query = " SELECT BRCH_RPT_SUMM.NM_BRIEF_ACC, BRCH_RPT_SUMM.NM_PRAD, BRCH_RPT.DT_VAL_CURR, BRCH_RPT_SUMM.CD_ACC, BRCH_RPT_SUMM.NM_SHRT_ACC, BRCH_RPT_SUMM.IN_FUD_BRCH_WRN, BRCH_RPT_SUMM.CD_BTCH, BRCH_RPT_SUMM.ID_PRSN, BRCH_RPT_SUMM.CD_PRTR, BRCH_RPT_SUMM.IN_BRCH_SPRS " +

"FROM COMPLIANCE.BRCH_RPT BRCH_RPT INNER JOIN COMPLIANCE.BRCH_RPT_SUMM BRCH_RPT_SUMM ON ((BRCH_RPT.CD_BTCH=BRCH_RPT_SUMM.CD_BTCH) AND (BRCH_RPT.ID_PRSN=BRCH_RPT_SUMM.ID_PRSN)) AND (BRCH_RPT.CD_PRTR=BRCH_RPT_SUMM.CD_PRTR) " +

" WHERE BRCH_RPT_SUMM.IN_BRCH_SPRS='N' " +

"AND BRCH_RPT.cd_btch = '" + mBtchCd + "' " +

"and BRCH_RPT.cd_prtr = '" + mPrtrCd + "' " +

" and BRCH_RPT.id_prsn = " + mPrsnId;

Statement statement = mDb.getConnection().createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);

String tableAlias = reportDocument.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();

ResultSet resultSet = statement.executeQuery(query);

reportDocument.getDatabaseController().setDataSource(resultSet, tableAlias , "resultsetTable");

byteArrayInputStream = (ByteArrayInputStream)reportDocument.getPrintOutputController().export(ReportExportFormat.PDF);

//Use the Java I/O libraries to write the exported content to the file system.

byteArray = new bytehttp://byteArrayInputStream.available();

//Create a new file that will contain the exported result.

file = new File(mReportExportPath);

fileOutputStream = new FileOutputStream(file);

byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());

x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());

byteArrayOutputStream.write(byteArray, 0, x);

byteArrayOutputStream.writeTo(fileOutputStream);

statement.close();

resultSet.close();

byteArrayInputStream.close();

byteArrayOutputStream.close();

fileOutputStream.close();

reportDocument.close();

-


An unexpected error has been detected by HotSpot Virtual Machine:

Internal Error (53484152454432554E54494D450E43505001A8 01), pid=28689, tid=1

Java VM: Java HotSpot(TM) Server VM (1.5.0_13-b05 mixed mode)

-


T H R E A D

-


Current thread (0x000386f0): JavaThread "main" threadin_Java, id=1

Stack: [0xffb7e000,0xffc00000), sp=0xffbfc690, free space=505k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

V http://libjvm.so+0x70c3c4

V http://libjvm.so+0x4383b4

V http://libjvm.so+0x2fbde0

V http://libjvm.so+0x274bf4

C http://libthread.so.1+0x15bb4

C http://libthread.so.1+0xf80c

C http://libthread.so.1+0xf9bc

j java.util.HashMap.removeEntryForKey(Ljava/lang/Object;)Ljava/util/HashMap$Entry;+119

j java.util.HashMap.remove(Ljava/lang/Object;)Ljava/lang/Object;+2

j com.crystaldecisions.reports.reportdefinition.kv.a(Lcom/crystaldecisions/reports/queryengine/af;Lcom/crystaldecisions/reports/queryengine/af;Z)V+135

j com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Lcom/crystaldecisions/reports/queryengine/ch;Lcom/crystaldecisions/reports/queryengine/ch;ZZ)V+229

j com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Lcom/crystaldecisions/reports/queryengine/ch;Lcom/crystaldecisions/reports/queryengine/ch;ZZLcom/crystaldecisions/reports/queryengine/b/w;)V+235

j com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/crystaldecisions/reports/reportdefinition/datainterface/a;)V+682

j com.crystaldecisions.reports.dataengine.bj.new()V+24

j com.crystaldecisions.reports.common.as.a(Lcom/crystaldecisions/reports/common/af;)V+96

j com.crystaldecisions.reports.common.ae.a(Lcom/crystaldecisions/reports/common/l;)V+20

j com.businessobjects.reports.sdk.b.w.a(Lcom/crystaldecisions/reports/reportdefinition/bi;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)V+207

j com.businessobjects.reports.sdk.b.w.int(Lcom/crystaldecisions/sdk/occa/report/lib/PropertyBag;Ljava/lang/String;)V+231

j com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(IILjava/lang/String;Lcom/crystaldecisions/client/helper/ISecurityContext;Lcom/crystaldecisions/xml/serialization/IXMLSerializable;)Lcom/crystaldecisions/proxy/remoteagent/ResultInfo;+3326

j com.crystaldecisions.proxy.remoteagent.x.a(Lcom/crystaldecisions/client/helper/ISecurityContext;Ljava/lang/String;IILcom/crystaldecisions/xml/serialization/IXMLSerializable;Lcom/crystaldecisions/proxy/remoteagent/j;)Lcom/crystaldecisions/proxy/remoteagent/ResultInfo;+70

j com.crystaldecisions.proxy.remoteagent.q.a(IILcom/crystaldecisions/xml/serialization/IXMLSerializable;Lcom/crystaldecisions/proxy/remoteagent/j;)Lcom/crystaldecisions/proxy/remoteagent/ResultInfo;+83

j com.crystaldecisions.sdk.occa.report.application.dd.a(IILcom/crystaldecisions/xml/serialization/IXMLSerializable;)Lcom/crystaldecisions/proxy/remoteagent/ResultInfo;+44

j com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V+284

j com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(Ljava/sql/ResultSet;Ljava/lang/String;Ljava/lang/String;)V+5

j com.crystaldecisions.reports.sdk.DatabaseController.setDataSource(Ljava/sql/ResultSet;Ljava/lang/String;Ljava/lang/String;)V+7

j com.jpmorgan.awm.jfam.ptc.reporting.AnalysisExporter.exportReport()V+157

j com.jpmorgan.awm.jfam.ptc.reporting.EODReport.main([Ljava/lang/String;)V+744

v ~StubRoutines::call_stub

V http://libjvm.so+0x19b514

V http://libjvm.so+0x2dd44c

C java0x222c main0x1164

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This is a problem of the VM itself. You will need to address the issue at SUN forums.