To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81738
                 Issue #|81738
                 Summary|Java to OO server Disposed Connection issue
               Component|Word processor
                 Version|OOo 2.1
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P1
            Subcomponent|code
             Assigned to|mru
             Reported by|atulganeriwala





------- Additional comments from [EMAIL PROTECTED] Wed Sep 19 10:24:51 +0000 
2007 -------
Hi,

I am using java code to remotely connect to Open Office Server for generating 
documents.I am using Open Office 2.1.

Initially everything works fine.
But after few rounds fo testing suddenly I encounter a 
DisposedConnectionException and my connection to Open Office server fails .The 
documents stop generating.

java.lang.RuntimeException: java_remote_bridge
([EMAIL PROTECTED]).sendReque
st - is disposed
        at 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest
(java_remote_bridge.java:858)
        at com.sun.star.lib.uno.environments.java.Proxy.invoke(Proxy.java:141)


But using telnet I can see that the Open Office server is up and running.
Only the connection between my Appserver(where the Java code is written to 
connect to OO) and OO server is failing.

Can you suggest whether its a code problem or configuration issue?


 This is the code to get OO connection : -

  protected static XComponent newDocComponentFromTemplate(String loadUrl) 
throws java.lang.Exception
    {
        L
        // get the remote service manager
        XMultiComponentFactory mxRemoteServiceManager = getRemoteServiceManager
(unoUrl);
        
        Object desktop = 
        mxRemoteServiceManager.createInstanceWithContext
("com.sun.star.frame.Desktop",
         mxRemoteContext);
        XComponentLoader xComponentLoader = (XComponentLoader) 
        UnoRuntime.queryInterface(XComponentLoader.class, desktop);

        // define load properties according to 
com.sun.star.document.MediaDescriptor
        // the boolean property AsTemplate tells the office to create a new 
document
        // from the given file
        PropertyValue[] loadProps = new PropertyValue[2];
        loadProps[0] = new PropertyValue();
        loadProps[0].Name = "AsTemplate";
        loadProps[0].Value = new Boolean(true);
        loadProps[1] = new PropertyValue();
        loadProps[1].Name = "Hidden";
        loadProps[1].Value = new Boolean(true);
     
     
        return xComponentLoader.loadComponentFromURL(loadUrl, "_blank", 0, 
loadProps);
    }

Thanks and Regards
Atul Ganeriwala

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to