• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

BusinessObjects Java SDK

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!  I'm new to Java and have been tasked with working with the BusinessObjects Java SDK to find a way to script our object promotions.  This may not be the right forum to put this in, so I apologize in advance.  I found an example script from SAP and I'm trying to use that.  It wouldn't work as it was, but I'm closer now that I was before.  I have a couple of issues with this code: 1) it terminates almost immediately without explanation, 2) the dispose() method gives the error that it is undefined for the type LivetoLive.  If anyone out there has any experience using the BusinessObjects Java SDK, any help would be appreciated.

 
Marshal
Posts: 79707
381
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

Have you written much Java® code before? You will doubtless know that the JVM executes the main method and that is used to start the application. But you haven't written anything in your main method. Look here for a typical main method.
I don't know anything about LivetoLive (strange capitalisation; I would have expected a T) but it obviously doesn't have a dispose() method. The business objects people shou‍ld have a website with API documentation on, where you can check the methods of that type.
 
Campbell Ritchie
Marshal
Posts: 79707
381
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What sort of object is it that you would want to call dispose() on?
 
Tracy Mixa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:What sort of object is it that you would want to call dispose() on?



Hey Campbell!  Thanks for the reply.  I will read the article that you attached.  No, I haven't written much Java at all.  I've sort of been thrown into this task without much knowledge of it.

In the example code that I'm getting from SAP, it says "Commit and then dispose of the IObjectManager."  Looking at the code in the TRY statement, it seems as though the dispose() method in the FINALLY statement should be disposing of the IExporter.  That's my guess, anyway.  However, there is no dispose() method for exporter.  There is a dispose() method for pipe, but when I define it that way, I get an error on the line above, "pipe.getResult().get();", that says "Unhandled exception type ExecutionException".
 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic