[ 
https://issues.apache.org/jira/browse/NETBEANS-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Svatopluk Dedic updated NETBEANS-5488:
--------------------------------------
    Component/s:     (was: platform - Data Systems)
                 java - Compiler

> NullPointerException when system attempts to create entities from tables
> ------------------------------------------------------------------------
>
>                 Key: NETBEANS-5488
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5488
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Compiler
>    Affects Versions: 12.3
>         Environment: As per IDE Log attached plus:
> Project Properties:
> Server: Payara 5.2020.7
> Java EE version: Java EE 8 Web
> Java Platform: JDK 1.8
> DB: MySQL 5.7.3
> Driver:
>  * 
> C:\Users\klaz3\Downloads\MySQL\MySQL8\Connector-J-8.0\mysql-connector-java-8.0.23.jar
>  * Driver Class: com.mysql.cj.jdbc.Driver
>  * Tested. Connects successfully with DB.
> Maven 3.6.3
> Framework: JSF 2.3 with PrimeFaces 8.0 jar
>  
>  
>            Reporter: Constantine Lazarakis
>            Priority: Blocker
>         Attachments: Apache NetBeans 12.3-User Configuration.txt, 
> Bug-ApacheNetBeans 12.3-IDE Log 24.03.2021.txt, persistence.xml file.txt
>
>
> Steps to replicate
> Set up a Maven Web App as per NB 12.3 wizard.
> Deploy to payara 5.2020.7: success. 
> Create connection pool for server; Ping: successful.
> Create jdbc/datasource for pool. 
> Create persistence.xml; add data source and change transaction type to JTA, 
> in persistence-unit.
> Right click  on project and select New Entity Classes from Database.
> Tables are shown on left side of selection window.
> Select all and move to selection space, right.
> Click Next, click Finnish.
> Assert: Entity Classes have been created in folder specified.
> Actual: Classes are created in folder chosen BUT:
> --Some are just a class name and empty.
> --Some are properly created entity classes or PKs. 
> --there is no particular pattern of which are empty and which are properly 
> created entities.
> Note: 
> In persistence.xml  this is shown as the version: <persistence version="2.1" 
> … http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd";> and
> Library name for persistence is (JPA 2.1).
> However, in libraries under this name the library classpath is : 
> ../javax.persistence-2.2.1.jar, which is JPA 2.2. 
> Library with name EclipseLink (JPA 2.1) has the new version 2.7.7 instead of 
> the version 2.5.   
>              
>  



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

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

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

Reply via email to