Exception in openDocument call - SDK for Java

Hi,
Getting exception in openDocument call to get object of type DocumentInstance. Snippet -
IEnterpriseSession eSession=(IEnterpriseSession)session.getAttribute("EnterpriseSession");     
if ( eSession != null)
     ReportEngine webiRepEngine = (ReportEngine) eSession.getService("", "WebiReportEngine");
                webiRepEngine.setLocale(request.getLocale().getLanguage());
     session.setAttribute("ReportEngine", webiRepEngine);
               String searchID = "149729";
               query = "SELECT SI_ID, SI_NAME, SI_PARENTID,"
     + " SI_KIND, SI_INSTANCE, SI_DESCRIPTION FROM"
     + " CI_INFOOBJECTS WHERE SI_PARENTID = " + searchID;
              try
      IInfoStore localInfoStore = (IInfoStore)session.getAttribute("InfoStore");
      list = localInfoStore.query(query);
     catch(Exception sdke){
          System.out.println("query exception - " + sdke);
                DocumentInstance doc = null;
                ReportEngine repEngine = (ReportEngine)session.getAttribute("ReportEngine");
                for (int reportCnt = 0; reportCnt < list.getResultSize(); reportCnt++)
          IInfoObject document = (IInfoObject) list.get(reportCnt);
                                doc = repEngine.openDocument(document.getID());
In the logs I can see correct value of 'document.getID()' for the corresponding document. However at the call - openDocument(document.getID()), exception -
Web Intelligence cannot perform the intended action on this document. (Error: WIS 30650)
Am I missing something in above code?
Any help will be greatly appreciated.
Thanks
-A
Edited by: aditya gaurav on Aug 15, 2008 10:25 PM
Edited by: aditya gaurav on Aug 15, 2008 10:30 PM

Thanks for the reply Ted.
Iterating only through documents with parent ID as a specific ID (as in the 'query'). Currently in our environment, it returns 2 ID's (for 2 files as present in the infoview) and hence looping twice to get these 2 files.
To rule out the probability of checking on invalid document ID (under the call openDocument(docID) ), even tried hard-coding the document ID (to the value as seen in infoview). And still the error continues.
Can it be something related to configuration of BO server?
-A

Similar Messages

  • Use vCloud SDK for Java to integrate with vCD 5.6

    Hello Folks,
             Newbie here.
             I have a situation where a home grown app, that uses vCloud SDK for Java to invoke a vCloud Director 5.1 installation. We use this for powering on/ off a few VMs.
             Our installation is being upgraded from vCloud Director 5.1 to 5.6.
             My question is, are we expected to upgrade/ carry out any code changes to our current implementation to integrate with the newer runtime version (5.6)?
             Many thanks in advance.
    Regards
    Mohan

    Somewhat going from memory here.
    As long as the REST API Versions URL states that it is compatible with 5.1, then you should be fine to make the calls as v5.1.
    Here is the section of the documentation for that:
    Using the vCloud API with vCloud Director
    The I think the SDKs are just wrappers in a manner of speaking.  They all eventually translate code (java/python/etc) into a REST API system that is sent into vCloud Director via the API.  For the most part, I think it'll work.
    That's not talking about "support", just that it should work with some exceptions.  I don't know if there is an official stance on cross compatibility like this.

  • Azure SDK for Java on Mac/Linux

    I need to develop a part (communication with Service Bus) of a solution in Java (normally I use C# for development) on Mac/Linux. Can I just use the microsoft-windowsazure-api-0.4.6.jar file of the Azure SDK for Mac/Linux in my project, because I don't
    use Maven?
    Thanks.
    Guy

    When trying out some code using the Windows Azure SDK for Java (on a Mac) obviously just adding the jar to my project and adding it to my build path isn't just enough. I get error messages such as:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at com.microsoft.windowsazure.services.core.Configuration.<clinit>(Configuration.java:48)
    at com.microsoft.windowsazure.services.serviceBus.ServiceBusConfiguration.configureWithWrapAuthentication(ServiceBusConfiguration.java:88)
    at xx.yyy.zzzz.aaaaa.ServiceBusClient.<init>(ServiceBusClient.java:20)
    at xx.yyy.zzzz.aaaaa.Main.main(Main.java:7)
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 4 more
    When clicking e.g. on Configuration.java:48 I get: Source not found.
    The JAR file microsoft-windowsazure-api-0.4.6.jar has no source attachment.
    What am I missing. Thanks for your help.

  • What's the difference between Netscape SDK for Java & JNDI?

    I know I can use either JNDI or Netscape SDK to access iDS. So whats their differences basically?
    Why would I need JNDI/Netscape SDK if I can just use either of them to access iDS?
    Thanks!

    Netscape SDK for JAVA developed only for iplanet Directory Server but JNDI for any directory server.
    JNDI has classes provided by Sun that will help your application interact with an LDAP server.JNDI applications work similarly to JDBC applications - write applications once and be free to use "drivers" from different vendors. Sun provides the "driver" that will help interact with the LDAP server. Sun also provides "drivers" for other naming services (like CORBA, Netscape).
    The Java Naming and Directory Interface (JNDI) allows Java applications to use a single set of methods to access multiple naming and directory services such as LDAP and NIS.
    JNDI is a Java API that provides a common way for programmers to access a variety of naming and directory services. The API consists of several packages:
    javax.naming for naming operations (access entries)
    javax.naming.directory for directory operations (access attributes)
    javax.naming.event for requesting event notification
    javax.naming.ldap for LDAP-specific features.
    JNDI operates through a layer of software called a Service Provider. The Service Provider implements the JNDI operations in terms of a particular underlying protocol.
    JNDI's Service Provider Interface (SPI) allows you to select Service Providers at runtime. In many cases you can use the same JNDI methods regardless of whether the Service Provider is talking to an LDAP server or using another protocol such as NIS. In order to access all of the functionality of the LDAP protocol, however, you will have to use methods outside of this abstraction.

  • Porting from JDK 1.2.2 to MS SDK for Java 4.0 - Help!!!

    Hi All!
    My company is developing big project using WLS 4.5.1. + JDK 1.2.2 + Java
    Plug-In 1.2.2 on clients. A lot of applied code depend on Java 2 APIs,
    javax/swing is actively used as well. But the customer decide to use
    Microsoft VM both on server and client sides - they have support contract
    (for other products) with MS and MS may decide to cancel support if our
    customer will use Sun JDK and Sun JVM.
    So, I have to try to port all project to MS SDK for Java and the question
    is: Do I have a chance not to rewrite 100% of my code?
    Somewhere I read: ":I've downloaded the new MS Virtual Machine
    (msjavx86.exe) that should be compatible to Java2:" - is it really so? Does
    anybody knows if MS will support Java 2 platform specifications? As I found
    at MS, latest MS JDK 4.0 (on which WLS 5.1 can run) meets specification of
    Java 1.1 and after installing it I found that I must rewrite about 90% of my
    code. Can someone clarify the situation with MS JDK?
    Thanks in advance,
    Andrey Bogush
    PS: Any information, links, documents, overviews on how to persuade the
    customer to use Sun JDK and JVM against MS one are VERY and STRONGLY welcome

    Andrey Bogush wrote:
    >
    Hi All!
    My company is developing big project using WLS 4.5.1. + JDK 1.2.2 + Java
    Plug-In 1.2.2 on clients. A lot of applied code depend on Java 2 APIs,
    javax/swing is actively used as well. But the customer decide to use
    Microsoft VM both on server and client sides - they have support contract
    (for other products) with MS and MS may decide to cancel support if our
    customer will use Sun JDK and Sun JVM.MS can cancel their support if they use Sun's JDK! That's an
    "interesting" clause in your support contract.
    >
    So, I have to try to port all project to MS SDK for Java and the question
    is: Do I have a chance not to rewrite 100% of my code?
    Somewhere I read: ":I've downloaded the new MS Virtual Machine
    (msjavx86.exe) that should be compatible to Java2:" - is it really so?I don't believe any versions of Microsoft's JVMs support Java2.
    Personally, I think it would be a big waste of time to port working
    Java2 code to JDK 1.1 just to run MS's JVM.
    -- Rob
    Does
    anybody knows if MS will support Java 2 platform specifications? As I found
    at MS, latest MS JDK 4.0 (on which WLS 5.1 can run) meets specification of
    Java 1.1 and after installing it I found that I must rewrite about 90% of my
    code. Can someone clarify the situation with MS JDK?
    Thanks in advance,
    Andrey Bogush
    PS: Any information, links, documents, overviews on how to persuade the
    customer to use Sun JDK and JVM against MS one are VERY and STRONGLY welcome

  • SonyEricsson SDK for Java ME - version 2.5.0.2 - Where?

    Hi. I'm looking for a SonyEricsson SDK for Java ME, and I need its version 2.5.0.2 (for p1i on-device debug). But only 2.5.0.3 can be downloaded from developer.sonymobile.com. I've looked for it on google, but I haven't found. Does somebody have this version? If you have it, or you know a download link, post me, please. Thanks!

    I've had a look but that version doesn't seem to be available for download anymore, either on Sony's developer world site, or anywhere else. I suggest you contact Sony and see if they can help you:
    http://www.sonymobile.com/global-en/support/contact-us/

  • Call Specs for Java Classes

    I have loaded some interdependent java classes in Oracle
    successfully, Not sure about how to write call specs for
    these as one method of class A needs an object of class B as
    input parameter.
    TIA
    PM

    A silly thought just occurred to me. Wouldn't it be
    great to have a dictionary of baby names for java
    classes? I sometimes have a hard time coming up with
    a name for a new class. You know, something other
    r than Foo. Be great if I could just look up some
    suggestions for the kind of thing I'm doing...okay
    back to work.What? I'd rather have a name which is related to what the class does. It doesn't make sense to call e.g. a Date class Jim.
    Kaj - not a class

  • Ebusiness Suite SDK for Java session management

    Hi, I am trying to try sample java application mentioned in Oracle® E-Business Suite Software Development Kit for Java Release 11i and 12 Part No. E28169-02
    Current version i am trying is Jdeveloper 11.1.1.4.0 and Ebiz suite 12.1.3
    able to create Apps Data source with out any issue.
    when Home.jsp is accessed through application menu, user name and all session related information is showing as NULL.
    how to resolve this issue.

    Hi Shay,
    I gone through the webinar.
    Here is more explanation of my issue.
    I created Apps Data source earlier. That time i registered external node in ebusiness suite with node_name as ip_address of weblogic server.
    But that time session details came as Null on sample Java application.
    Then i realized that may be the issue and corrected registration of external node and corrected ebiz profile options accordingly.
    When i tried to create Apps data source with fresh dbc file, i got into invalid username/pwd issue.
    As per following forum discussion topic, hyphen and dots in host name will cause issue with Apps data source creation, which is confirmed by couple of discussion participants and Juan also.
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2489849&start=30&tstart=0
    My weblogic host name is like WL-SOADEV-01.domainname.com
    what should be my further actions to resolve this issue.
    Thanks
    Maheedhar.J

  • Microsoft SDK for Java

    Well i am new at Java but i found it necessary to convert some libraries i made previously in C++ that deals with various aspects in the WIN2k server ... when i tried to do this in java i wasn't able to access win32api ..( unless building my virtual machine :)) ). so i searched and found that the microsoft VM supports alot of intresting stuff like J/direct and win32 api access and the WFC ...
    so as i won't use java ( at least at this point) in development for other OSes i wanted to know how could i use the MSVM in development . and if the sdk is legal or it is still under the 7 year treaty or what ...
    if it isn't feasable how could i access DLL files on windows and api (regardless of what is written in Core Java Volume 2)

    You'd better go on JNI side:
    1. ms jvm is going to be less and less supported
    2. j/direct is not the standard way to call native code
    3. if you're planning to port your code on another platform, you will use the same java code and rewrite the native part as needed.
    I've used JNI and can tell you is very simple to use, specially if you're an experienced c/c++ programmer.
    Good start points:
    http://java.sun.com/docs/books/tutorial/native1.1/index.html
    http://java.sun.com/products/jdk/faq/jni-j2sdk-faq.html
    Hope it helps

  • Java Software Development Kit (SDK) for Java 6 on Leopard.

    Does anyone know if the Java Software Development Kit (SDK) comes with Leopard, or if one needs to sign up for an Apple developer account to obtain it?
    I typed the following command on the Terminal command line: 
        javac
    The output of that command was:
    Usage: javac <options> <source files>
    where possible options include:
      -g                         Generate all debugging info
      -g:none                    Generate no debugging info
      -g:{lines,vars,source}     Generate only some debugging info
      -nowarn                    Generate no warnings
      -verbose                   Output messages about what the compiler is doing
      -deprecation               Output source locations where deprecated APIs are used
      -classpath <path>          Specify where to find user class files
      -cp <path>                 Specify where to find user class files
      -sourcepath <path>         Specify where to find input source files
      -bootclasspath <path>      Override location of bootstrap class files
      -extdirs <dirs>            Override location of installed extensions
      -endorseddirs <dirs>       Override location of endorsed standards path
      -d <directory>             Specify where to place generated class files
      -encoding <encoding>       Specify character encoding used by source files
      -source <release>          Provide source compatibility with specified release
      -target <release>          Generate class files for specific VM version
      -version                   Version information
      -help                      Print a synopsis of standard options
      -X                         Print a synopsis of nonstandard options
      -J<flag>                   Pass <flag> directly to the runtime system
    I would like to use Java version 6.

    Hi John,
    I sort of remember Java 6  being IntelMac only...
    Once you’ve gotten logged in, go to Downloads, select “Java” on the right hand side of the page, and download the Java SE 6 beta. Note: this is only available for Intel Macs running Tiger or Leopard — if you’ve got a G4 or G5, you’re out of luck right now
    http://www.metaphoriclabs.com/articles/installing-java-6-on-mac-os-x/
    But here they are...
    http://ituploads.com/apple/macintosh-os-x-java-jdk/
    Can I do Java 6 development in OS X?...
    http://stackoverflow.com/questions/739418/can-i-do-java-6-development-in-os-x

  • Help on Directory SDK for Java

    Hi
    I work using LDAP Directory SDK, i have a requirement to compare two LDIF files or compare an LDIF file with a directory subtree and provide a new LDIF which is having only changes.
    Is there any resources available on this ?
    Swaraj

    Is there anyone who could answer this one ?
    Swaraj

  • Calling ant from java

    public static void main(String[] args) {
              String arr[] = null;
              arr = new String[2];
              arr[0] = "-buildfile";
              arr[1] = "C:\\workspace\\my projects\\ANTTASKS\\bin\\build.xml";
              try {
                   Launcher launcher = new Launcher();
                   launcher.main(arr);     
              } catch (Exception e) {
                   System.out.println(e.getMessage());
                   // TODO: handle exception
    I tried calling ant from java. But the problem is that, i am not sure how to get the handle of error & input stream from this.
    I also need to know how do I kill the ant executable if there is some kind of exception like ConnectionTimeOut or is there any some kind of timeout mechanism.
    Earlier i was calling ant as an external process like Process P = new Process(), where p.execute("ant.bat xxxxx"). I used to get the error & input stream from the process itself.
    Please help!!!
    thanks

    A better approach would be to use the classes provided in Ant. The API documentation for Ant has all the necessary information.
    The sample code would look like:
    Project ant = new Project();
    ProjectHelper helper = new ProjectHelperImpl();
    ant.init();
    helper.parse(ant, new File("build.xml"));
    ant.executeTarget("clean");

  • Apple download for JAVA still won't download JAVA web site material.

    Since downloading Mountain Lion OSX 10.8.3 (12D78) I cannot get anything to download that requires Java like "Wolfgang's Music Vault". I know Apple doesn't support JAVA anymore with Mountain Lion but as recommended I have downloaded the so called Apple for Java 7 update 25 download about 50 times to enable it to do so.  The download still don't happen for Java.  JAVA never shows up as an application, though it shows it did download. HELP

    There are a few things you might want to check. 
    First of all, did you go to your downloads folder and double click on the installer to install the update?  You mentioned that you downloaded it but never stated whether you installed it. 
    You may also want to check your Safari browser to make sure Java is enabled (Safari>Preferences>Security).
    If you need Java 6, you may want to try this: http://support.apple.com/kb/HT5559
    I hope that helps!

  • How to use Barcode for Java

    First of all, If this is the wrong forum to post this, please tell...
    Now to the bussines:
    Surfing through the web I found something called Barcode For Java, and my question is how to implement in java, how to use it in a program, what's the purpose of it.Also if this is compatible with EasyEclipse for Java 1.3.1
    Any help would be appreciated, thanks

    Now let me get this straight.
    -- You don't know what this is
    -- You don't know what it's for
    -- You don't know how it's used
    So WTF do you know that makes you want to use it?
    db

  • What is the Opendocument syntax for java SDK -BOXI3.1

    Hi,
    We are using java sdk for BOXI3.1 to open the reports from J2EE Screens.
    Earlier we have used below syntax for opendocument in BOXIR2, it worked fine. Now our client is migrated to BOXI3.1 same URL syntax is not working.
    BOXIR2 we have used below syntax to open the webi reports from J2EE screen:
    URL: "http://" + CMS + ":8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?" + "iDocID=" + webiID + "&sType=wid&sWindow=Same&token=" + token;
    Please help in this regard.

    The URL path and such has changed.
    Here is a pdf for [XI 3.1 URL Reporting|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]
    Jason

Maybe you are looking for

  • ICal month view won't show some of my appointments.

    Hello guys! I've updated do Lion and bought an iPod touch 4g. Everything is working fine, except for the month view on my Mac Book Pro, some of my appointments won't show up for me. The appear on Day view and Week view. Any ideas?

  • Print out of production order from co02

    Hi All,   How do I take a print out of production order from co02. If I go to co02- Functions-Print- I get an error that after the next update the order will be printed. Since the production order is already in the released state how do I take the pr

  • Add / Put  Log4j messages in JTextField

    Hi All, This is the first time I am posting any messages to any forums . Hope someone may reply soon . My Problem is how to add log4j messages to the Swing Jtextfield. How to use LF5Appender to add the messages to swing component. I have tried many t

  • New to FF-consul errors-need to talk with someone for help PLEASE

    I am brand new to computer and to Mozilla FF.Total i rec'd about 60 error msg ERROR CONSOL. There are so many,I don't know what you need. I use FF 3.6.10 updated 10/1/10. I updated Adobe Flash to 10,0 on 9/29/10. I see that Adobe crashed. I do not un

  • Problem with arabic in j2me!!!!

    hi all, i was developing a midlet that displays some arabic text , but it didn't neither on the real device nor the emulator, i got ???? instead, i finally found out that the problem isn't with the device nor the emulator but with the j2me itself coz