BO 4.1 Universe Metadata extraction using Java SL SDK

We are building an application using the SL SDK and are trying to extract the metadata from the Universe (like list of classes, dimensions, measures etc). We are able to connect to the server, retrieve the universe to the local machine; however, when we try to load the retreived local universe, we are facing an excception and not sure on how to proceed on the same.
     Below is the code snippet and the exception.
//Java code that caused the exception
RelationalBusinessLayer businessLayer = (RelationalBusinessLayer) local.load("E:\\Universe\\retrieval-2014-03-10-17-29-22\\eFashion_bl.blx");
System.out.println("Description-->"+businessLayer.getDescription());
//After setting the path and the required class path in the Command Prompt while executing the java file as below
java -cp "E:\Program Files (x86)\SAP BusinessObjects Enterprise XI 4.0\SL SDK\java\sl_sdk.jar;E:\Program Files (x86)\SAP BusinessObjects Enterprise XI 4.0\java\lib;E:\Program Files (x86)\SAP BusinessObjects Enterprise XI 4.0\java\lib\*;E:\Program Files (x86)\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\java;E:\Program Files (x86)\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\java\*;" UniverseBo -Dbusinessobjects.connectivity.directory="E:\Program Files (x86)\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer"
     The following Exception occurred.
//Exception
Exception in thread "main" java.lang.UnsupportedOperationException
        at com.businessobjects.connectionserver.ConnectionServer.getInstance(ConnectionServer.java:165)
Any pointers to the problem and suggestions are appreciated.
Thanks,
Prasanna R

Hi Prithvi,
     We are trying to extract metadata through java sdk from BO 4.1,we had been able to extract the data upto class level but can not proceed further to extract data related to the objects such as "measures,"dimensions","filters",etc from a class as we can't find suitable methods to do so.Please have a look to the following code snippet:-
RelationalBusinessLayer businessLayer = (RelationalBusinessLayer) local.load("D:\\Universe\\retrieval-2014-03-17-15-47-46\\eFashion4.blx");    //loading local blx file
RootFolder rf =businessLayer.getRootFolder();
List<BlItem> getchildren=rf.getChildren();   //would return list of classes
Now we intend to extract objects(filters,dimensions,measures) from each of these BlItems.
Please help.
Regards,
Ashwani.

Similar Messages

  • BO 4.1 WEBI Metadata extraction using Java Restful Webservice

    Hi
    We are building an application using the Restful webservice and are trying to extract the metadata from the webi report.
    Whether there is any URL to retrieve Query filter in web Intelligence Report.
    Please help.
    Regards,
    Kavitha S

    Assuming this is a BEX query, you may want to check p. 296 in the following; SAP Web Intelligence RESTful web service SDK User Guide, SAP BusinessObjects Business Intelligence platform 4.1
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • I need help using Java 2 SDK

    I have just downloaded and installed Java 2 SDK but I don't know how to use the feature to write Java or compile it yet, can someone help me. Thanks

    Hello sannguyen,
    There are many Java online tutorials. I suggest that you start with 'New-to-Java Programming Center' at the following address:
    http://developer.java.sun.com/developer/onlineTraining/new2java/
    -Merwyn,
    Developer Technical Support,
    http://www.sun.com/developers/support.

  • How to create a subreport link programmaticly using java RAS sdk

    Hi,
    I want to create subreport link for couple of main report parameters programmaticly using RAS sdk.
    Main report has Param1 and Param2. I need to link these parameters to sub-report which doesn't have any parameters, so I can pass the parameters value just once when running the report and consume it's value in the sub-report.
    Below is the code I tried but I get "Invalid field name"error when I try to save the main report.
    ISubreportClientDocument subReportDoc = subReportCntrl
                      .getSubreport(subReports.getString(i));
    SubreportLinks srLinks = subReportCntrl.getSubreportLinks(subReports.getString(i));
    SubreportLink subRptLink1 = new SubreportLink();
    Fields paramFields = reportClientDoc.getDataDefinition().getParameterFields();
    subRptLink1.setMainReportFieldName(paramFields.get(0).toString());
    subRptLink1.setSubreportFieldName(paramFields.get(0).toString());
    SubreportLink subRptLink2 = new SubreportLink();
    subRptLink2.setMainReportFieldName(paramFields.get(1).toString());
    subRptLink2.setSubreportFieldName(paramFields.get(1).toString());
    srLinks.add(subRptLink1);
    srLinks.add(subRptLink2);
    subReportCntrl.setSubreportLinks(subReports.getString(i), srLinks);
    Thanks,

    Hi,
    I want to create subreport link for couple of main report parameters programmaticly using RAS sdk.
    Main report has Param1 and Param2. I need to link these parameters to sub-report which doesn't have any parameters, so I can pass the parameters value just once when running the report and consume it's value in the sub-report.
    Below is the code I tried but I get "Invalid field name"error when I try to save the main report.
    ISubreportClientDocument subReportDoc = subReportCntrl
                      .getSubreport(subReports.getString(i));
    SubreportLinks srLinks = subReportCntrl.getSubreportLinks(subReports.getString(i));
    SubreportLink subRptLink1 = new SubreportLink();
    Fields paramFields = reportClientDoc.getDataDefinition().getParameterFields();
    subRptLink1.setMainReportFieldName(paramFields.get(0).toString());
    subRptLink1.setSubreportFieldName(paramFields.get(0).toString());
    SubreportLink subRptLink2 = new SubreportLink();
    subRptLink2.setMainReportFieldName(paramFields.get(1).toString());
    subRptLink2.setSubreportFieldName(paramFields.get(1).toString());
    srLinks.add(subRptLink1);
    srLinks.add(subRptLink2);
    subReportCntrl.setSubreportLinks(subReports.getString(i), srLinks);
    Thanks,

  • Using java 2 SDK,SE v1.4.2_01

    how do you compile and run a non executable like HELLO WORLD and or do i need a compiler? and whats the signifigance of making a permanent path, i mean its supposed to be convienient, can somone explain these two things i would appreciate this greatly, as you can see i am taking up a new hobbie.

    Hi,
    have a look here:
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html

  • Active Directory accountExpires and pwdLastSet  property using JAVA

    Hi all!
    I´m trying to transform the accountExpires and pwdLastSet property retrieved from Active Directory to a Date/Time object. The value returned is a weird long integer that can´t be converted. Does anyone know something about this?
    I´m using Java 2 SDK 1.4.2.
    I am trying to do the above for accountExpires and pwdLastSet attributes in AD
    Thanks

    DrClap wrote:
    First link returned for Google keywords "active directory date format":
    [http://support.microsoft.com/kb/555936]
    Why, of course, January 1, 1601...

  • Start using Java 7 in JDeveloper

    Hi,
    I'm using the lastest JDeveloper and this might be a silly question, but how can i set it up to start compiling using Java 7 sdk? I tried preference but it doesn't have it there.
    Also, i'm guessing i need to do the same for my weblogic.
    -Marvin

    After installing Java 1.7.0 I got "Unsupported JDK version" message during JDeveloper 11g startup. No choice to select any other version of Java with this screen at all. So you have to say "Yes" to "Continue anyway?"question to get started IDE.
    That's the story: I had uninstalled Java 1.6.0_26 after installing 1.7.0, so I installed it again. Then I've added Java 1.6.0_26 by using JDeveloper "Tools-Manage Libraries" feature to "Java Definitions - Libraries - User" successfully. Still I got the same message while starting up..
    Well, should I re-install JDeveloper to fix this or any other idea?
    p.s. I have many screenshots related to above story, but I cannot share through this forum unfortunately.

  • Read&write Excel file using java

    Hi everybody,
    I have an assignment about methods that read and write an excel file using java (Eclipse SDK), so if anyone know about that please post the solution as soon as possible.
    Thanks
    Sendbad

    http://onesearch.sun.com/search/onesearch/index.jsp?qt=read+write+excel&subCat=siteforumid%3Ajava31&site=dev&dftab=siteforumid%3Ajava31&chooseCat=javaall&col=developer-forums

  • Java ME SDK 3.0 on Vista 64bit (JDK/JRE1.6U13 32-bit installed right before

    I really would like to test the recently promoted release of Java ME SDK 3.0 on my Windows Vista Ultimate 64-bit.
    First I tried to install it using my previously installed JDK 1.6 64-bit. Installer failed to properly integrate with Vista's UAC. Then equipped with proper permissions installation succeeded. So I tried to start the app. Got a splash screen telling me to start modules. Next I saw a apparently neverending list of exceptions appearing once every 10 seconds. So I told my task manager to drop that process.
    I tried to uninstall the application and had to see uninstaller failing due to not support 64-bit Windows. Great. Java=Portability???? And why didn't installer tell me about it?
    Lacking opportunity to uninstall the ME SDK I decided to drop every update of JRE and my existing JDK, then ask regedit to drop any registry information on any sort of Java-related stuff. Next I dropped all left-over folders related to installations of Java or Java-bundled software. Completing this I got a fresh JDK/JRE 1.6 Update 13 32-bit and installed it to my computer without any trouble.
    Next I decided to have another test of installing and running Java ME SDK 3.0 ... interesting: installer detected an existing installation (where from? all folders as well as lots of registry keys had been dropped before, even Windows' application manager didn't consider to have an existing installation anymore). The installer found new JDK installed before and finally succeeded to reinstall the app.
    Well, I tried to start it after that expecting something tested and thus working now. Instead of that I got the same sequence of exceptions requiring me to ask Task Manager for help after two bothering minutes of cancelling exceptions on splash screen not showing any kind of progression anymore.
    Here's my question (aside from: Who on earth started to falsely proclaim Java being platform-independent?):
    How can I get rid of these problems and have that super-app running on my two and a half years old operating system?
    Any support is welcome!
    Thomas
    (PS: I admit to have very bad view on Java as a technology due to stepping from trouble to trouble for years now and so I guess no one's ever able to convince me of the contrary, so please ignore any dismissive statement on it above. And yes I'd like to see this app running so I can start developing apps for mobile phones or at least test its capabilities in comparison to the competition.)
    EDIT: A few months ago I was testing some ME SDK with success. I can't remember version or included IDE. Is there any (basic) difference in using "Java ME SDK 3.0" as currently promoted on SDN from using Netbeans 6.5 supporting Java ME as well?
    Edited by: soletan on May 26, 2009 9:55 AM

    Hi, I also used the 64 bit sdk with Java ME SDK 3.0 and I am now unable to unistall it. I tried the suggestion of editing the 2 Java files which as suggested allowed the program to work correctly however I was unable to uninstall the program. So I tried the other suggestion of removing the files and then reinstalling linking to the 32 bit SDK which again it works OK but I am unable to uninstall.
    On trying to uninstall I get the error:
    Cannot load native library from path: native/jmesdk/windows/windows-x86.dll
    Exception:
    java.lang.UnsatisfiedLinkError:
    +C:\[home dir]\AppData\Local\Temp\[temp file]: Can't load IA 32-bit.dll on a AMD 64-bit platform.+
    You can get more details about the issue in the installer log file:
    Log file has:
    +[2010-07-25 20:14:21.422]: IsProductInstalledAction executed...+
    +[2010-07-25 20:14:21.422]: ...uninstallation, quiting+
    +[2010-07-25 20:14:21.453]: loading sdk library+
    +[2010-07-25 20:14:21.453]: library resource path: native/jmesdk/windows/windows-x86.dll+
    +[2010-07-25 20:14:21.454]: library file path: <SNIP>AppData\Local\Temp\nbi-611817385067150493.tmp+
    +[2010-07-25 20:14:21.459]: Cannot load native library from path: native/jmesdk/windows/windows-x86.dll+
    +[2010-07-25 20:14:21.460]: java.lang.UnsatisfiedLinkError: <SNIP>\AppData\Local\Temp\nbi-611817385067150493.tmp: Can't load IA 32-bit .dll on a AMD 64-bit platform+
    +[2010-07-25 20:14:21.460]:      at java.lang.ClassLoader$NativeLibrary.load(Native Method)+
    +[2010-07-25 20:14:21.460]:      at java.lang.ClassLoader.loadLibrary0(Unknown Source)+
    +[2010-07-25 20:14:21.460]:      at java.lang.ClassLoader.loadLibrary(Unknown Source)+
    +[2010-07-25 20:14:21.460]:      at java.lang.Runtime.load0(Unknown Source)+
    +[2010-07-25 20:14:21.460]:      at java.lang.System.load(Unknown Source)+
    +[2010-07-25 20:14:21.460]:      at org.netbeans.installer.utils.system.j2mesdk.SDKExtraUtils.loadNativeLibrary(SDKExtraUtils.java:128)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.utils.system.j2mesdk.SDKExtraUtils.<clinit>(SDKExtraUtils.java:42)+
    +[2010-07-25 20:14:21.461]:      at com.sun.cdc.installer.JMESDKConfigurationLogic.getUninstallWizardComponents(JMESDKConfigurationLogic.java:368)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.components.sequences.ProductWizardUninstallSequence.canExecuteForward(ProductWizardUninstallSequence.java:115)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.Wizard.getNext(Wizard.java:893)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.Wizard.next(Wizard.java:593)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.components.WizardSequence.executeForward(WizardSequence.java:84)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.components.sequences.MainSequence.executeForward(MainSequence.java:138)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.Wizard.next(Wizard.java:610)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.components.WizardAction$1.run(WizardAction.java:124)+
    +[2010-07-25 20:14:21.462]: ... show message dialog+
    +[2010-07-25 20:14:21.462]: title: Critical Error+
    +[2010-07-25 20:14:21.462]: message: Cannot load native library from path: native/jmesdk/windows/windows-x86.dll+
    +[2010-07-25 20:14:21.462]:+
    +[2010-07-25 20:14:21.463]: Exception:+
    +[2010-07-25 20:14:21.463]: java.lang.UnsatisfiedLinkError:+
    +[2010-07-25 20:14:21.463]: <SNIP>AppData\Local\Temp\nbi-611817385067150493.tmp: Can't load IA 32-bit .dll on a AMD 64-bit platform+
    +[2010-07-25 20:14:21.463]:+
    +[2010-07-25 20:14:21.463]: You can get more details about the issue in the installer log file:+
    +[2010-07-25 20:14:21.463]: <SNIP>.javame-sdk\log\20100725201416.log+
    Any suggestions on how to uninstall the program?
    Thanks,

  • Java me sdk tool 3.0's emulator isnt working

    I'm using JAVA ME SDK TOOL 3.0
    I don't know why this is happeneing but id really appreciate it if someone could tell me why it's happening. Im finished with the app i was working on and decided to take a break. I come back and its not working. The emulator wont start as you can see. It just so happened that i had to format my pc so i did and after installing everything again it worked. Yes i did consider reinsatalling the tool alongside jdk but it didnt work. A week later, today, i come back to check up on the tool and this is what i get.
    What now? Why won't it work? :(
    Starting emulator in execution mode
    *** Error ***
    Failed to connect to device 0!
    Reason:
    Emulator 0 terminated while waiting for it to register!
    bdj-run:
    cdc-run:
    profiler.check:
    open-profiler:
    run:
    BUILD SUCCESSFUL (total time: 18 seconds)

    First a pop up msg would appear saying THE HTTP SERVER COULD NOT BE STARTED. CHECK MESSAGES.LOG FOR MORE INFORMATION. Here's a link to both messages and messages.log http://mycapp.clanteam.com/New%20folder.zip I hope it helps cuz i cant do anything like this. Plus I have apache server installed. Is this because of it? I installed apache a few days ago so it was within the week i stopped testing my complete j2me app. If i uninstall apache and it works somehow that still doesnt solve my prb cuz i cant test my php site.
    Copying 1 file to C:\Users\Leo\Documents\NetBeansProjects\MobileApplication2\dist\DefaultCldcPhone1\nbrun5361921003475598823
    Copying 1 file to C:\Users\Leo\Documents\NetBeansProjects\MobileApplication2\dist\DefaultCldcPhone1\nbrun5361921003475598823
    Jad URL for OTA execution: http://localhost:8082/servlet/org.ne...plication2.jad
    Starting emulator in execution mode
    *** Error ***
    Failed to connect to device 6!
    Reason:
    Emulator 6 terminated while waiting for it to register!
    C:\Users\Omar\Documents\NetBeansProjects\MobileApplication2\nbproject\build-impl.xml:889: Execution failed with error code 1.
    BUILD FAILED (total time: 10 seconds)
    this i got from using netbeans

  • How to extract payload data from SOA database schema using Java

    I am trying to extract the payload data and output as XML text files using Java. Seems that is stored in SOA table XML_DOCUMENT. I am trying the following Java code to get started and it's not working as I would expect. I only get a few actual lines of output and, when I do, I only get the *<?xml version ... ?>* line.
    I appreciate any advice to extract the payload data from the database. Ultimately I will want to include the composite instance ID in the SQL but for now I'm just using the code shown here:
    OracleDataSource ods = new OracleDataSource();
    ods.setURL("soa_db_connection_string");
    ods.setUser("soa_db_user_id");
    ods.setPassword("soa_db_password");
    Connection conn = ods.getConnection();
    String sql = "select document from xml_document where rownum < 10";
    OraclePreparedStatement stmt = (OraclePreparedStatement)conn.prepareStatement(sql);
    DBBinXMLMetadataProvider dbrep = BinXMLMetadataProviderFactory.createDBMetadataProvider();
    dbrep.setConnectionPool(ods);
    dbrep.associateDataConnection(conn);
    OracleResultSet rset = (OracleResultSet)stmt.executeQuery();
    XMLDOMImplementation domimpl = new XMLDOMImplementation();
    BinXMLProcessor proc = BinXMLProcessorFactory.createProcessor(dbrep);
    while (rset.next()) {
         Blob blob = rset.getBlob("DOCUMENT");
         BinXMLStream inpbin = proc.createBinXMLStream(blob);
         BinXMLDecoder dec = inpbin.getDecoder();
         InfosetReader xmlreader = dec.getReader();
         XMLDocument doc = (XMLDocument)domimpl.createDocument(xmlreader);
         doc.print(System.out);
    }

    I found a method using a slight variation of the code I originally posted. Essentially you remove the DBBinXMLMetadataProvider dbrep portion. I believe, with this included, the XML being extracted is validated against the database (which is referenced as a "metadata provider"). Since the SOA schema doesn't seem to contain the information to validate the XML it returns as blank. If you don't include the dbrep portion then the XML is extracted as desired.
    OracleDataSource ods = new OracleDataSource();
    ods.setURL("soa_db_connection_string");
    ods.setUser("soa_db_user_id");
    ods.setPassword("soa_db_password");
    Connection conn = ods.getConnection();
    String sql = "select document from xml_document where rownum < 10";
    OraclePreparedStatement stmt = (OraclePreparedStatement)conn.prepareStatement(sql);
    OracleResultSet rset = (OracleResultSet)stmt.executeQuery();
    XMLDOMImplementation domimpl = new XMLDOMImplementation();
    BinXMLProcessor proc = BinXMLProcessorFactory.createProcessor();
    while (rset.next()) {
         BLOB blob = rset.getBLOB("DOCUMENT");
         BinXMLStream inpbin = proc.createBinXMLStream(blob);
         BinXMLDecoder dec = inpbin.getDecoder();
         InfosetReader xmlreader = dec.getReader();
         XMLDocument doc = (XMLDocument)domimpl.createDocument(xmlreader);
         doc.print(System.out);
    }

  • How to extract the number from image using java

    Hello every one
    i want to develope a project which can extract the number from image
    that i can use as inter or String or char.
    Is there any API in java which provide this type of facility.
    right now i m using java 5
    thanks in Advance
    Jignesh

    In my project i have a image in that i have a
    co-ordinate (x,y) I am still puzzled as to what you seek. It sounds to me like you have a point (x, y) represented by p. in java it's just p.getX() p.getY()
    i want to convert that cordinate to numeric form,
    i mena i want to use that cordinate in somewhere else
    in project.point.getX() point.getY()
    So need to convert it into numeric form u can called
    it OCR also.OCR is optical character recognition. If I want out and took a picture of the US Declaration of Independence and then wanted the words on the parchement in the picture in text form, then I would run the picture through a software program and it would try to optically recognise what lettering and number were present in the picture. In the end, I would have a text of what is written on the US Declaration of Independence.
    Is that what you want?

  • How to extract .sit files(in MAC)  using java program

    Hi,
    please help me , i want to simple program for
    " how to extract .sit files(in MAC) using java program"
    that sit files same as zip files in windows..[                                                                                                                                                                                                                                                                                                                                   

    Thanks for reply...
    but i search in the google about this topic...there is no results will appear..
    the problem is "i have to run program in the MacOS like extract all the
    .sit(StuffIt) extension files. These sit files same as zip files in the windows... we have one tool called StuffIt Expander but it is 3rd party tool. but here requirement is i have to write my own program to extract all the files same as zip file program...
    please do the needful..i am waiting for ur reply,,,

  • Extract TIFF from Multi-Tiff using Java API

    Please teach me how to extract TIFF from Multi-Tiff using Java API.

    I'm fairly sure one of the JAI examples show just this.

  • Zip and extract multiple files using java program

    how can i zip and extract multiple files using java program.

    Hi,
    Look into the java.util.zip and java.util.jar they expose methods to manipulate zip and jar files.

Maybe you are looking for

  • How to control "hide/show" in a table on row level

    I was trying to implement controlling/rendering of "hide/show" in a table on row level, but no luck. Is is possible to render the "hide/show" in a table based on the row attribute? If the row attribute is "true", then render the "hide/show" at that r

  • Error in dd activation by sapkb70015, do i need need a great ocs-queue?

    hello friends, my compnents: sm51 n4shost_N4S_01     n4shost     Dialog Batch Update Spool Enqueue ICM VMC J2EE     aktiv SAP-Kernel :  700_REL Datenbank Client Library : SQLDBC 7.6.3.014 CL 170762 hergestellt auf  :  Linux GNU SLES-9 x86_64 cc3.3.3

  • Saving arrays in file and read it back

    I am planning to save some data that been insert by user and save it . Then try read it back using data from the user... I' m still having problem to save the array of data... Attachments: gui1.3.vi ‏331 KB

  • Delivery group problem

    Dear SAP Gurus, I have created sales order with 20 items.In that some items are assigned to delivery group "0" and some items are assinged "2" and the remaining items "3".These are maintained manually in the sales order.All items have same ship to pa

  • Photoshop pausing 2-3 mintues

    Help! I just updated the most recent photoshop CC and it is running terribly! It keeps pausing for 2-3 minutes with whatever action I am doing. I have rebooted but it is still doing it. I am using a PC, i7-3GHz processor, 64 bit, lots of ram. Shouldn