This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 15720 - attempts to load dt_shmem and generates RuntimePermission exception
Summary: attempts to load dt_shmem and generates RuntimePermission exception
Status: CLOSED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-09-20 19:57 UTC by Heitzso
Modified: 2001-10-04 11:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heitzso 2001-09-20 19:57:02 UTC
Cannot startup debugger.  Click on debug menu OK.
Click on 'attach' menu item and exception thrown.
Same 3.2.1 code works OK in WinNT6sp6a.

Exception is RuntimePermission exception,
loadLibrary.dt_shmem.

My sense is that, according to the doc, shared
memory is available on Windows only, so why is
it going there under Linux?  Another possibility
is a policy file is required.

I checked in FAQ and HOWTO and didn't see comments
on this.  Ditto online doc.
Comment 1 Jan Stola 2001-09-24 10:45:57 UTC
Could you, please, attach stack trace of the thrown exception.
What Linux do you use?
Comment 2 Jan Stola 2001-09-26 12:06:02 UTC
Adding comments obtained from the reporter through e-mail:
----------------------------------------------------------

I'm running Debian unstable on i386 platform with 2.4.9 kernel.
Let me know if you need specific library version information.

I hand copied the first few lines, the exception window isn't geared
to cut and paste, let me know if you need more and if there's a log
file around I can edit to cut and paste the whole exception stack.

java.security.AccessControlException:
posted StackTrace Annotation: Exception occurred in Request Processor
Nested annotation: access denied
(java.lang.RuntimePermission loadLibrary.dt_shmem)
org.openide.util.requestProcessor$Holder: Posted StackTrace
task org.netbeans.core.ModuleActions$1@491629 [-2464, 1, -1])
at org.openide.util.RequestProcessor$Task.createHolder
   (RequestProcessor.java:322)
at org.openide.util.RequestProcessor.post
   (RequestProcessor.java:100)
at org.openide.util.RequestProcessor.post
   (RequestProcessor.java:73)
Comment 3 Jan Stola 2001-09-26 14:58:57 UTC
I am sorry, but I don't know what can cause your problem.
It seems that there is a bad configuration somewhere.
I expect that you didn't changed the content of the ide.policy
file. So, maybe there is some problem with JDK.
What JDK are you using? We know about problems with Blackdown
on Debian (see issue 12793). If you are using Blackdown,
could you give a chance to Sun's JDK?
Comment 4 Jan Stola 2001-10-01 13:24:11 UTC
Setting resolution to WORKSFORME (seems to be problem with Blackdown).
Comment 5 Jan Stola 2001-10-04 11:28:54 UTC
Worksforme -> Closed.