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 244181 - org.xml.sax.SAXParseException; cvc-type.3.1.3: The value '1.6' of element 'source-level' is not valid.
Summary: org.xml.sax.SAXParseException; cvc-type.3.1.3: The value '1.6' of element 'so...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Freeform (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-29 18:06 UTC by tdnorb
Modified: 2015-03-26 15:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208265


Attachments
stacktrace (3.96 KB, text/plain)
2014-04-29 18:06 UTC, tdnorb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdnorb 2014-04-29 18:06:14 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Mac OS X

User Comments:
gugrim: Trying to change source level from 1.7 to 1.8 for a freeform project.

GUEST: what is this?

tdnorb: Attempting to change project properties

GUEST: By changing source level from 1.8 to 1.6

tdnorb: Opening a freeform project and altering properties

tdnorb: Attempting to change java source in a freeform project




Stacktrace: 
org.xml.sax.SAXParseException; cvc-type.3.1.3: The value '1.6' of element 'source-level' is not valid.
   at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
   at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
   at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:437)
   at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
   at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)
   at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:458)
Comment 1 tdnorb 2014-04-29 18:06:17 UTC
Created attachment 147014 [details]
stacktrace
Comment 2 mlouka 2014-10-15 13:16:08 UTC
I'm surprised this hasn't been voted up as I am unable to set source level to Java 8 so  while I can use Java 8 with NetBeans, I have to put up with lots of warnings about using Java 8 syntax in 1.6 code. There doesn't appear to be a workaround as setting the value to 1.8 manually in the configuration in nbproject results in the same exception as doing it via the GUI.
Comment 3 Tomas Zezula 2015-03-26 15:01:00 UTC
Fixed jet-main e4d34e66c522