To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81758
                 Issue #|81758
                 Summary|Problem with static field under Linux/Java when using 
                        |the Loader class and JAAS
               Component|framework
                 Version|OOo 2.2
                Platform|PC
                     URL|
              OS/Version|Linux
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|tm
             Reported by|jcdiaz





------- Additional comments from [EMAIL PROTECTED] Wed Sep 19 20:39:20 +0000 
2007 -------
I found a problem trying to run a java application under Linux.  This
application has been running under Windows for more than a year.  The
application uses Java UNO to manipulate a Calc spreadsheet.

   First thing I found is that the use of the Loader class included in the SDK
is required under Linux (as explained in the document "Transparent Use of Office
UNO Components").  At least I can tell that using the Loader is the only way I
was able to make the application found the openoffice binary.

   The application also makes use of the JAAS framework.  I have found that if a
static field is modified during the call to LoginModule.login(), its value will
not be the same when the call to that method is finished.  In other words, the
field has a value prior/after the call to LoginModule.login() that has nothing
to do with the value of the same field during the method call.

   Debugging the code using Netbeans, I have noticed a hidden source call to
AccessController.doPrivileged()  Could this be the problem?

   If the application is not started using the Loader class, then everything
works OK both under Linux and Windows.  However, under Linux the openoffice
executable is not found without the loader (this is why I am using it).

   I am attaching the source code to reproduce this problem.

---------------------------------------------------------------------
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