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 198623 - IllegalAccessError: tried to access method org.netbeans.modules.glassfish.eecommon.api.config.GlassfishConfiguration.<init>(Lorg/netbeans/modules/j2ee/deployment/devmodules/api/J2eeModule;)V from clas
Summary: IllegalAccessError: tried to access method org.netbeans.modules.glassfish.eec...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 7.0.1
Hardware: All All
: P1 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-05-16 09:40 UTC by Peter Nabbefeld
Modified: 2011-08-08 02:23 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178866


Attachments
stacktrace (5.35 KB, text/plain)
2011-05-16 09:40 UTC, Peter Nabbefeld
Details
stacktrace (8.69 KB, text/plain)
2011-06-15 09:50 UTC, Jiri Skrivanek
Details
stacktrace (6.44 KB, text/plain)
2011-06-17 09:05 UTC, Peter Nabbefeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2011-05-16 09:40:51 UTC
This issue was reported manually by epdv.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build nbms-and-javadoc-7133-on-20110503)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP

Stacktrace: 
java.lang.IllegalAccessError: tried to access method org.netbeans.modules.glassfish.eecommon.api.config.GlassfishConfiguration.<init>(Lorg/netbeans/modules/j2ee/deployment/devmodules/api/J2eeModule;)V from class org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl
   at org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl.<init>(ModuleConfigurationImpl.java:107)
   at org.netbeans.modules.j2ee.sun.ide.j2ee.ModConFactory.create(ModConFactory.java:66)
   at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl$1.run(ConfigSupportImpl.java:790)
   at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl$1.run(ConfigSupportImpl.java:769)
   at org.openide.util.Mutex.readAccess(Mutex.java:288)
   at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.getModuleConfiguration(ConfigSupportImpl.java:769)
Comment 1 Peter Nabbefeld 2011-05-16 09:40:55 UTC
Created attachment 108312 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-06-15 07:20:04 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=178866
Comment 3 Jiri Skrivanek 2011-06-15 09:50:05 UTC
Created attachment 108900 [details]
stacktrace

To reproduce:
- install GlassFish v2 support plugin
- restart IDE
- try to add GlassFish2.1.1 server as a new instance but it throws the exception when finishing the wizard
Comment 4 Jiri Skrivanek 2011-06-15 09:59:44 UTC
Actually it throws the exception when you try to create a java web application
with GlassFish 2.1.1. Registration of server instance went well. Please, look
at this issu. It seems to be a regressing since I am not able to repeat the
problem in NB7.0. Thank you.
Comment 5 Peter Nabbefeld 2011-06-17 09:05:14 UTC
Created attachment 108949 [details]
stacktrace
Comment 6 Exceptions Reporter 2011-06-20 21:53:25 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=178866
Comment 7 Jiri Skrivanek 2011-06-21 08:26:42 UTC
Please, evaluate. It seems to be a stopper for 7.0.1. It is not possible to create web application with GlassFish 2.1.1.
To reproduce:
- install GlassFish v2 support plugin
- restart IDE
- add GlassFish2.1.1 server as a new instance in Services tab
- try to create java web application but it throws the exception when finishing the wizard

Product Version: NetBeans IDE 7.0.1 Dev (Build 201106192100)
Java: 1.6.0_26; Java HotSpot(TM) Client VM 20.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 8 Petr Jiricka 2011-06-21 08:51:16 UTC
Cc also Petr Hejl.
Comment 9 Petr Jiricka 2011-06-22 12:10:06 UTC
Adjusting category.
Comment 10 Petr Hejl 2011-06-22 12:55:37 UTC
I'm not able to reproduce so far. Might be related to http://hg.netbeans.org/web-main/rev/193169.
Comment 11 Petr Hejl 2011-06-22 13:28:20 UTC
Changing the component to the right value.
Comment 12 Petr Hejl 2011-06-22 14:51:26 UTC
I think this really might be related to certain incompatible changes in mentioned changeset.
Comment 13 Petr Jiricka 2011-06-22 15:38:31 UTC
> Please, evaluate. It seems to be a stopper for 7.0.1

I am not sure this will affect 7.0.1. Until recently, 7.0.1 builds were using an update center from 7.0, which is incorrect. There is a separate update center URL for 7.0.1, and GlassFish 2.1 plugin is not published there yet. So let's wait until GF 2.1 plugin is properly available for 7.0.1, and then test with this build.
Comment 14 Jiri Skrivanek 2011-06-23 07:36:42 UTC
With new GF 2.1 plugin from http://updates.netbeans.org/netbeans/updates/7.0/uc/final/certified/catalog_stage.xml.gz (see bug 195117), I am still able to reproduce this bug.
Comment 15 Vince Kraemer 2011-06-27 20:11:20 UTC
I just did a pull and build of 7.0.1 RC1 from releases.

I started the built IDE and used the UC to get the GF 2 plugin from the UC.

I registered an instance of gf v2.

I created a project that uses the registered v2 instance.

I ran the project that I created successfully.

I noticed that the UC URL is now http://updates.netbeans.org/netbeans/updates/7.0.1/uc/final/certified/catalog.xml.gz.

So, I guess that http://hg.netbeans.org/releases/rev/e422ab10471f addressed this.

Marking as works for me.  Reopen with pointer to recent 7.0.1 build that demonstrates this issue if there is still a problem in the bits from release engineering and I can do more investigation.
Comment 16 Jiri Skrivanek 2011-06-28 08:38:05 UTC
The problem is reproducible only with GlassFish v1, v2.x plugin version 1.13.1.1 in NB7.0.1 builds.

These combinations work:

Product Version: NetBeans IDE 7.0 (Build 201104080000)
Plugin: 1.13.0.1

Product Version: NetBeans IDE 7.0 (Build 201104080000)
Plugin: 1.13.1.1

Product Version: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
Plugin: 1.13.0.1

Only this fails:

Product Version: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
Plugin: 1.13.1.1
Comment 17 Vince Kraemer 2011-06-28 14:51:40 UTC
(In reply to comment #16)
> The problem is reproducible only with GlassFish v1, v2.x plugin version
> 1.13.1.1 in NB7.0.1 builds.
> 
[snip]
> Only this fails:
> 
> Product Version: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
> Plugin: 1.13.1.1

Do you have a link to the latest NB 701 RC build?  One that I can use to download the actual bits that users are getting if they download the RC build today?
Comment 18 Vince Kraemer 2011-06-28 16:30:59 UTC
(In reply to comment #16)
> The problem is reproducible only with GlassFish v1, v2.x plugin version
> 1.13.1.1 in NB7.0.1 builds.
> 
> These combinations work:
> 
> Product Version: NetBeans IDE 7.0 (Build 201104080000)
> Plugin: 1.13.0.1
> 
> Product Version: NetBeans IDE 7.0 (Build 201104080000)
> Plugin: 1.13.1.1
> 
> Product Version: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
> Plugin: 1.13.0.1
> 
> Only this fails:
> 
> Product Version: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
> Plugin: 1.13.1.1

7.0.1 rc1 uses the 7.0.1 UC. (http://updates.netbeans.org/netbeans/updates/7.0.1/uc/final/certified/catalog.xml.gz)

That UC has plugin 1.13.0.1.

Where would a user get 1.13.1.1 from?

What path of user actions will get 1.13.1.1 into 701 rc1?

I  downloaded rc1 and then used the preconfigured certified UC for 7.0.1 and I was not be able to reproduce this issue.

Closing as incomplete. Please reopen with step-by-step instructions on how I can reproduce the problem.
Comment 19 Petr Jiricka 2011-06-28 16:59:57 UTC
I believe the update center for 7.0.1 RC uses the release701 branch, so it sounds like the fix for 195117 should have been also committed to the release701 branch, not only release70_fixes :-( Do you think that would help? Sorry for the confusion.
Comment 20 Vince Kraemer 2011-06-28 17:12:22 UTC
(In reply to comment #19)
> I believe the update center for 7.0.1 RC uses the release701 branch, so it
> sounds like the fix for 195117 should have been also committed to the
> release701 branch, not only release70_fixes :-( Do you think that would help?
> Sorry for the confusion.

Getting step-by-step instruction on how I can reproduce a problem that is a 7.0.1 stopper would be very helpful.

At this point, I cannot use 7.0.1 RC1 and the certified UC for 7.0.1 RC1 to reproduce this issue... so, I am not sure what I am trying to resolve...
Comment 21 Jiri Skrivanek 2011-06-30 08:09:49 UTC
My assumption is that the plugin fixed in 195117 should be available on NetBeans 7.0.1 update center. It means version 1.13.1.1 should be there. Probably Petr Gebauer should arrange it. When it is done users will be faced with described issue. Until than please, follow these steps and install plugin from NB7.0 update center:

- run NetBeans 7.0.1 RC (http://smetiste.czech.sun.com/builds/netbeans/7.0.1/daily/latest)
- open Tools|Plugins
- choose Settings tab
- click Add button
- copy http://updates.netbeans.org/netbeans/updates/7.0/uc/final/certified/catalog.xml.gz to the URL field and click OK
- switch to Available Plugins
- search for GlassFish v1, v2.x plugin and select it
- check version is 1.13.1.1
- tick the plugin and click Install button
- finish installation
- restart the IDE
- add GlassFish2.1.1 server as a new instance in Services tab
- try to create java web application but it throws the exception when finishing the wizard
Comment 22 Vince Kraemer 2011-06-30 14:25:30 UTC
The fix for issue 195117 was committed to the trunk on 29 March 2011... https://netbeans.org/bugzilla/show_bug.cgi?id=195117#c14.

Those changes were ported into the release70_fixes branch

7.0.1 was branched from the trunk on 13 May 2011.... http://hg.netbeans.org/main-golden/rev/cea21310ed68

This implies that the fix for 195117 is available in the GlassFish v1,v2 plugin that is available on the UC for 7.0.1

There is no reason to migrate the plugin from the 7.0 UC to the 7.0.1 UC.
Comment 23 Jiri Skrivanek 2011-07-01 10:22:22 UTC
OK, if the plugin on 7.0.1 UC remains version 1.13.0.1 then everything works without problems.
Comment 24 windli 2011-08-07 04:49:01 UTC
It still affects my NetBeans. It's automatically upgraded to 7.0.1 from 7.0. So the that GlassFish v1,v2 plugin is still the version from 7.0.
You still need upgrade the version in 7.0.1 ASAP.

Thanks
Wind
Comment 25 Vince Kraemer 2011-08-08 02:23:33 UTC
the problem that you are running into is being tracked by issue 200621