Appendix...
I did a try/catch now in this way:
Client client = null;
try {
log.info("Creating the client...");
Context context = new Context();
client = new Client(context, Protocol.HTTP);
} catch (Throwable e) {
System.out.println("Error: " + e.toString());
e.printStackTrace();
}
This code results in:
...
32 [Thread-28] INFO de.glamus.bluesuiteclient.models.AbstractModel -
Creating the client...
Error: java.lang.StackOverflowError
java.lang.StackOverflowError
at java.io.Win32FileSystem.normalize(Unknown Source)
at java.io.Win32FileSystem.normalize(Unknown Source)
at java.io.File.<init>(Unknown Source)
at sun.security.provider.PolicyFile.canonPath(Unknown Source)
at java.io.FilePermission$1.run(Unknown Source)
at java.io.FilePermission$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(Unknown Source)
at java.io.FilePermission.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown
Source)
at sun.net.www.protocol.jar.JarFileFactory.getPermission(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.getCachedJarFile(Unknown
Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown
Source)
at java.net.URL.openStream(Unknown Source)
at org.restlet.util.Engine.getInstance(Engine.java:148)
at org.restlet.util.Engine.loadClass(Engine.java:287)
snip - the following lines about thousand times...:
at org.restlet.util.Engine.getInstance(Engine.java:177)
at org.restlet.util.Engine.loadClass(Engine.java:287)
Greetings
David
> hi alex,
>
> in windows there was just a message that said:
>
> Runtime Error!
> Program: ...\soffice.bin
>
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
>
>
> Today I've set up a new OOo Add-On project on an ubuntu machine with netbeans
> 6.7 and OOo 3.2. I just included the org.restlet.jar &
> com.noelios.restlet.jar libs.
>
> My code in this Add-On does just some logging and has this two lines:
>
> System.out.println("addOn started");
> Client client = new Client(Protocol.HTTP);
>
> And this lines result in a:
>
> * addOn started
> * terminate called after throwing an instance of
> 'com:sun:star:uno::RuntimeException'
>
> in my real project i use restlet to connect to my own rest web service. it
> works perfect with the restlet framework when i compile it into an windows
> exe or a jar. the problem only appears when i build that OOo Add-On with the
> restlet framework included.
>
> I can't imagine that is depends from an API change.
>
> Hope that are enough information's.
>
> Greetings
> David
>
>
>
> > hi david,
> >
> > I'm sorry, but you didn't give enough information. Is there any Exception
> > (maybe in a log- file)? Or an error code? Any error message? Try starting
> > OpenOffice from the command line, does any exception appears there?
> >
> > Do you use restlet to connect to an existing Restful Web Service from any
> > third party? Or is both, client (as far as I get it, your OpenOffice-
> > extension is the client) and server application your work?
> >
> > Maybe some of the others owns a magic crystal ball and uses it to get these
> > information, but I don't...
> >
> > Greetings,
> > Alex
> >
> > PS: Consider OpenOffice documentation + change logs. Is there any change in
> > the extension Api between version 3.0 and 3.2? If it is not an interface
> > (so API) change, it may be something like e.g. class loading, sandboxing...
> >
> > -------- Original-Nachricht --------
> > > Datum: Tue, 13 Jul 2010 08:08:31 -0700 (PDT)
> > > Von: [email protected]
> > > An: [email protected]
> > > Betreff: OpenOffice extension crashes
> >
> > > I've written an OpenOffice extension for Windows using the RESTful web
> > > framework. It all worked fine with OpenOffice 3.0 and StarOffice 9. Since
> > > OpenOffice Version 3.2 and Oracle Open Office 3.2.1 the swriter.exe
> > > crashes,
> > > when I launch my extension.
> > >
> > > It's a very simple extension that gets some address information from a
> > > rest webservice. I just use the archives org.restlet.jar &
> > > com.noelios.restlet.jar.
> > >
> > > Has anyone an idea?
> > >
> > > thanks in advance
> > > david
> > >
> > > ------------------------------------------------------
> > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2632820
> >
> > --
> > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2633979