You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ying Bai (Jira)" <ji...@apache.org> on 2020/11/29 23:41:00 UTC

[jira] [Created] (NETBEANS-5077) Use Apache NetBeans 12 to connect to SQL Server 2019 Express database in a Java with Ant\Java Application project (Windows 10 - 64bits)

Ying Bai created NETBEANS-5077:
----------------------------------

             Summary: Use Apache NetBeans 12 to connect to SQL Server 2019 Express database in a Java with Ant\Java Application project (Windows 10 - 64bits)
                 Key: NETBEANS-5077
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5077
             Project: NetBeans
          Issue Type: Bug
          Components: apisupport - Project
    Affects Versions: 12.0
            Reporter: Ying Bai
            Assignee: Ying Bai
             Fix For: 12.0


Use Apache NetBeans 12 to build a Java with Ant - Java Application project to work with SQL Server 2019 Express database. The database was connected successfully via Service - JDBC Driver. The JDK 14 is used with the latest JDBC Driver, sqljdbc_8.4. (Windows 10, 64-bit).

But when use *New-> Entity Classes from Database* to create Entity and Persistence, after add all tables and keep all default settings for Entity Classes and Mapping Options wizards, as click on the *Finish* button to add and create these Entity classes, the project name becomes to red color, means that something wrong.

After compile, the following errors displayed:

 Updating property file: C:\SQL Java DB Programming\Class DB Projects\Chapter 6\JavaApplication37\build\built-jar.properties
Compiling 6 source files to C:\SQL Java DB Programming\Class DB Projects\Chapter 6\JavaApplication37\build\classes
warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '14'
Note: Creating non-static metadata factory ...
1 warning


An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.NoClassDefFoundError: javax/annotation/Generated
 at org.eclipse.persistence.internal.jpa.modelgen.MetadataMirrorFactory.setEnvironments(MetadataMirrorFactory.java:327)
 at org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.process(CanonicalModelProcessor.java:368)
 at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:1026)
 at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:941)
 at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1270)
 at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1384)
 at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1263)
 at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:935)
 at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:316)
 at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:176)
 at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
 at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
Caused by: java.lang.ClassNotFoundException: javax.annotation.Generated
 at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:435)
 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
 ... 12 more
BUILD FAILED (total time: 1 second)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists