Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. 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)

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 12.0
    • Fix Version/s: 12.0
    • Component/s: apisupport - Project
    • Labels:
      None

      Description

      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)

        Attachments

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

              Dates

              • Due:
                Created:
                Updated:

                Issue deployment