Problem when calling a report from java

Hi all,
i have created a report using ireport which contains arabic data.
when i execute the report from ireport to generate a pdf file it works.
however when i call this report from java i have an exception"
Could not create the report Could not load the following font :
pdfFontName : ARIAL.TTF
pdfEncoding : Identity-H"
the pdfFont i used it in ireport, also the pdfEncoding.
did anyone passed with the same problem
thanks for help

Hello Oracle experts,
The parameters are getting passed successfully in my report.
But I want to know hous to use it in my query group.
I just want the syntax.
Thanks

Similar Messages

  • Call Crystal Report from java

    <p>Hi,<br /><br />Can anyone pl send me an e.g of how to call crystal reports from java ? Preferably crsytal version 10. how to instantiate a crystal report viewer? how to pass parameters? how to set the connection string?</p><p>my email is <a href="mailto:[email protected]">[email protected]</a><br /><br />Regards,</p><p>Hui Bee<br /></p>

    <p>Hi Hui Bee, </p><p>   There are a number of version 10 samples available contained in the following package:</p><p><a href="http://support.businessobjects.com/communityCS/FilesAndUpdates/cr10_jrc_samples.exe" title="JRC 10 samples">http://support.businessobjects.com/communityCS/FilesAndUpdates/cr10_jrc_samples.exe</a></p><p>However, I would strongly suggest that you take a look at using the latest version of the Java component that ships with our Crystal Reports for Eclipse product. You can download it from here:</p><p><a href="/node/450">http://diamond.businessobjects.com/node/450</a></p><p>and best of all, it&#39;s free! </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>          </p>

  • Out put file is not genrated when calling xml reports from OAF page

    Dear all
    i am calling xml reports from OAF page
    the out put file is not generated
    i am writing this code
    public int tradingrequest(String quoid, String costoder,int orgid)
    try
    OADBTransaction tx = (OADBTransaction)getOADBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    String applnName =
    "XXCRM"; //Application that contains the concurrent program
    String cpName = "XXCRM_COSTSHEET"; //Concurrent program short name
    String cpDesc =
    "Trading Costsheet Report XXCRM"; // concurrent Program description
    Number orgid1=new Number(orgid);
    // Pass the Arguments using vector
    Vector cpArgs = new Vector();
    cpArgs.addElement(quoid);
    cpArgs.addElement(costoder);
    cpArgs.addElement(orgid1.toString());
    // Calling the Concurrent Program
    int requestId =
    cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
    tx.commit();
    System.out.println("Request ID is " + requestId);
    return requestId;
    } catch (RequestSubmissionException e)
    OAException oe = new OAException(e.getMessage());
    oe.setApplicationModule(this);
    throw oe;
    in controller i am writing this code
    OAMessageStyledTextBean y =
    (OAMessageStyledTextBean)webBean.findChildRecursive("quotationid");
    OAFormValueBean z =
    (OAFormValueBean)webBean.findChildRecursive("costorder");
    String quoid = y.getValue(pageContext).toString();
    String costorder = z.getValue(pageContext).toString();
    System.out.println("The quotation id and costing order are....." + quoid +
    " " + costorder);
    /*if click on run report button to run the report*/
    if ("Viewreport".equals(pageContext.getParameter(EVENT_PARAM)))
    if (tsflag.equals("Y"))
    int requestid = am.servicerequest(quoid, costorder, orgid);
    String url =
    "OA.jsp?akRegionCode=FNDCPREQUESTVIEWPAGE&akRegionApplicationId=0&retainAM=Y&addBreadCrumb=Y&REQUESTID=" +
    requestid;
    pageContext.setForwardURL(url, null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT, null,
    null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    when i call the report from oaf page the request id is coming
    when i click on view output i am getting this message
    Error
    The concurrent request 7335031 did not create an output file.
    WHEN I GOTO FIND REQUESTS PAGE QUERY THIS REQUEST ID I AM GETTING THE OUTPUT IN XM FILE
    Regards
    Sreekanth

    java.io.FileNotFoundException: \..\..\..\xdoAqdFFZfuuJ051010_0628487460.fo (The system cannot find the path specified)
    MY CO code
    if("GenerateReport".equals(event))
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    // Hashtable hashtable = new Hashtable(1);
    // hashtable.put("TruckBookingRefNum",trucknum);
    // System.out.println("test"+trucknum);
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=LF Cargo Summary Report.htm";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/HTML");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getTestDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    System.out.println(" ByteArrayInputStream.ByteArrayOutputStream"+pdfFile+inputStream);
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    "LFCUST",
    "XXLFCARSUM_TARGET",
    "English",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    "US",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_HTML,
    null,
    pdfFile);
    // hashtable);
    System.out.println(" TemplateHelper");
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    System.out.println(" byte"+b);
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    pdfFile.flush();
    pdfFile.close();
    catch(Exception e)
    System.out.println(" inside catch");
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(true);
    Edited by: user9367919 on May 13, 2010 10:31 AM

  • Problem while calling a report from the report

    Hi
    i want call a report from the report, i have written URL in the Hyperlink and its working
    but
    1) i want open it in the diffrent window.
    2) suppose if u have a report called emp it should call antoher 2 report at a time.
    ( how to put 2 URL in the hyperlink?).
    i,e if i press a hyperlink it should open emp1 and emp2
    Please help me.
    thanks and regards

    Thanx,
    I have solved this problem.
    Regards,
    Hafeez

  • Problem in Calling a report from form 6i using parameters

    Hello Oracle experts,
    I am facing a problem while calling a report using form 6i and passing parameters,
    Actually the problem is I want to use the parameters passed to reports in a
    query group in my report. I am not able to use the parameters passed by form to report in one of my query groups in report. Could anybody guide my how to use it.
    Thanks

    Hello Oracle experts,
    The parameters are getting passed successfully in my report.
    But I want to know hous to use it in my query group.
    I just want the syntax.
    Thanks

  • VM crash when calling crystal report in java (Unix)

    We experience a serious problem when try to develop a crystal report application that run at Sun Solaris 9. Our program is to export pdf from crystal report. The program will always got VM crash when open 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 or another unix machine of Solaris 8. The report path is correct, but don't know why it will crash when open the report. May anyone help on it?
    Below see the system log:
    Jul  8 09:32:05 prospero genunix: [ID 269049 kern.notice] NOTICE: java[23499] at
    tempt to execute non-executable data at 0x0 by uid 65639
    Jul  8 09:33:04 prospero genunix: [ID 269049 kern.notice] NOTICE: java[23720] at
    tempt to execute non-executable data at 0x0 by uid 65639
    Jul  8 09:36:07 prospero genunix: [ID 269049 kern.notice] NOTICE: java[24335] at
    tempt to execute non-executable data at 0x0 by uid 65639
    Below see the java coding and the VM crash message:
    reportDocument = new ReportClientDocument();
    reportDocument.open(mSummaryReportName, 0); <=== always crash here
    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

    According to the documentation for interpreting hotspot logs, the following can be determined from yours:
    "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)"
    When the HotSpot VM generates an internal error it is referring to a line of code in your application.  The hexidecimal string is encoding the source module and line number where the error occurs.
    "Current thread (0x000386f0): JavaThread "main" threadin_Java, id=1"
    Essentially means that the JavaThread is running interpreted or compiled code when the error occurs.
    The rest of the hotspot identifies what the thread has done up to this point.... even though to you it appears that it fails on the open method, it looks like it is actually failing after the setDataSource method call.
    I would suggest that you look at other logs, ie: application server logs, Solaris message logs, database logs to see if you can identify where things actually fall apart.  The first place to start would be the database connectivity because it appears that is the last thing that gets generated in the log file.

  • Problem with calling a report from a function module. Please help! URGENT!

    Hi Experts,
       I have a scenarion like this:
      XI -
    > Function Module -
    > ABAP Report
      From XI I am callingf a function module in another R/3 system. This function module inturn calls a ABAP report using SUBMIT statement. The function module and the report reside in the same R/3 system.
      I am calling the report like this:
    SUBMIT yseg_save_bp_data WITH SELECTION-TABLE rspar
                                 AND RETURN.
    The problem is when I run the function module directly in the R/3 system then it calls the report without any problem.
    On the other hand, when I call the function module from XI then the report is not called. On debug mode I found that the program exits just at the Submit statement. Why is this strange problem?
    What mistake am I doing? Is there any limitations or restrictions with SUBMIT statement.
    What is the correct way of using submit statement in this scenario?
    Kindly help me!
    Thanks
    Gopal

    Hi Rao,
       I have created the FM as remote RFC. Infact XI is able to call the FM. Only problem is when it reaches the point where the report is called via SUBMIT it exits.
    Help me please!
    Thanks
    Gopal

  • VM crash when calling crystal report in java

    =======
    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

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

  • Fall into a trouble when calling a dll from java in linux

    Hi, experts:
    I encountered a big trouble when using JNI to call a C++-compiled DLL from java in Linux: The DLL function didn't execute immediately after the invocation, and was deferred till the end of the Java execution. But all worked well after migrating to windows. This problem made me nearly crazy. Can somebody help me? Thanks in advance.
    Linux: fedora core 8, jdk1.6.0_10,
    compile options: g++ -fPIC -Wall -c
    g++ -shared

    It looks like the OP compiled the C source file and linked it into a Windows .dll, which would explain why it worked flawlessly in Windows. (Though I must say the usage of GCC would make someone think it was compiled in Linux for Linux, GCC also exists for Windows, so I'm not sure it's a Windows .dll either...)
    @OP: Hello and welcome to the Sun Java forums! This situation requires you to make both a .dll and a .so, for Windows and Linux. You can then refer to the correct library for the operating system using System.loadLibrary("myLibrary"); without any extension.
    s
    Edited by: Looce on Nov 21, 2008 11:33 AM

  • Problem when calling session bean from main.

    Hi everyone
    I get the following error when calling a session bean from main(String args[]).
    Sep 3, 2008 9:11:13 AM com.sun.enterprise.appclient.MainWithModuleSupport <init>
    WARNING: ACC003: Application threw an exception.
    java.lang.NullPointerException
    at databasetest.Main.main(Main.java:26)
    Here is my code beneath.
    I'm using netbeans and glassfish application server.
    Everything is in the same project, called DatabaseTest, I also have deployed the application before running the client.
    I'm running the client as follows, right click on the DatabaseTest-app-client and select run.
    The client:
    package databasetest;
    import com.test.UsersFacadeRemote;
    import javax.ejb.EJB;
    import com.test.Users;
    public class Main {
        @EJB
        private static UsersFacadeRemote usersFacade;
        public static void main(String[] args) {
            Users users = new Users(12, 34);
            usersFacade.create(users);
    }The remote facade I'm calling:
    package com.test;
    import java.util.List;
    import javax.ejb.Remote;
    @Remote
    public interface UsersFacadeRemote {
        void create(Users users);
        void edit(Users users);
        void remove(Users users);
        Users find(Object id);
        List<Users> findAll();
    }The stateless bean:
    package com.test;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    @Stateless
    public class UsersFacade implements UsersFacadeRemote {
        @PersistenceContext
        private EntityManager em;
        public void create(Users users) {
            em.persist(users);
        public void edit(Users users) {
            em.merge(users);
        public void remove(Users users) {
            em.remove(em.merge(users));
        public Users find(Object id) {
            return em.find(com.test.Users.class, id);
        public List<Users> findAll() {
            return em.createQuery("select object(o) from Users as o").getResultList();
    }

    looks like you're banging your head against the same brick wall as [I have done|http://forums.sun.com/thread.jspa?forumID=13&threadID=5317110] and [others have in the past|http://forums.sun.com/thread.jspa?forumID=136&threadID=5259913] if that's any consolation.
    Funny thing is, mine did actually work in the debugger but not when running!
    Strange thing that.
    I did initially interest someone from the developers but they couldn't really help, ended up saying : try instantiating your beans the EJB 2.1 way and see where that gets you. Yes that works but they promised us "hey no more dopey xml deployment descriptors just some cool annotations" didn't they?
    I've got the feeling were' missing something really obvious!
    Edited by: sebthebike on 03-Sep-2008 12:21

  • Supressing Parameter form when called a report from a Form

    Hi all,
    How can I supress the Parameter Form of a Report when called from a Form. I am using RUN_PRODUCT built-in to invoke the report.
    Thanks in advance
    Krishna

    Pass a parameter to your report .
    the parameter name is "PARAMFORM" and the value it should have is "NO".

  • Calling oracle reports from java applications

    Hi:
    I was wondering if anyone can tell me how to invoke an oracle report from a java application.

    yes it is possible. There is a cgi script called viewreport.cgi. Have the jsp page call it (GET or POST method) and place the user parameters inside the form.

  • Error when calling a report from Server?

    We have a .NET application on the server and we want to call a crystal report (.rpt) from one of the forms (.NET aspx page).  We are getting below error.  The report works fine on the desktop where it is developed.  Please let us know if there is any specific process to move the reports to server.  Any help is appreciated.
    The report is developed in Crystal Reports 2008 and we are using Visual Studio 2005.  We are using Crystal Report Viewer control to call / associate the report developed.
    Error message,
    An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.
    Thanks
    Sridhar
    Edited by: Sridhar Thodupunoori on Dec 4, 2008 4:13 PM

    Hi,
    It seems that you are having issue with Crystal reports .Net SDK's.
    Post your question in Crystal Reports .NET SDK forum.
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all .NET SDK queries remain in one place and thus can be easily searched in one place.
    Thank you for your understanding,
    Amit

  • FRM-41214 when calling a report from a form in DS1012

    This is weird. I have a report that contains a lexical parameter that is intended to add an "AND" clause to the WHERE so I can use the same report to do an unrestricted query or a restricted query.
    To do an unrestricted query, this works fine:
    ls_param := 'and_clause='||''||' paramform=no';
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,ls_param);
    v_rep := RUN_REPORT_OBJECT(repid);
    etc. according to all the notes on the matter. The report runs and brings back all rows because the "AND" part of the WHERE is null,
    But as soon as I attempt to modify the ls_param variable, the form refuses to run. I am not mis-using the single quotes. I have all the quotes in variables as in:
    ls_and_clause := chr(32)||' AND id IN (';
    to set the first part of the clause, followed by:
    FOR id_rec in id_list LOOP
    ls_and_clause := ls_and_clause ||QT||id_rec.id||QT||',';
    END LOOP;
    where id_list is a cursor that brings back a list of IDs qualified per user, and QT is a variable that holds chr(39).
    I have read the notes on being careful not to pass spaces, so everything is concatenated into a single variable that gets passed on the final
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,ls_param);
    where ls_param includes something like "and_clause = 'AND id in ('901','902') paramform=no"
    Seems to me, this should work. Does anyone else have any insight on doing this kind of thing?

    Thanks for the toubleshooting tip. It helped me find the problem. For some reason when the AND clause included the table name, the report would not run. But when the AND clause does not include the table name, the report works:
    AND table.col IN ('101','102') fails, but
    AND col IN ('101','102') works.
    Go figure. I just hope I never have to do this when the table name is required to remove ambiguity.

  • When call jasper report from jsp, occur error

    I define a class call createReport that has a function call doReport to create report.
    If i call doReport from application, notthing's happened.
    But if i call doReport from jsp file, it occurs error ( 500 error ).
    jsp file :
    <%@ page import="myBean.createReport"%>
    <%! createReport myReport = new createReport();%>
    <%myReport.doReport("c:\\myJasper.jasper");%>c:\\myJasper.jasper is the path of report.
    Do you have some sugguestions to solve that error?

    Gosh, you better ask someone from Jasper support to help you...

Maybe you are looking for

  • Does Apple is going to upgrade the AirPlay Feature to ATV1?

    It's not fair that the airplay just works with the ATV2. Does apple is going to do something about it?

  • Canon G11 raw files

    Hi all, Have just purchased a Canon G11 camera and use it as a back-up (for underwater shots) camera to my 5D mark II for photojournalism. I need to capture in RAW, but iPhoto does not see the RAW files. It says that the file is an "unrecognized form

  • Keystrokes lost since upgrading to Lion

    Since I've upgraded to Lion I'm experiencing a rather odd problem: iWork doesn't respond to certain keystrokes. The worst offenders are Cmd-C, Cmd-V, and the like, but sometimes regular typing just doesn't appear in the document. This is an intermitt

  • Firefox 34 unstable. Plugins blocked, Flash not working, cannot update Flash. Cannot update FLASH, as Adobe not offering update.

    Repeated crashes with latest Firefox Version 34, running on Win XP SP3. Older Firefox version worked flawlessly. Update was a bad idea, as "security" fixes now block Flash from working. Attempt to update via Adobe cause further problems. Repeated cra

  • Bug? using :: in connection name

    I've confirmed some strage activity with certain characters in connection names using SQLDeveloper 1.0.0.15.57 on a Mac Powerbook G4 10.4 .7 connecting to Oracle 9.2.0.7.0. If I name the connection test::user and attempt to edit a trigger I get a jav