Not able to open a webi document in java

final String CMS = "pundl10492:6400";
          final String userID = "administrator";
          final String password = "";
          final String auth = "secEnterprise";
          IEnterpriseSession enterpriseSession = null;
          try
               ISessionMgr mySessionMgr = CrystalEnterprise.getSessionMgr();
               enterpriseSession = mySessionMgr.logon(userID, password, CMS,auth);
               System.out.println("Session created : "+ enterpriseSession.toString());
               if (enterpriseSession != null)
                    IInfoStore iStore = (IInfoStore)enterpriseSession.getService("InfoStore");
                    ReportEngine reportEngine = (ReportEngine)enterpriseSession.getService("WebiReportEngine");
                    final String query = "SELECT SI_ID, SI_NAME FROM CI_INFOOBJECTS WHERE SI_KIND = 'Webi' " +
                                                  "and SI_NAME like '%Least Accessed Documents%'";
                    IInfoObjects objInfoObjectsWIDs = (IInfoObjects) iStore.query(query);
                    IInfoObject objInfoObjectWID = (IInfoObject) objInfoObjectsWIDs.get(0);
                    int docId = objInfoObjectWID.getID();
                    System.out.println("docID : "+docId);
                    DocumentInstance doc = reportEngine.openDocument(docId);
                    FileOutputStream l_fos= null;
                    String fileName = "morcom" + "_" + userID+ "."+"xls";
                    l_fos = new FileOutputStream("D:\\_workarea\\MORCOM_POC\\reports\\"+fileName);
                    BinaryView docBinaryView = (BinaryView)doc.getView(OutputFormatType.XLS);
                    byte[] b = docBinaryView.getContent();
                    l_fos.write(b);
                    System.out.println("File created");
          catch(Exception e)
               e.printStackTrace();
I am trying to open a document and the code iam using is given above. I am using BO XIR3 and i get
Exception in thread "main" java.lang.NoClassDefFoundError: com/crystaldecisions/celib/trace/h
     at com.businessobjects.sdk.plugin.desktop.webi.internal.d.<clinit>(Unknown Source)
     at com.businessobjects.sdk.plugin.desktop.webi.internal.WebiFactory.makePlugin(Unknown Source)
     at com.crystaldecisions.sdk.occa.pluginmgr.internal.PluginMgr.getPluginInterface(PluginMgr.java:291)
     at com.crystaldecisions.sdk.occa.infostore.internal.InfoObjects.continueUnpack(InfoObjects.java:409)
     at com.crystaldecisions.sdk.occa.infostore.internal.InfoObjects.startUnpack(InfoObjects.java:361)
     at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.queryHelper(InternalInfoStore.java:712)
     at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.query(InternalInfoStore.java:566)
     at com.crystaldecisions.sdk.occa.infostore.internal.InfoStore.query(InfoStore.java:167)
     at BOTest.main(BOTest.java:42)
error at this line:-
     IInfoObjects objInfoObjectsWIDs = (IInfoObjects) iStore.query(query);
Can anyone give a code snippet for opening a webi document in release3. The same code works in release 2.
Thanks
Shruti

You have a "NoClassDefFoundError", so a code snippet won't help.
XI Release 2 -> XI 3, then jar files have been renamed and object files refactored.
You've ended up with mixed XI Release 2 and XI 3 jars.  
Remove your jars and re-add from XI 3.
Sincerely,
Ted Ueda

Similar Messages

  • Safari Not Able to Open .Mac Web Gallery

    This is a very unexpected error. A friend sent me his web gallery link and Safari is not able to open the page. An error message appears:
    "This browser is incompatible with .Mac Web Gallery.
    We support the following browsers:
    Mac OS X
    Safari 2.0 or later (requires Mac OS X 10.4.10 or later)
    Firefox 1.5 or later"
    Now that is very unexpected because I'm using OS X 10.5.1 and Safari 3.0.4. Wouldn't you know that I can launch it just fine using Firefox. I don't want to use Firefox and thought I would be able to use an Apple product (Safari) to actually open Apple technology (web gallery).
    This is the only issue I've experienced after Leopard upgrade and the most annoying. I've provided Safari Bug feedback, but I don't expect a response.
    I'm looking for someone out there to help me through this issue. Otherwise, I hope Apple is listening. Don't give me a reason to switch back to FireFox.

    Hi,
    From previous postings here it seems to be a problem with the .Mac Gallery rather than Safari. Anecdotal reports seem to suggest there is insufficient bandwidth on those servers and when they get bogged down they mis-report the error message you saw.
    Check in the [.Mac Web Gallery|http://discussions.apple.com/forum.jspa?forumID=1199] forum to see if they have some more concrete information.

  • Not able to open an older document in version 3.5

    Since i have upgraded numbers to version 3.5 i am not able to open an older numbers-document. I get the message to get a newer numbers-version. What´s wrong?

    Hi Ma,
    You may be trying to open your document in Numbers 2.3. Checkout Wayne's tip Need newer version of Numbers to open file.
    quinn

  • Not able to open secure web pages

    Hi Members,
    Their seems to be some problem with my internet. I hope i can get some answer to it. After i had my firmware update for my macbook (leopard 10.5.2 combo updated), it became very slow and gave me kernel panic. Last week i had to format my HDD and re-installed Mac OSX. Now i see some very serious problem. Neither i can use my macbook to log in to dicussion forum and not able to open any secure websites like facebook.com, hi5.com and microsoft.com and support.apple.com. Its pulling my nerves.
    Kindly Help.
    Regards
    Vikram

    Thank you so much for the helpful information. Let me tell you in brief...
    "Hi,
    It has been an ongoing problem with my mac book. I have to use a PC to log in to my discussion forum to know about my questions. I am using a macbook (leopard 10.5.2 combo updated) and i had done a complete re-installtion of the Mac OSX as i had a kenel panic after i had created another account to check the problem with safari (as on a telephone call with apple support). Then i am not able to log into my account even on .mac account too. I had firefox but i had to do too much of "forced quit" when i had to close. Even my "SENDING ERROR REPORTS" FAILS everytime.
    All this started when i had some software updates from the website. How can i get rid of this problem. Further, while using any pc on the same network, i have the same problem. Is it a hardware / Mac OS software related problem or the Network (ISP) related problem....
    Plzzzzzzzzzzzzzzz Help. "

  • I am not able to open any PDF documents, what I just see is blank screen in new tab.

    I am not able to open any PDF link in Firefox(I downloaded and installed latest version) but able to open easily in other browsers.

    I have seen that same complaint a lot in this forum, and I don't know how to fix this.  Download the PDF to your local disk, then open it from there.
    Alternatively use a different browser like Firefox.

  • I am not able to open any web site. I get an "Unable to load page" message.

    Firefox crashed last night. When I tried to reopen, it gives me "unable to load page" error. I tried several websites and same message. I removed firefox and re-downloaded it. Same thing.

    Still not able to open sites.

  • PC users not able to open my TextEdit documents

    I'm the secretary for a non profit org and when I try to send my minutes to other members (which I type up in TextEdit) they can't open them or they're in some garbled format. I have a Word 2004 test drive and when it expires I can buy it for around $300! Ouch! I thought when I purchased iWork with my computerI would be able to do documents with it and send them to my PC friends... no such luck? Any inexpensive answers?
    iMac w/intel   Mac OS X (10.4.5)  

    TextEdit comes with Mac OS X and is separate from iWork.
    You should have little trouble exchanging basic text documents with your Windows counterparts if you use TextEdit. How are you saving your documents? When you save the first time, are you saving as the default RTF document type or have you tried saving as a Word document (.doc)? In your "Save As" window, you should see a drop down menu called "File Format:" where you can choose Word format.
    Be sure to stick with basic fonts such as Arial or Times. These are most likely to be on the Windows machines as well.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.5)  

  • We are not able to open ms-office 2013 two word simultaneously

    Hi Support,
    We are using MS-office 2013.We are not able to open the Two word document simultaneously at a time and sometimes it is showing pop in  word and not able to open the pop-up word document.
    Pls. share your ideas.
    Regards
    Pradeep.R

    Hi Charles,
    The way which i posted the question is not so clear.I want clarification in MS-Office word 2013.
    I have opened the fresh word 2013 and working on the word to prepare some documents.
    When i try to open the another saved word document it is overlapping one after another and the second word document showing blinking message and not able to open the second document.It is closing the second word document automatically.I can able to work
    with only one opened document and not able to open multiple word documents at a same time.
    The second question is How many word documents can be opened in a computer at a same time?Our work is based on word document only.  some of the users are opening the different word documents in the same computer minimum six or seven word documents 
    and working on the same.
    Suppose if we are opening and working with  multiple word & excel file at a same time whether it will affect the system slow?
    Looking forward for your reply at the earliest.
    Regards
    Pradeep.R
    Addressing number that can be open at once...
    This is a function of available RAM and hard drive space (although if you get into memory paging you really can slow down). It depends on the document size and also on processor speed. I have had 30 documents open at once. I often use Excel and Word at the
    same time. The more you have open, the slower your system will be, although it may not be noticed until you push the limits.
    Charles Kenyon Madison, WI

  • I Not able to open saved pages in safari 8.0.3

    I Not able to open saved web pages of safari in safari 8.0.3. Everytime i try to open a file it directly takes me to the TOP Sites page.... I am also not getting a option to reset safari.
    Please help!!

    1. Safari > Preferences > Extensions
        Turn those off and relaunch Safari.
        Turn those on one by one and test.
    2. Use  free  AdwareMedic to remove adware
        http://www.adwaremedic.com/index.php
       Install , open,  and run it by clicking “Scan for Adware” button   to remove adware.
       Once done, quit AdwareMedic.

  • Not able to open office documents from SharePoint site using Forms auth on a Mac with Office 2011

    I posted the same question on the Mac Office forum (http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macstart/not-able-to-open-office-documents-from-sharepoint/7fba517b-ebd1-4e90-a54a-c70c5f035146?tm=1418836613595) but figured it's probably more
    of a SharePoint question so I'm going to try here as well.
    We just discovered an issue where a user logs into a SharePoint site using Forms based authentication.  When clicking on an Office file they get
    'Sorry, this site hasn't been shared with you' message:
    The user can download the file and can also open the file within the browser (Office Web apps).  This SharePoint site is on a Web app that uses mixed authentication (forms for external partners) and Windows/Kerberos for internal employees.
     When logging into this same site as an internal user I am able to open the file just fine.
    I checked the 'Microsoft Document Connection' settings and selected and deselected 'Enable Basic Authentication' and neither helped.  
    I also tried to add the site URL under 'Microsoft Document Connection' -> Add connection -> Connect to a SharePoint site.  When I put the site URL in and click 'Connect', I get an error saying that 'Only connection to SharePoint or OneDrive
    servers are supported' message.  If I try the same thing as an internal user using Windows/Kerberos authentication I am able to connect to the site just fine.
    Any ideas??

    Hi Szamir,
    As you are using Form Based authentication to open the documents from SharePoint site, I recommend to check the things below:
    Make sure that the user has permission to view the documents in the site.
    Please select "Sign me in automatically" when you sign in the login page.
    More references:
    https://social.technet.microsoft.com/Forums/en-US/ae8cc886-c362-4709-8575-07d339144714/not-able-to-open-microsoft-office-documentsdocxxls-etc-from-document-library-in-a-fba-site-in?forum=sharepointgeneralprevious
    http://manojvnair.blogspot.com/2011/06/login-prompt-while-opening-office.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Not able to open adobe XI Pro after I have filled out a documents and trying saving it. The program stops working & won't open up again.  Tried to complete a repair, rebooting nothing works. Help please.

    Not able to open adobe XI Pro after I have filled out a documents and trying saving it. The program stops working & won't open up again.  Tried to complete a repair, rebooting nothing works. Help please.

    Hi,
    Can you pls. provide more details of the issue?
    OS/Platform
    It would be great if you can provide the MSI logs for repair from the %temp% directory.
    Thanks,

  • Not able to open web analysis reports after upgradation

    we have upgraded Hyperion 11.1.1.3 to 11.1.2.2 version, after this process we are not able to open web analysis reports
    These reports are still pointing to old servers so, how to edit this database connection details in the new version??
    Edited by: 1007326 on May 22, 2013 3:29 AM

    Hi,
    Welcome to Forums...!
    I think we need to change the database connection details in the Web analysis.
    goto file --> Edit --> browse the database connection then change the server name in the connection details.
    may be this will help to resolve your issue.
    Thanks,
    mady

  • I'm not able to open documents saved from the internet.

    I'm not able to open documents saved from the internet. I'm using a macbook pro en Adobe Acrobat X 10.1.10. I tried: file - export als PDF and save as PDF, none of this works. I always receive a message stating an error and saying that I need to go back to the original file what I did without result. Does anyone have (or had) the same problem?

    What they mean is iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html

  • I have ebook in epub format. I was using it in Windows XP. However, recently I rebooted my system to Windows 7. Now I am not able to open it in Adobe Digital Edition. It gives an error saying "Document is licensed for a different user account". Can please

    I have ebook in epub format. I was using it in Windows XP. However, recently I rebooted my system to Windows 7. Now I am not able to open it in Adobe Digital Edition. It gives an error saying "Document is licensed for a different user account". Can please someone give me a solution for this. the book is expensive and i don't want to lose it. Please help.

    I have ebook in epub format. I was using it in Windows XP. However, recently I rebooted my system to Windows 7. Now I am not able to open it in Adobe Digital Edition. It gives an error saying "Document is licensed for a different user account". Can please someone give me a solution for this. the book is expensive and i don't want to lose it. Please help.

  • I am not able to open the iCloud calendar on the web

    I am not able to open the icloud Calendar on the web

    Welcome to the Apple community.
    Have you tried restarting your web browser, if that doesn't help you might try emptying your web browser's cache.

Maybe you are looking for