Quantcast
Channel: SCN : Popular Discussions - Java SDK Application Development
Viewing all 1701 articles
Browse latest View live

How to get FRS path and document name?

$
0
0

Hi

I am working on post processing publication extension to password protect PDF. 

1.  The method getFRSPathURL() is returning a string like this: "frs://Output/a_235/018/001/70379/" .I need the complete URL . Is there a way to get the      frs directory ?

2.  The method getTitle() in IInfoObject class does not return the name of file present in above directory (i.e., getFRSPathURL() ). How to get the file                name?
3.  For password protecting a PDF , what I am doing is create a new PDF with same content as that of old one , then encrypting it and then replacing the        old file with new one. In this process I will lose all the information about recipients of this document. Is there a way to create a new IInfoObject with            exactly same properties as the old one except for the file?


Webi Document refresh from java sdk is throwing error

$
0
0

We are using windows machines with CMS Running on network machines.(SAP BO BI 4.1)

connecting to CMS for BI Launchpad and successfully designed all the reports.

Now we want to refresh and export webi report to local drive in specific format.

 

 

with following code(using sdk provided for java ):

 

IEnterpriseSession enterpriseSession = null;

  ReportEngines reportEngines = null;

  try {

 

  String host = "xxx.xx.xx.xxx";

  String user = "user";

  String pass = "password";

  String auth = "secEnterprise";

  String port = "xxxx";

  String name = "";

ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();

             enterpriseSession = sessionMgr.logon(user, pass,

                 host+":"+port, auth);

 

 

 

Could not reach CMS 'ipaddress:port'. Specify the correct host and port and check for network issues. (FWM 20030)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:695)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:838)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:815)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:211)

  at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:177)

  at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody0(SessionMgr.java:454)

  at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody1$advice(SessionMgr.java:512)

  at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)

  at com.sapscheduler.ExportWebiDocument.main(ExportWebiDocument.java:57)

Caused by: com.crystaldecisions.sdk.exception.SDKException$OCAFramework: Server ipaddress:port not found or server may be down (FWM 01003)

cause:com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$NotFoundInDirectory: Server ipaddress:port0 not found or server may be down (FWM 01003)

cause:java.net.SocketTimeoutException: Read timed out

detail:Server ipaddress:port not found or server may be down (FWM 01003) Read timed out

detail:Server ipaddress:port not found or server may be down (FWM 01003) Read timed out

  at com.crystaldecisions.sdk.exception.SDKException.map(SDKException.java:140)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:694)

  ... 8 more

Caused by: com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$NotFoundInDirectory: Server ipaddress:port not found or server may be down (FWM 01003)

cause:java.net.SocketTimeoutException: Read timed out

detail:Server ipaddress:port not found or server may be down (FWM 01003) Read timed out

  at com.crystaldecisions.enterprise.ocaframework.RawSocketDirectory.find(RawSocketDirectory.java:310)

  at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildBootstrapAPSInfo(APSServerHandler.java:256)

  at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildAPSClusterInfo(APSServerHandler.java:514)

  at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildServerInfo(APSServerHandler.java:192)

  at com.crystaldecisions.enterprise.ocaframework.ServerController.redirectServer(ServerController.java:534)

  at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.redirectServer(ServiceMgr.java:959)

  at com.crystaldecisions.enterprise.ocaframework.ManagedSessions.get(ManagedSessions.java:258)

  at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService_aroundBody4(ServiceMgr.java:520)

  at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(ServiceMgr.java:1)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:651)

  ... 8 more

Caused by: java.net.SocketTimeoutException: Read timed out

  at java.net.SocketInputStream.socketRead0(Native Method)

  at java.net.SocketInputStream.read(Unknown Source)

  at java.net.SocketInputStream.read(Unknown Source)Finished!

 

 

  at java.io.DataInputStream.readInt(Unknown Source)

  at com.crystaldecisions.enterprise.ocaframework.RawSocketDirectory.find(RawSocketDirectory.java:277)

  ... 17 more

Exception in thread "main" java.lang.NullPointerException

  at com.sapscheduler.ExportWebiDocument.main(ExportWebiDocument.java:77)

Finished!

 

 

 

Kindly address my problem and help me out.

Please help me.

Thanks a tone.

Strange error on java script when upgading XI3.1 >> BI4

$
0
0

Hi,

 

I am working on updating a script which is using :

  • the BOE Java SDK

  • the ReBean Java SDK

 

OK, it seems pretty simple BUT :

 

I can't manage to find this specific class : com.businessobjects.sdk.core.logging.LoggerFactory which is requested by this one :com.businessobjects.rebean.factory.OCCAReportEnginesFactory

 

Is there a list of classes in each JAR of BI4 ? That could be useful By the way I don't find anything like 'com.businessobjects.sdk.core.logging.*' inside the documentation of SDK /BI4 version.

 

For info, i am running BI4 version 1400, on windows server 2008 / x64.

 

Thanks for your inputs

How to get FRS path and document name?

$
0
0

Hi

I am working on post processing publication extension to password protect PDF. 

1.  The method getFRSPathURL() is returning a string like this: "frs://Output/a_235/018/001/70379/" .I need the complete URL . Is there a way to get the      frs directory ?

2.  The method getTitle() in IInfoObject class does not return the name of file present in above directory (i.e., getFRSPathURL() ). How to get the file                name?
3.  For password protecting a PDF , what I am doing is create a new PDF with same content as that of old one , then encrypting it and then replacing the        old file with new one. In this process I will lose all the information about recipients of this document. Is there a way to create a new IInfoObject with            exactly same properties as the old one except for the file?

Getting an org.apache.axis2.AxisFault: Read timed out in getDocumentInformation

$
0
0

Our users say it has worked before but now we are consistently getting a Read Timeout Error when we call getDocumentInformation from ReportEngine.

 

Does anyone have any ideas ?

 

I have the stack trace below  

 

Caused by:

org.apache.axis2.AxisFault: Read timed out

at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)

at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)

at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:210)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:531)

at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)

at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)

at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

at com.businessobjects.dsws.reportengine.ReportEngine.getDocumentInformation(Unknown Source)

... 30 more

Caused by:

java.net.SocketTimeoutException: Read timed out

at java.net.SocketInputStream.read(SocketInputStream.java:140)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:229)com.businessobjects.dsws.reportengine.ReportEngine.getDocumentInformation

Uncheck Default Enterprise Location in Publication & BO Report Bursting

$
0
0

Hi,

I do not seem to have a way to uncheck the Default Enterprise Location in Publication from SDK.  I want to use FileSystem, set the file location, file name and extension; however, it does not seem to set when I view in CMC InfoView.  The Default Enterprise Location is always checked.  I have written some code but I did not know how to map the fields for Dynamic Recipients, Personalization and the FileName.  In other words, I want to achieve this scenario:

1) one whole report for a manager with a filename that is unique for him (say, his id is 12345 and the report tile is report, so the filename is report_12345.pdf or xls).

2) each report of each employee with his own content (i.e his id is 56789 and the report is report, so the filename is report_56789.pdf or xls).

 

Attached is the source code I have written to prototype but I do not know enough about BO and Report Bursting to achieve.  If you can look at the sample program and show me how to achieve this, it would help me a lot.  I have comments and questions in the sample program as I am not too sure about a lot of things in it.  Please help clarifying them for me if you could.

 

Thank you for your time and help.

Problem with a jar file rebean.wi when updating 3.1 to 4.1

$
0
0

I'm updating our java application using the SDK and I met an issue with the jar rebean.wi.jar.

 

In our jar from 3.1, we have the class com.businessobjects.rebean.wi.occa.WebiReportEngineFactory

 

But in the jar I get from the installation folder of BO 4.1, we do not have that class anymore.

 

Can you help me?

 

Thanks in advance !

Webi Document refresh from java sdk is throwing error

$
0
0

We are using windows machines with CMS Running on network machines.(SAP BO BI 4.1)

connecting to CMS for BI Launchpad and successfully designed all the reports.

Now we want to refresh and export webi report to local drive in specific format.

 

 

with following code(using sdk provided for java ):

 

IEnterpriseSession enterpriseSession = null;

  ReportEngines reportEngines = null;

  try {

 

  String host = "xxx.xx.xx.xxx";

  String user = "user";

  String pass = "password";

  String auth = "secEnterprise";

  String port = "xxxx";

  String name = "";

ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();

             enterpriseSession = sessionMgr.logon(user, pass,

                 host+":"+port, auth);

 

 

 

Could not reach CMS 'ipaddress:port'. Specify the correct host and port and check for network issues. (FWM 20030)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:695)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:838)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:815)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:211)

  at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:177)

  at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody0(SessionMgr.java:454)

  at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody1$advice(SessionMgr.java:512)

  at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)

  at com.sapscheduler.ExportWebiDocument.main(ExportWebiDocument.java:57)

Caused by: com.crystaldecisions.sdk.exception.SDKException$OCAFramework: Server ipaddress:port not found or server may be down (FWM 01003)

cause:com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$NotFoundInDirectory: Server ipaddress:port0 not found or server may be down (FWM 01003)

cause:java.net.SocketTimeoutException: Read timed out

detail:Server ipaddress:port not found or server may be down (FWM 01003) Read timed out

detail:Server ipaddress:port not found or server may be down (FWM 01003) Read timed out

  at com.crystaldecisions.sdk.exception.SDKException.map(SDKException.java:140)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:694)

  ... 8 more

Caused by: com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$NotFoundInDirectory: Server ipaddress:port not found or server may be down (FWM 01003)

cause:java.net.SocketTimeoutException: Read timed out

detail:Server ipaddress:port not found or server may be down (FWM 01003) Read timed out

  at com.crystaldecisions.enterprise.ocaframework.RawSocketDirectory.find(RawSocketDirectory.java:310)

  at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildBootstrapAPSInfo(APSServerHandler.java:256)

  at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildAPSClusterInfo(APSServerHandler.java:514)

  at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildServerInfo(APSServerHandler.java:192)

  at com.crystaldecisions.enterprise.ocaframework.ServerController.redirectServer(ServerController.java:534)

  at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.redirectServer(ServiceMgr.java:959)

  at com.crystaldecisions.enterprise.ocaframework.ManagedSessions.get(ManagedSessions.java:258)

  at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService_aroundBody4(ServiceMgr.java:520)

  at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(ServiceMgr.java:1)

  at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:651)

  ... 8 more

Caused by: java.net.SocketTimeoutException: Read timed out

  at java.net.SocketInputStream.socketRead0(Native Method)

  at java.net.SocketInputStream.read(Unknown Source)

  at java.net.SocketInputStream.read(Unknown Source)Finished!

 

 

  at java.io.DataInputStream.readInt(Unknown Source)

  at com.crystaldecisions.enterprise.ocaframework.RawSocketDirectory.find(RawSocketDirectory.java:277)

  ... 17 more

Exception in thread "main" java.lang.NullPointerException

  at com.sapscheduler.ExportWebiDocument.main(ExportWebiDocument.java:77)

Finished!

 

 

 

Kindly address my problem and help me out.

Please help me.

Thanks a tone.


How to read History Status values of a Report

$
0
0

Hello Friends,

 

Can someone let me know how to read history status values like (Title, Document Type, Status, Destination, Owner, Creation Time, Start Time, End Time, Duration, Server Used, PID, Parent Object Path, Remote Instances in Federated Clsuster, Expiry, Formats, Parameter)?

 

I am trying to read history status values (existing instances) and export them to an excel.

 

Regards,

Rakhy.

Rescheduling the report using BO SDK jsp

$
0
0

I have the below code to reschedule the reports in BO using SDK. But I am not able to do it. The below code just rescheudles the report, but the mail is not sent as per the existing schedule.

Code and scheduled description given below. Any quick pointers are highly appreciated.

 

<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*" %> 

<%@ page import = "com.crystaldecisions.sdk.framework.CrystalEnterprise" %> 

<%@ page import = "com.crystaldecisions.sdk.exception.SDKException" %> 

<%@ page import = "com.crystaldecisions.sdk.framework.IEnterpriseSession" %> 

<% 

    // logon information 

    String boCmsName  = "***" ; 

    String boUsername = "***" ; 

    String boPassword = "***" ; 

    String boAuthType = "secEnterprise" ; 

          // report 

    String reportName = "SDK_TEST" ; 

          // logon 

    IEnterpriseSession ceSession = CrystalEnterprise.getSessionMgr().logon( boUsername, boPassword, boCmsName, boAuthType ) ; 

    IInfoStore         oInfoStore = (IInfoStore)ceSession.getService( "", "InfoStore" ) ; 

    IInfoObjects oInfoObjects = oInfoStore.query("select top 1 * from ci_infoobjects where SI_NAME='" + reportName + "' " );

    IInfoObject oI = (IInfoObject) oInfoObjects.get(0);

          IInfoObject oSched = (IInfoObject) oInfoObjects.get(0);

           oSched.getSchedulingInfo().setRightNow(true);

           oSched.getSchedulingInfo().setType(CeScheduleType.ONCE);

             oInfoStore.schedule(oInfoObjects);

             

%>



Title: SDK_TEST

Document Type: Web Intelligence Report

Status Success

Destination: Default

Owner: ****

Creation Time: 5/15/2014 1:53 AM

Start Time: 5/15/2014 1:53 AM

End Time: 5/15/2014 1:53 AM

Duration: 3 sec

Server Used: mdwnew.AdaptiveJobServer

PID: 27131966

Parent Object Path: **********

Remote Instance in Federated Cluster: No

Expiry: 5/15/2024 1:53 AM

Formats: Web Intelligence



Now my doubt is can we reschedule the report directly or we need to get all the scheduling info like from/to/events etc and then apply them for the new schedule? I think it will be a tedious job as it could be SMTP or FTP or inbox or anything.

Failed to establish confidential channel. (FWM 02119) when using crystalReportViewer

$
0
0

Hi,

 

I trying to use the Java SDK to view crystal report that reside in another server from my application server.

I get the following error when the jsp try to execute the following line

 

IEnterpriseSession enterpriseSession = sessionMgr.logon(username, password, serverHost+serverPort, "secEnterprise");

 

]] Root cause of ServletException.

com.crystaldecisions.sdk.exception.SDKException$ConfidentialChannelFailed: Failed to establish confidential channel. (FWM 02119)

cause:com.businessobjects.bcm.exception.FIPSError: Cryptographic library is not FIPS-140-compliant.

detail:Failed to establish confidential channel. (FWM 02119) Cryptographic library is not FIPS-140-compliant.

        at com.crystaldecisions.sdk.occa.security.internal.ConfidentialChannelService.establishConfidentialChannel(ConfidentialChannelService.java:199)

        at com.crystaldecisions.sdk.occa.security.internal.ConfidentialChannelService.createConfidentialChannel(ConfidentialChannelService.java:145)

        at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:985)

        at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:292)

        at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:191)

        at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody2(SessionMgr.java:446)

        at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody3$advice(SessionMgr.java:42)

        at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)

        at jsp_servlet.__crystalreportviewer._jspService(__crystalreportviewer.java:130)

        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)

 

Application server i am using is weblogic 11g

May i know how can i resolve or bypass this error ?

 

Thanks.

Regards

Dennis

jsf reportPageViewer displays blank

$
0
0

Hi there,

 

For the last week I've been struggling to try to implement a crystal report viewer in my jsf webapp.

 

My environment is crystal reports 2011 processing server and report application server 2011, and the version of BO is SAP BusinessObjects Enterprise XI 4.0

 

The implementation of jsf being used is sun faces 2.2.5.

 

At one point I was able to get my project error-free, but it resulted in just a blank page (other than other html output).

 

In reading through the xi4_rasjava_dg_en developer guide, I know i need to

  • 1.Copy the required JAR files into your web application.
  • 2.Deploy the CrystalReports.war file with your web application.
  • 3.Edit your web.xml file.


1. I have the appropriate com.crystaldecisions jars (which are imported via maven dependency declarations),

2. I can't seem to find the crystalreports.war (the dev guide said \Program Files\Business Objects\BusinessObjects Enterprise 12.0\java\applications on Windows).  My local installation doesn't have a java folder, and I'm told that the serverside installation does have a java folder but doesn't have any war files.

3. My web.xml looks like this:

<servlet>        <servlet-name>Faces Servlet</servlet-name>        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>        <load-on-startup>1</load-on-startup>    </servlet>    <context-param>        <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>        <param-value>server</param-value>    </context-param>    <context-param>        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>        <param-value>.xhtml</param-value>    </context-param>    <context-param>        <param-name>javax.faces.PROJECT_STAGE</param-name>        <param-value>Development</param-value>    </context-param>    <context-param>    <param-name>crystal_image_uri</param-name>    <param-value>crystalreportviewers</param-value>    </context-param>    <context-param>    <param-name>crystal_image_use_relative</param-name>    <param-value>webapp</param-value>    </context-param>

 

There is also mention of a crystalreportviewers folder to be placed parallel to the WEB-INF folder, but I haven't figured out what it is for, other than "contains the support files required by the viewers."  It does seem to be referenced as the crystal_image_uri though.

 

My JSF xhtml file contains this:

<h:body>    <!--ui:include src="header.xhtml" /-->    <f:view>        <h:form id="viewerForm">            Test            <bocrv:reportPageViewer viewerName="CrystalViewer"            reportSource="#{reports.reportSource}"            displayToolbarRefreshButton="false"            allowDatabaseLogonPrompting="false"            allowParameterPrompting="false"            displayGroupTree="false"            displayToolbarLogo="false"            displayToolbarToggleTreeButton="false"            enablePageToGrow="false" height="540"            zoomPercentage="100" width="750"            allowDrillDown="false"            displayToolbarPrintButton="true"            printMode="#{reports.printMode}"            ></bocrv:reportPageViewer>            Test2        </h:form>    </f:view>    <!--ui:include src="footer.xhtml" /--></h:body>

 

And the Reports.java backing bean includes:

 

 

public Reports() throws IOException, SDKException    {        LOGGER.info("Reports()");        setPrintMode(CrPrintMode.fromString("ActiveX"));        setReportSource(getManagedReportSource("S0010_HHR_A_Transfer_Details"));    }    //endregion    IReportSource getManagedReportSource(String reportName) throws SDKException, IOException    {        LOGGER.info("username: hhrpt, password: handheld, CMS: berlin-b, service: secEnterprise");        IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon("username", "pass", "server", "secEnterprise");        IReportSourceFactory reportSourceFactory = (IReportSourceFactory) enterpriseSession.getService("", "PSReportFactory");        IInfoStore infostore = (IInfoStore) enterpriseSession.getService("InfoStore");        IInfoObjects reports = infostore.query("Select SI_ID, SI_CUID From CI_INFOOBJECTS Where SI_NAME='" + reportName + "' And SI_INSTANCE=0");        IInfoObject report = (IInfoObject)reports.get(0);        LOGGER.info("CUID of report: " + report.getCUID());        String reportID = "cecuid:///" + report.getCUID() + "";        IReportSource reportSource = reportSourceFactory.openReportSource(reportID, java.util.Locale.ENGLISH);        if(reportSource != null)        {            LOGGER.info("report source found");        }        return reportSource;    }

which at one point i was able to see successfully get the CIUD and the reportsource.

 

However, I'm thinking my main problem might be not having a CrystalReports.war....if I can't seem to locate it, where else should I be able to get it?

 

Is there anything else I'm clearly doing wrong?  It seems difficult to find information or examples on successful implementations of a crystal report viewer in a jsf webapp.

 

Thanks,

 

Jeremy

SAP BOXIR4 Webservices SDK Login issues

$
0
0

Hi,

 

I am able to login successfully into R4 environment using BO Enterprise SDK. However, I am facing issues while trying to login using R4 Webservices SDK’s on R4 environment. But if I use the R3 Webservices SDK’s, I am able to successfully login into R4 environment without changing code.

 

After analyzing further, I found that there could be some issues with the following R4 jar files.

 

axiom-api-1.2.13.jar

axiom-impl-1.2.13.jar

dsws-session.jar

 

Stack Trace:

 

login The exception is of a known origin. (Error: WSE 99999) S2login The exception is of a known origin. (Error: WSE 99999)session.dsws.businessobjects.com/loginjava.lang.NoSuchMethodErrororg/apache/axiom/om/OMXMLBuilderFactory.createOMBuilder(Ljavax/xml/transform/Source;)Lorg/apache/axiom/om/OMXMLParserWrapper;java.lang.NoSuchMethodError: org/apache/axiom/om/OMXMLBuilderFactory.createOMBuilder(Ljavax/xml/transform/Source;)Lorg/apache/axiom/om/OMXMLParserWrapper; at com.businessobjects.dsws.session.SessionStub.toOM(SessionStub.java:4256) at com.businessobjects.dsws.session.SessionStub.toOM(SessionStub.java:4244) at com.businessobjects.dsws.session.SessionStub.toEnvelope(SessionStub.java:4496) at com.businessobjects.dsws.session.SessionStub.login(SessionStub.java:3053) at com.businessobjects.dsws.session.Session.login(Session.java:439) at com.ibm._jsp._login._jspService(_login.java:169) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1224) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:216) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1032) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3748) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:459) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:526) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:312) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:283) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)

 

After reading the AXIOM documentation from the below link, I could understand that OMXMLBuilderFactory class has been moved into a different package and I am not sure SessionStub class from BO Webservices (dsws-session.jar) is referring the right package.

 

http://ws.apache.org/axiom/userguide/ch04.html#changes-1.2.11

 

 

P/s: This AXIOM change is reflecting in R4 version of Webservices SDK’s and hence we don’t have any issues with R3 Webservices SDK’s.

 

Can I get some solution/work around on this?

 

Thanks,

Jinesh

use opendocument 4.1 like opendocument 3.1 ...upppsss

$
0
0

First of all ...... let me explainwhat I mean

My problem is thatwe have over1000 WebIntelligenct documents that includeall kinds of callsaccording to opendocumentBOXI31 format, so thatnowwe havemigrated toSAPBO4.1is hell and a nightmareupdatingthem.

 

Now calls are something like:

 

http://servername:8080/OpenDocument/opendoc/

 

SAPBO 4.1 something like:

 

http://servername:8080/BOE/OpenDocument/opendoc

 


  My questionis whether ...... there issome way that I can redirector use parameters that allow modify opendocumentpropertiesor unfortunately we need a smalldevelopment with theSDK.

  Please, I needurgentassistance

  Thank you very muchtoeveryone in advance

SAP BOXIR4 Webservices SDK Login issues

$
0
0

Hi,

 

I am able to login successfully into R4 environment using BO Enterprise SDK. However, I am facing issues while trying to login using R4 Webservices SDK’s on R4 environment. But if I use the R3 Webservices SDK’s, I am able to successfully login into R4 environment without changing code.

 

After analyzing further, I found that there could be some issues with the following R4 jar files.

 

axiom-api-1.2.13.jar

axiom-impl-1.2.13.jar

dsws-session.jar

 

Stack Trace:

 

login The exception is of a known origin. (Error: WSE 99999) S2login The exception is of a known origin. (Error: WSE 99999)session.dsws.businessobjects.com/loginjava.lang.NoSuchMethodErrororg/apache/axiom/om/OMXMLBuilderFactory.createOMBuilder(Ljavax/xml/transform/Source;)Lorg/apache/axiom/om/OMXMLParserWrapper;java.lang.NoSuchMethodError: org/apache/axiom/om/OMXMLBuilderFactory.createOMBuilder(Ljavax/xml/transform/Source;)Lorg/apache/axiom/om/OMXMLParserWrapper; at com.businessobjects.dsws.session.SessionStub.toOM(SessionStub.java:4256) at com.businessobjects.dsws.session.SessionStub.toOM(SessionStub.java:4244) at com.businessobjects.dsws.session.SessionStub.toEnvelope(SessionStub.java:4496) at com.businessobjects.dsws.session.SessionStub.login(SessionStub.java:3053) at com.businessobjects.dsws.session.Session.login(Session.java:439) at com.ibm._jsp._login._jspService(_login.java:169) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1224) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:216) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1032) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3748) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:459) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:526) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:312) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:283) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)

 

After reading the AXIOM documentation from the below link, I could understand that OMXMLBuilderFactory class has been moved into a different package and I am not sure SessionStub class from BO Webservices (dsws-session.jar) is referring the right package.

 

http://ws.apache.org/axiom/userguide/ch04.html#changes-1.2.11

 

 

P/s: This AXIOM change is reflecting in R4 version of Webservices SDK’s and hence we don’t have any issues with R3 Webservices SDK’s.

 

Can I get some solution/work around on this?

 

Thanks,

Jinesh


error ERR_WIS_30272 while reading data provider results

$
0
0

We are using BOXI 3.1 SP2 and SP3.

 

An application opens webi report documents with the BOXI report engine java api.

 

For some webi reports we get the following exception:

 

com.businessobjects.rebean.wi.ServerException: Maximum character output size limit reached. Contact your BusinessObjects administrator. (Error: ERR_WIS_30272)     at com.businessobjects.rebean.wi.occa.XMLviaOcca.getDPResultsExAsStream(Unknown Source)     at com.businessobjects.rebean.wi.occa.OccaDataProviderComAdapter.getDataProviderResults(Unknown Source)     at com.businessobjects.rebean.wi.occa.OccaDataProviderComAdapter.getResultAsBlob(Unknown Source)     at com.businessobjects.rebean.wi.RecordsetExImpl.<init>(Unknown Source)     at com.businessobjects.rebean.wi.DataProviderImpl.getResult(Unknown Source)

Here the access:

                       // result                        flowCount = dp.getFlowCount();                        rowCount = dp.getRowCount();                        Recordset rS = dp.getResult(0);                        if(rS != null) {                                :                         } 
dp is of type DataProvider

 

The call to getResult(0) causes the exception.  The values for flowCount and rowCount are e.g-:

 

flowCount: 1       rowCount:  61608

flowCount: 1       rowCount:  24488

 

The only information I need from the Recordset that represents the data provider result is the column name of each result column.

 

How can I read the list of result columns from a data provider without getting this exception?

 

Any help is appreciated.

 

Thanks,

Bernd

SAP connectivity from Java to SAP 4.0

$
0
0

Hi All,

 

I am tried to send an IDOC(whose basic type, extension are known) to SAP system(ECC 6.0) using the SAP JCo API 3.0 and all works well.

 

Now I used the same piece of code to connect to SAP 4.0 system but the following basic line of code has ran into a IDOCRUNTIMEEXCEPTIION

 

 

doc = iDocFactory.createIDocDocument(iDocRepository, iDocType, iDocCymType);

 

com.sap.conn.idoc.IDocRuntimeException: Unable to get metadata for MATMAS03 with extension YES2P_IEXT_MATMAS03: Function module "IDOCTYPE_READ_COMPLETE" not found.
at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData40(SAPRepository.java:1330)
at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData(SAPRepository.java:1122)
at com.sap.conn.idoc.jco.rt.SAPRepository.getRootSegmentMetaData(SAPRepository.java:886)
at com.sap.conn.idoc.rt.DefaultIDocDocument.<init>(DefaultIDocDocument.java:119)
at com.sap.conn.idoc.rt.DefaultIDocDocument.<init>(DefaultIDocDocument.java:57)
at com.sap.conn.idoc.jco.rt.JCoIDocDocument.<init>(JCoIDocDocument.java:58)
at com.sap.conn.idoc.jco.rt.JCoIDocRuntime.createIDocDocument(JCoIDocRuntime.java:143)
at com.sap.conn.idoc.jco.rt.JCoIDocRuntime.createIDocDocument(JCoIDocRuntime.java:32)
at com.sap.conn.idoc.rt.DefaultIDocRuntime.createIDocDocument(DefaultIDocRuntime.java:228)
at com.sap.conn.idoc.rt.DefaultIDocRuntime.createIDocDocument(DefaultIDocRuntime.java:24)
at mxsapconnectorcore.actions.SendIDocToSap.executeAction(SendIDocToSap.java:76)
at mxsapconnectorcore.actions.SendIDocToSap.executeAction(SendIDocToSap.java:38)
at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57)
at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457)
at hC.b(SourceFile:207)
at com.mendix.core.Core.execute(SourceFile:226)
at ll.a(SourceFile:69)
at mv.a(SourceFile:72)
at mu.a(SourceFile:151)
at mu.executeAction(SourceFile:98)
at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57)
at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457)
at hC.b(SourceFile:207)
at com.mendix.core.Core.execute(SourceFile:304)
at com.mendix.core.Core.execute(SourceFile:280)
at mxsapconnectorcore.actions.IDocOutputQueue.run(IDocOutputQueue.java:116)
at java.lang.Thread.run(Unknown Source)
Caused by: com.sap.conn.jco.JCoException: (104) JCO_ERROR_SYSTEM_FAILURE: Function module "IDOCTYPE_READ_COMPLETE" not found. (raised by system D10|hslsid10)
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:677)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1830)
at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1120)
at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:953)
at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:936)
at com.sap.conn.jco.rt.ConnectionManager.internalExecute(ConnectionManager.java:411)
at com.sap.conn.idoc.jco.rt.SAPRepository$ConnectionProvider.execute(SAPRepository.java:1722)
at com.sap.conn.idoc.jco.rt.SAPRepository$ConnectionProvider.access$100(SAPRepository.java:1671)
at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData40(SAPRepository.java:1256)
... 26 more
Caused by: RfcException: [D10|hslsid10]
    message: Function module "IDOCTYPE_READ_COMPLETE" not found.
    Return code: RFC_SYS_EXCEPTION(3)
    error group: 104
    key: RFC_ERROR_SYSTEM_FAILURE
Exception raised by D10|hslsid10

at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:2038)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1778)
... 33 more
Caused by: com.sap.conn.rfc.exceptions.RfcGetException: Function module "IDOCTYPE_READ_COMPLETE" not found.
at com.sap.conn.rfc.engine.RfcImp.ab_rfcerror(RfcImp.java:1148)
at com.sap.conn.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:120)
at com.sap.conn.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:33)
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1980)
... 34 more

 

Now my question is how do I create an IDOC(a blank one) using this API for 4.0 system which doesnt seem to have this function module OR does anyone know other method create IDOC using SAP JCo3.

 

Please comment. Thanks in advance

How to read Data of a Webi Report

$
0
0

Hello Friends,

 

I have a task where I need to read data of a Webi Report, how can it be done?

 

Basically I have a trigger report which runs every day and get the latest RACN number from the database. I am trying to get that RACN number from trigger report using BOBJ SDK.

 

I really appreciate your suggestions on this.

 

Regards,

Rakhy. 

use opendocument 4.1 like opendocument 3.1 ...upppsss

$
0
0

First of all ...... let me explainwhat I mean

My problem is thatwe have over1000 WebIntelligenct documents that includeall kinds of callsaccording to opendocumentBOXI31 format, so thatnowwe havemigrated toSAPBO4.1is hell and a nightmareupdatingthem.

 

Now calls are something like:

 

http://servername:8080/OpenDocument/opendoc/

 

SAPBO 4.1 something like:

 

http://servername:8080/BOE/OpenDocument/opendoc

 


  My questionis whether ...... there issome way that I can redirector use parameters that allow modify opendocumentpropertiesor unfortunately we need a smalldevelopment with theSDK.

  Please, I needurgentassistance

  Thank you very muchtoeveryone in advance

Getting an org.apache.axis2.AxisFault: Read timed out in getDocumentInformation

$
0
0

Our users say it has worked before but now we are consistently getting a Read Timeout Error when we call getDocumentInformation from ReportEngine.

 

Does anyone have any ideas ?

 

I have the stack trace below  

 

Caused by:

org.apache.axis2.AxisFault: Read timed out

at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)

at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)

at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:210)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:531)

at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)

at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)

at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

at com.businessobjects.dsws.reportengine.ReportEngine.getDocumentInformation(Unknown Source)

... 30 more

Caused by:

java.net.SocketTimeoutException: Read timed out

at java.net.SocketInputStream.read(SocketInputStream.java:140)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:229)com.businessobjects.dsws.reportengine.ReportEngine.getDocumentInformation

Viewing all 1701 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>