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 255737 - UnsupportedClassVersionError: org/jboss/as/controller/PathAddress : Unsupported major.minor version 52.0
Summary: UnsupportedClassVersionError: org/jboss/as/controller/PathAddress : Unsupport...
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: ehsavoie
URL:
Keywords: 81_HR_FIX
Depends on:
Blocks:
 
Reported: 2015-10-06 14:10 UTC by Jiri Sedlacek
Modified: 2015-10-14 14:03 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220387


Attachments
stacktrace (4.29 KB, text/plain)
2015-10-06 14:10 UTC, Jiri Sedlacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2015-10-06 14:10:17 UTC
Build: NetBeans IDE Dev (Build 20151006-7cc8ed58149c)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.80-b11, Java(TM) SE Runtime Environment, 1.7.0_80-b15
OS: Windows 7

User Comments:
jis: Running NetBeans 8.1 devbuild on JDK 1.7.0_80, trying to run MessageBoard sample application on the WildFly 10.0 RC2 server registered in the IDE. Looks like NB is trying to load a class from WildFly which has been compiled by Java 8.




Stacktrace: 
java.lang.UnsupportedClassVersionError: org/jboss/as/controller/PathAddress : Unsupported major.minor version 52.0
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
Comment 1 Jiri Sedlacek 2015-10-06 14:10:19 UTC
Created attachment 156561 [details]
stacktrace
Comment 2 Petr Hejl 2015-10-06 14:29:11 UTC
For the record - WildFly 10 supports JDK8+ only. Older versions supports both JDK7 and JDK8.
Comment 3 ehsavoie 2015-10-07 06:26:06 UTC
(In reply to Petr Hejl from comment #2)
> For the record - WildFly 10 supports JDK8+ only. Older versions supports
> both JDK7 and JDK8.

Hum, WF8 doesn't support Java 8 code syntax everywhere (for example in JSP).
It seems that some tweacking is required also for WF9 (in jSP with static interfaces methods iirc).
Comment 4 Petr Hejl 2015-10-07 08:41:28 UTC
(In reply to ehsavoie from comment #3)
> (In reply to Petr Hejl from comment #2)
> > For the record - WildFly 10 supports JDK8+ only. Older versions supports
> > both JDK7 and JDK8.
> 
> Hum, WF8 doesn't support Java 8 code syntax everywhere (for example in JSP).
> It seems that some tweacking is required also for WF9 (in jSP with static
> interfaces methods iirc).

It was meant purely as runtime platform. So in NB 8.1 running on JDK 7 you won't be able to use upcoming WildFly 10.
Comment 5 Petr Hejl 2015-10-08 07:36:00 UTC
As the WF10 is going to be released this month I would suggest to not to allow registration of WF10 when IDE is running on JDK7.
Comment 6 Petr Hejl 2015-10-08 09:14:27 UTC
Fixed in web-main 5e11716c2f28. QE please verify.
Comment 7 Jiri Prox 2015-10-08 12:13:55 UTC
verified in trunk
Comment 8 Jiri Kovalsky 2015-10-08 12:21:36 UTC
Petre, please integrate to release81 branch. Thanks!
Comment 9 Tomas Mysik 2015-10-08 14:02:27 UTC
Patch seems OK.
Comment 10 Petr Hejl 2015-10-08 14:38:51 UTC
Fixed in releases branch release81 8b2a976e65cf.
Comment 11 Quality Engineering 2015-10-09 01:22:04 UTC
Integrated into 'main-silver', will be available in build *201510090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5e11716c2f28
User: Petr Hejl <phejl@netbeans.org>
Log: #255737 - UnsupportedClassVersionError: org/jboss/as/controller/PathAddress : Unsupported major.minor version 52.0
Comment 12 Jiri Prox 2015-10-14 14:03:31 UTC
verified

Product Version: NetBeans IDE 8.1 RC2 (Build 201510122201)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\8.1rc2
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\8.1rc2