Error code:-2147467259 Error code name:failed Java desktop application

Hi guys,
I'm trying to run
Java_JRC_Desktop_View_Report_and_set_database_logon downloaded from this link:
http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d0d6f979-3e11-2c10-35a8-ac93994a30ed
but at runtime my java desktop application throws this Exception:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: org/apache/log4j/Logger---- Error code:-2147467259 Error code name:failed
From what depends?
thx all.

Hi,
     I am trying to run a java code to export .rtf file to .pdf format. Below is the code
*String reportname = "D:\\multiLingual.rpt";;*
*String exportfilename ="D:\\multiLingual.pdf";*
*//Open report.*
*ReportClientDocument reportClientDoc = new ReportClientDocument();*
*reportClientDoc.open(reportname, 0);*
*//NOTE: If parameters or database login credentials are required, they need to be set before.*
*//calling the export() method of the PrintOutputController.*
*//Export report and obtain an input stream that can be written to disk.*
*//See the Java Reporting Component Developer's Guide for more information on the supported export format enumerations*
*//possible with the JRC.*
*ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);*
*//Release report.*
*reportClientDoc.close();*
*//Use the Java I/O libraries to write the exported content to the file system.*
*byte byteArray[] = new byte[byteArrayInputStream.available()];*
*//Create a new file that will contain the exported result.*
*File file = new File(exportfilename);*
*FileOutputStream fileOutputStream = new FileOutputStream(file);*
*ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());*
*int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());*
*byteArrayOutputStream.write(byteArray, 0, x);*
*byteArrayOutputStream.writeTo(fileOutputStream);*
*//Close streams.*
*byteArrayInputStream.close();*
*byteArrayOutputStream.close();*
*fileOutputStream.close();*
I am running it through eclipse as a standalone with all the required jar files in the buildpath. However when i run it gives following error in console.
*com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: An error occured while exporting the report---- Error* *code:-2147467259 Error code name:failed*
*     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)*
*     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)*
*     at com.crystaldecisions.reports.sdk.PrintOutputController.export(SourceFile:54)*
*     at test.main(test.java:34)*
Thanks in advance
Abhijeet
Edited by: Abhijeet D on Jul 7, 2010 5:10 PM
Edited by: Abhijeet D on Jul 7, 2010 5:24 PM

Similar Messages

  • The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed

    Friends,
                I'm facing below issue while accessing a crystal report. I heard it might be an access issue. But i'm able to access a report within a same folder.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException : The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    Any suggestions would be very helpful.
    Thanks in Advance,
    Bharath

    Apply trace on RAS and look for errors in the RAS logs at the same timestamp.
    These errors come for various errors and tracing RAS would give us a better idea.
    It might hapen that you observe these errors for reports which takes more than the RAS timeout to export the reports.
    Post getting the RAS logs you can try below steps if we see timeout errors in RAS logs.
    Copy clientSDKOptions.xml file from <BO install path>\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib to the machine where your app is running Open clientSDKOptions.xml and change CORBARequestTimeOut from 600000 to a value large enough to allow the report to render, for instance 1200000. Default value is 600000 (10 minutes)
    Specify the location of the clientSDKOptions.xml file at run-time. In your JSP or Java files, use the Java method setProperty from the System class. Set the system property indicated by the ras.config key to the specified directory as: system.setProperty("ras.config","c:\temp"). This function call specifies that the clientSDKOptions.xml file in c:\temp is to be used for locating RAS servers.
    Thanks,
    Prithvi

  • Error code:-2147467259 Error code name:failed

    Hi everyone,
    i am using IBM websphere studio apllication developer integration edition with crystal reports 11 release 2.
    while running jsp program i got following exception:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: The supplied keycode is not valid for this version of the Java Reporting Component---- Error code:-2147467259 Error code name:failed
    I tried but i am not able to resolve this problem.
    can anybody tell me what to do with this problem.
    Thanks in advance.

    Hi everyone,
    i am using IBM websphere studio apllication developer integration edition with crystal reports 11 release 2.
    while running jsp program i got following exception:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: The supplied keycode is not valid for this version of the Java Reporting Component---- Error code:-2147467259 Error code name:failed
    I tried but i am not able to resolve this problem.
    can anybody tell me what to do with this problem.
    Thanks in advance.

  • Error SOAP: call failed: java.io.IOException: Read timed out; HTTP 200 OK

    Hi PI gurus,
      Need some suggestions on one issue below -
      Scenario - proxy (SAP) to SOAP (Web based system)
      In the RWB Communication Channel Monitirong we are receiving the below error
      " Error SOAP: call failed: java.io.IOException: Read timed out; HTTP 200 OK"
    the request from XI system is going to target system and printing the lables (as per the functionality) with no issues but the comminication channel is giving the above error and this is causing the repeated sending the same request to target sytem and the data is printing repeateadly. This issues is occuring in Quality environment.
    Strangley the same Interface with the same connectivity details is working fine in Development environment. But not working in Quality environment. Checked the firewalls settings on both in XI and Target system side and confirmed that everything is fine.
    Below are the Logs both from Quality and developement are as follows
    Quality ( Failure Case) 
    17.03.2011 07:19:59 Success SOAP: request message entering the adapter with user J2EE_GUEST
    17.03.2011 07:25:03 Error SOAP: call failed: java.io.IOException: Read timed out; HTTP 200 OK
    Development     (Success ful)
    17.03.2011 07:27:55 Success SOAP: request message entering the adapter with user J2EE_GUEST
    17.03.2011 07:27:58 Success SOAP: completed the processing
    When we checked with basis team on user id J2EE_GUEST,  they confirmed that they are same in Development and Quality.
    I repeat,, that the same target url and everthing is same in XI Configuration
    Thanks in Advance. Points would be rewared for the best solution.
    Thanks,
    Jitender

    HI Jitender,
          If your scenariois working in DEV and if it is not working in QAS.Could you please check if both the systems are at same patch levels..
    Please refer below notes :1551161,817894,952402.
    Cheers!!!
    Naveen.

  • When I try to use firefox, I get the this message: error: App:Name not specified in application.ini

    I cannot access firefox 0n my other computer. I just get this error message: error:App:Name not specified in application.ini

    This is most likely caused by Zone Alarm software. Please check http://support.mozilla.com/en-US/questions/880170

  • Java desktop application run problem

    Hi.
    I have designed java desktop application which includes some libraries (XMLparserV2.jar, Ojdbc6.jar,xdb.jar, Orai18n-mapping,jar) with XML ini file.
    Then I have done deploy to jar. After it I relocated jar file and XML ini files to separate directory and ran javaw -jar myjarfile.jar. I can't see anything.
    Where I can see any errors ?
    Thanks for reply in advance.
    Andrii.

    Try running java -jar myjarfile.jar from the command line and see if you get any errors showing up (probably missing classes in your path)

  • Do you develop Java Desktop Applications based on netbeans RCP?

    do you develop Java Desktop Applications based on netbeans RCP?
    http://nextbridge.net/netbeans/ ,a definitive source for netbeans plugins information

    I don't. For the moment it seems too complicated. I follow the MVC pattern when the application is big and try to look at the code of successful projects.

  • Netbeans Java Desktop Application Problem

    Hi
    I have build a java desktop application via netbeans and it creates a jnlp file to execute this applets however in my project when i press a button on an applet it opens another applet and send some parameter via html file how can i do that in desktop application because it doesnt have html file it only has jnlp file ?
    Thanks

    I guess I didnt make myself clear enough,I dont want to use another applet's public methods I want to execute it
    Lets make a scenario
    assume that I have an applet a and applet b
    on applet a there is a button called open applet b and when somebody press this button applet b will be opened
    Before I was doing that like this
                URL page = new URL("http://www.xxx.edu.tr/~team5/nps/build/giris.html");
                getAppletContext().showDocument(page,"_self");but now I made the project netbeans desktop application so I dont have any html file I only have jnlp and jar files
    so what should I do to maintain opening an applet from another applet?
    Thanks

  • Questions on deploying Java desktop applications

    Hello,
    I have searched the forums and been unable to find the information I need. I am not sure this is the appropriate forum to post at but had to start somewhere!
    I have a Java desktop application which has only been used internally at my organization for R&D. We are now working with our legal folks on setting up various licensing options. The funding organization today said that they wanted the software set up such that deploying it externally would have behaviors such as:
    * preventing one CD being used to install on multiple machines,
    * preventing someone from copying the installed software from one machine to another,
    * have a way for the software to "expire" after a set amount of time.
    I have never had to deploy software externally before (nor does it seem has anyone else at my organization - we do science R&D) and am at a loss as to how to best do this. I have googled around a bit but not found any solutions. Has anyone here done this and could perhaps give me some pointers?
    Much Thanks,
    Keri

    kgoorley wrote: Hello,
    I have searched the forums and been unable to find the information I need. I am not sure this is the appropriate forum to post at but had to start somewhere!
    Given you new not only to deployment, but also
    posting to these forums, I will take the opportunity
    to point out that I let this post be for a couple of
    days since in had no Dukes assigned. To my
    eye, dukes indicate how important a question is
    to whoever asked it, and I do not generally have
    time to answer questions that are not important.
    You can add dukes to a thread at any time.
    kgoorley wrote: ..licensing options. ..
    * preventing one CD being used to install on multiple machines,
    * preventing someone from copying the installed software from one machine to another,
    * have a way for the software to "expire" after a set amount of time.
    Web start apps. are usually deployed directly off
    a server/internet site. Although deployment off CD
    is theoretically possible, it is uncommon.
    The basic answer to all your questions as asked is 'no'.
    However, if the legal people can take a slightly different
    line, and that server/site has some 'active' element to it
    (e.g. it is generated using servlets), there might be other
    options worth considering.
    The basic approach would be not to sell licenses
    per machine, but per 'use', in the sense that if
    I were to sell you a license, it would be for 'nn users',
    rather than 'nn machines'. This means that if you
    had a license for 'two' users (let's call them Bob
    and Harriet), both Bob and Harriet could use any
    PC in the organization to use the software,
    but once they were both logged in, no further
    users of the software would be allowed.
    The way to achieve this is to have the application
    'phone home' to the server and tell it the
    username(/password). Every 2-3 minutes,
    the app. should get back to the server and
    confirm it is 'still running..'. If the app. cannot
    reach the server, it reports a problem to the
    user, and exits.
    If the server does not get a 'still running' confirmation
    in a time longer than that few minutes, it assumes
    the app. is off-screen, and frees that 'licence slot'.
    The reason to keep letting the server know it is
    there, is that if Harriet were to be logged in, and
    Bob accidentally trips over the power cord and
    drops Harriet's computer in a screaming heap,
    her app. will never have the chance to 'log out'
    and inform the server to free the slot.
    As such, it is important to allow her to log-in again in
    'a few minutes' (which is probably about the amount
    of time it will take her machine to reboot, and chide
    Bob for his oafish carelessness).
    Using this system, the first & second requirements
    above become redundant - as it is not the number of
    PC's that we care about - just the number of users.
    The third requirement could easily be handled on
    the server-side, checking licenses as users
    log-in, and confirming that license is still valid.
    Edited by: AndrewThompson64 on Sep 27, 2007 7:30 AM

  • Calling a soap web service from a java desktop application

    Hi,
    Does anyone know how to call a soap web service from a java desktop application? I've seen examples using Apache Axis, but it sounds like Axis needs to run on a web server and we are trying to avoid that. My initial thought was that, "of course we need a web server", but I'm wondering if there is a way to do this without a web server.
    Any help is greatly appreciated.
    thank you,
    Julie

    If you are the consumer you don't need any web server. The web server is only needed in the provider end.
    In java 6 there is a built in framework to call web services without the need of third parties (such as apache axis)
    take a look at:
    https://jax-ws.dev.java.net/guide/Developing_client_application_with_locally_packaged_WSDL.html
    http://java.sun.com/webservices/technologies/index.jsp
    For the provider end there is also a built in http server to expose web service via HTTP without the need to
    use any external web server.
    take a look at:
    http://java.sun.com/javase/6/docs/api/javax/xml/ws/Endpoint.html

  • How to start/stop/restart a java desktop application from remote machine

    Hi,
    I want to know is there a way in java where i can start/stop/restart a java desktop application running on a remote machine through another java desktop application?
    For e.g i have an Admin console which monitors its clients based on socket communication, all of them are java desktop applications. I want to also give start/stop remote clients through my Admin console.
    I am thinking in terms of windows system service which can start/restart/stop my clients on request of Admin console, but how can i call this system service remotely?
    How can i do it?

    I got it. its about connection...

  • How to validation of textbox in Core Java(Desktop Application)?

    I am developing billing software in Core Java (Desktop Application). I want to know how to do validation of null values of textbox. and validation of other components in Core Java
    (Same as we use javascript in JSP, what do we use in Core Java?)

    Stop that.
    If you post to forum, people answer to forum.....how else will other people gain any information?

  • Open source java desktop applications

    Hi all,
    Can someone direct me to a simple open sourced java desktop application (not from java tutorial).
    I had no luck finding one myself. It seems to me there isn't many out there. I found open workbench but thats too complex for a beginner like me.
    regards,
    Sebastian

    I had no luck finding one myself. It seems to me
    there isn't many out there. You mean like Eclipse? I took me 1 ms to think of that one. I'm sure there are many, MANY more... Did you try Google?

  • Ever since I downloaded FF's v6, everytime I go to YouTube and open a video, I get an error message that says: "[Java Script Application] Error: Div is null" How do I fix this problem?

    If I go to YouTube, no matter what video I click on to watch, the error message "[Java Script Application] Error: Div is null" pops up. It started happening right after I updated to FF v6. I also have installed the latest version of Java. I submitted this question a few weeks ago, but never received a reply.
    Thanks for any help you can provide to fix this.
    Scott Cromwell
    [email protected]

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • I'll appreciate your suggestions as Firefox is not opening. A window warns: "XULRUNNER. Error: App: Name not specified in application.ini"

    When trying to open Firefox a small warning window labeled XULRUNNER is appearing, with the text: "Error. App: Name not specified in application.ini", and an "accept" button. When you click in "accept" the warn ing window closes, but then nothing more happens.
    I have no idea what is going on. Any ideas?

    This is most likely caused by Zone Alarm software. Please check http://support.mozilla.com/en-US/questions/880170

Maybe you are looking for