Date   

Re: gfv5 window 10 build fails with latest maven and jdk 8

Bill Shannon
 

I had a similar failure a few months ago that was due to something changing in a way that Maven didn't cope with.  "mvn clean" after the git update didn't clean up everything because of how the pom.xml had changed.  I had to clean it up manually.  (Sorry, I don't remember the details.)  Try creating a clean repo and start from scratch and see if it builds.

Gary Bello wrote on 12/22/17 08:07 PM:

mvn version 3.5.2
jdk 1.8.0_152

problem is at line 216 in
C:\Sun\hk2Git\hk2\maven-plugins\hk2-inhabitant-generator\src\main\java\org\jvnet\hk2\generator\internal\GeneratorRunner.java 
on my system.
For some reason the 'default' file cannot be deleted.

snippet:
                    if (!outputFile.delete()) {
                        throw new IOException("Could not delete existing inhabitant file " +
                                outputFile.getAbsolutePath() + " in the noSwap case");

I have debug stepped thru code to where exception is thrown and cannot delete the file from windows either,
windows says JVM has the file open.

Did not experience this issue a few weeks ago - maybe almost 2 months ?

The error happens in the maven plugin, when building the glassfish project,
Glassfish Nucleus HK2 Modules


Could not delete existing inhabitant file C:\Sun\glassfishGit\glassfish\nucleus\hk2\hk2-config\target\classes\META-INF\hk2-locator\default in the noSwap case
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Glassfish Nucleus HK2 Modules ...................... SUCCESS [  5.132 s]
[INFO] HK2 configuration module ........................... FAILURE [ 13.951 s]
[INFO] HK2 configuration reader generator module .......... SKIPPED
[INFO] HK2 config types ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.775 s
[INFO] Finished at: 2017-12-22T20:06:13-08:00
[INFO] Final Memory: 19M/135M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.glassfish.hk2:hk2-inhabitant-generator:2.5.0-b57:generate-inhabitants (generate-inhabitants) on project hk2-config: Could not generate inhabitants file for C:\Sun\glassfishGit\glassfish\nucleus\hk2\hk2-config\target\classes -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.glassfish.hk2:hk2-inhabitant-generator:2.5.0-b57:generate-inhabitants (generate-inhabitants) on project hk2-config: Could not generate inhabitants file for C:\Sun\glassfishGit\glassfish\nucleus\hk2\hk2-config\target\classes
 





Re: Upgrading to glassfish 5 from 4.1 Stackoverflow error

Ed Bratt
 

Could you file an issue about the exception improvement in the issue tracker? https://github.com/javaee/glassfish/issues
Thanks!


My tld in jar file at WEB-INF/lib not recognized in case Loader tag is specified in META-INF/context.xml

yano.naoki@...
 

Hi,

I encountered a problem when displaying my jsp screen that uses custom tag.

  1. Put "test_war.war" in glassfish5/glassfish/domains/domain1/autodeploy
  2. Start GlassFish.
  3. Go to http://localhost8080/test_war/test.jsp
  4. 500 - Internal Server Error will occure. (org.apache.jasper.JasperException: /test.jsp(2,66) PWC6188: The absolute uri: http://www.example.com/taglib/test cannot be resolved in either web.xml or the jar files deployed with this application)
  5. Remove "Loader" tag in glassfish5/glassfish/domains/domain1/applications/META-INF/context.xml or just delete the file.
  6. Restart GlassFish.
  7. Go to http://localhost8080/test_war/test.jsp
  8. No error happens.

I think this behaviour is a bug of GlassFish.

test_war.war is here:
http//nn333nn.info/HMlN

Windows 7 Professional 64-bit
Java 1.8.0_112 64-bit
GlassFish 5.0.1-b01-12_10_2017

Thanks, Naoki


Location of server logs

Derik Devecchio
 

I have a server running a domain.  For now, just the default domain1.

The application on the Java side of things works for a while and can send and receive information form the webpage (Java Script) through the web endpoint.

After a few minutes, (sometimes 30 seoncds some times 5 minutes) the server stops responding.   I find no instance of "java" form ps.  And if I restart the domain I do NOT get the error about how the port is already active.

I am trying to find out why it stops.  I am assuming there is a log somewhere that explains this but the only log I know of is the one in /domain1/logs/server.log.   That log has outputs form my program (the ones I send to System.out.println().   But nothing at the end of that log suggests there was a problem with my program.  


gfv5 window 10 build fails with latest maven and jdk 8

Gary Bello
 

mvn version 3.5.2
jdk 1.8.0_152

problem is at line 216 in
C:\Sun\hk2Git\hk2\maven-plugins\hk2-inhabitant-generator\src\main\java\org\jvnet\hk2\generator\internal\GeneratorRunner.java 
on my system.
For some reason the 'default' file cannot be deleted.

snippet:
                    if (!outputFile.delete()) {
                        throw new IOException("Could not delete existing inhabitant file " +
                                outputFile.getAbsolutePath() + " in the noSwap case");

I have debug stepped thru code to where exception is thrown and cannot delete the file from windows either,
windows says JVM has the file open.

Did not experience this issue a few weeks ago - maybe almost 2 months ?

The error happens in the maven plugin, when building the glassfish project,
Glassfish Nucleus HK2 Modules


Could not delete existing inhabitant file C:\Sun\glassfishGit\glassfish\nucleus\hk2\hk2-config\target\classes\META-INF\hk2-locator\default in the noSwap case
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Glassfish Nucleus HK2 Modules ...................... SUCCESS [  5.132 s]
[INFO] HK2 configuration module ........................... FAILURE [ 13.951 s]
[INFO] HK2 configuration reader generator module .......... SKIPPED
[INFO] HK2 config types ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.775 s
[INFO] Finished at: 2017-12-22T20:06:13-08:00
[INFO] Final Memory: 19M/135M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.glassfish.hk2:hk2-inhabitant-generator:2.5.0-b57:generate-inhabitants (generate-inhabitants) on project hk2-config: Could not generate inhabitants file for C:\Sun\glassfishGit\glassfish\nucleus\hk2\hk2-config\target\classes -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.glassfish.hk2:hk2-inhabitant-generator:2.5.0-b57:generate-inhabitants (generate-inhabitants) on project hk2-config: Could not generate inhabitants file for C:\Sun\glassfishGit\glassfish\nucleus\hk2\hk2-config\target\classes
 




glassfish 5 git code gets errors doing a clean

Gary Bello
 

my glassfish 5 git is uptodate;
when I do a clean it get errors:
is this normal?
Windows build using netbeans 8.2
netbeans info ...

Product Version: NetBeans IDE 8.2 (Build 201609300101)

Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2

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 10 version 10.0 running on amd64; Cp1252; en_US (nb)

User directory: C:\Users\emiddio\AppData\Roaming\NetBeans\8.2

Cache directory: C:\Users\emiddio\AppData\Local\NetBeans\Cache\8.2
       

output below,

cd C:\Sun\glassfishGit\glassfish; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_60" M2_HOME=C:\\Sun\\apache-maven-3.3.9-bin\\apache-maven-3.3.9 cmd /c "\"\"C:\\Sun\\apache-maven-3.3.9-bin\\apache-maven-3.3.9\\bin\\mvn.cmd\" -DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" --debug --update-snapshots -U -X -Djava.net.useSystemProxies=true -DskipTests=true -Dmaven.test.skip=true --fail-at-end clean\""


[INFO] Reactor Summary:
[INFO] 
[INFO] GlassFish Nucleus Parent Project ................... SUCCESS [  1.503 s]
[INFO] Glassfish Nucleus HK2 Modules ...................... SUCCESS [  0.005 s]
[INFO] HK2 configuration module ........................... SUCCESS [  0.900 s]
[INFO] HK2 configuration reader generator module .......... SUCCESS [  0.007 s]
[INFO] HK2 config types ................................... FAILURE [  0.093 s]
[INFO] GlassFish Nucleus Project .......................... SUCCESS [  0.101 s]
[INFO] Distribution Fragments for various OSGi platforms .. SUCCESS [  0.004 s]
[INFO] Apache Felix, associated bundles and conf files .... SUCCESS [  0.258 s]
[INFO] Scattered Archive APIs of Glassfish ................ SUCCESS [  0.004 s]
[INFO] GlassFish Nucleus Grizzly modules .................. SUCCESS [  0.059 s]
[INFO] grizzly-config ..................................... SKIPPED
[INFO] Nucleus Grizzly jars Combining ..................... SKIPPED
[INFO] Public APIs of Glassfish ........................... SKIPPED
[INFO] GlassFish Nucleus Common modules ................... SUCCESS [  0.059 s]
[INFO] Common Utilities ................................... SKIPPED
[INFO] Simple Public APIs of Glassfish .................... SUCCESS [  0.221 s]
[INFO] GlassFish Nucleus Core modules ..................... SUCCESS [  0.004 s]
[INFO] Appserver Core Bootstraping Classes ................ SUCCESS [  0.152 s]
[INFO] Test Utilities Modules ............................. SUCCESS [  0.003 s]
[INFO] Test utilities ..................................... SKIPPED
[INFO] Admin Modules ...................................... SUCCESS [  0.075 s]
[INFO] admin-config-api ................................... SKIPPED
[INFO] Private APIs of Glassfish .......................... SKIPPED
[INFO] Nucleus Security Parent ............................ SUCCESS [  0.021 s]
[INFO] GlassFish SSL Implementation Module ................ SKIPPED
[INFO] GlassFish Nucleus Deployment Related Modules ....... SUCCESS [  0.073 s]
[INFO] Deployment Related Common Classes .................. SKIPPED
[INFO] Repackaged nucleus external modules ................ SUCCESS [  0.078 s]
[INFO] ldapbp repackaged as a module ...................... SUCCESS [  0.115 s]
[INFO] Security Core Classes .............................. SKIPPED
[INFO] Security Services and SPI .......................... SKIPPED
[INFO] admin-util ......................................... SKIPPED
[INFO] Admin CLI bridge command to the OSGi Shell ......... SKIPPED
[INFO] Cluster ............................................ SUCCESS [  0.008 s]
[INFO] cluster-common ..................................... SKIPPED
[INFO] Cluster SSH Provisioning ........................... SKIPPED
[INFO] Nucleus Logging Classes ............................ SKIPPED
[INFO] admin-launcher ..................................... SKIPPED
[INFO] admin-cli .......................................... SKIPPED
[INFO] Admin CLI, interactive OSGi shell command .......... SKIPPED
[INFO] OSGi Container ..................................... SKIPPED
[INFO] flashlight-framework ............................... SKIPPED
[INFO] GlassFish API Exporter Module ...................... SUCCESS [  0.007 s]
[INFO] Kernel Classes ..................................... SKIPPED
[INFO] GMS Bootstrap Module ............................... SKIPPED
[INFO] cluster-admin ...................................... SKIPPED
[INFO] admin-server-management ............................ SKIPPED
[INFO] cluster-cli ........................................ SKIPPED
[INFO] GMS Module ......................................... SKIPPED
[INFO] Glassfish MBeanServer support ...................... SKIPPED
[INFO] AMX Core ........................................... SKIPPED
[INFO] GlassFish Extra JRE Packages ....................... SUCCESS [  0.011 s]
[INFO] Context Propagation ................................ SKIPPED
[INFO] Basic set of documentation for Glassfish distributions SUCCESS [  0.059 s]
[INFO] admin-monitoring ................................... SKIPPED
[INFO] GlassFish Admin REST Parent ........................ SUCCESS [  0.118 s]
[INFO] GlassFish Admin REST Testing Framework ............. SUCCESS [  0.009 s]
[INFO] GlassFish Admin REST Client ........................ SKIPPED
[INFO] Connector for GlassFish Admin REST Service ......... SKIPPED
[INFO] GlassFish Admin REST Service ....................... SKIPPED
[INFO] Nucleus template ................................... SUCCESS [  0.066 s]
[INFO] flashlight-agent ................................... SUCCESS [  0.080 s]
[INFO] GlassFish Flashlight Extra JDK Pkgs ................ SUCCESS [  0.069 s]
[INFO] Flashlight ......................................... SUCCESS [  0.070 s]
[INFO] Deployment Related Admin Classes ................... SKIPPED
[INFO] AutoDeploy Classes ................................. SKIPPED
[INFO] Set of DTDs for Nucleus distributions .............. SUCCESS [  0.169 s]
[INFO] Set of schemas for Nucleus ......................... SUCCESS [  0.003 s]
[INFO] javax.validation:2.0.0.Final as OSGi bundle ........ SUCCESS [  0.070 s]
[INFO] HV. CDI portable extension as OSGi bundle .......... SUCCESS [  0.007 s]
[INFO] Glassfish Nucleus packages ......................... SUCCESS [  0.135 s]
[INFO] Felix Nucleus Package .............................. SUCCESS [  0.109 s]
[INFO] Nucleus HK2 Package ................................ SUCCESS [  0.062 s]
[INFO] Nucleus Grizzly Package ............................ SKIPPED
[INFO] Nucleus Jersey Package ............................. SUCCESS [  0.006 s]
[INFO] Nucleus Package .................................... SKIPPED
[INFO] Nucleus Base CORBA APIs Package .................... SUCCESS [  0.110 s]
[INFO] Nucleus Commons Package ............................ SKIPPED
[INFO] Nucleus Shoal Package .............................. SUCCESS [  0.008 s]
[INFO] Nucleus Clustering Package ......................... SKIPPED
[INFO] Nucleus Management Package ......................... SKIPPED
[INFO] Glassfish OSGi Support Package ..................... SKIPPED
[INFO] Glassfish JMX Package .............................. SKIPPED
[INFO] Nucleus distributions .............................. SUCCESS [  0.061 s]
[INFO] Glassfish Atomic Distribution ...................... SKIPPED
[INFO] Nucleus Distribution ............................... SKIPPED
[INFO] nucleus.tests.utils-ng ............................. SKIPPED
[INFO] Diagnostics ........................................ SUCCESS [  0.006 s]
[INFO] Diagnostics API .................................... SKIPPED
[INFO] GlassFish Diagnostics Context ...................... SKIPPED
[INFO] nucleus.resources .................................. SKIPPED
[INFO] GlassFish Appserver Parent Project ................. SUCCESS [  0.008 s]
[INFO] GlassFish Common modules ........................... SUCCESS [  0.004 s]
[INFO] stats77 ............................................ SKIPPED
[INFO] GlassFish Java EE Annotation Framework ............. SKIPPED
[INFO] GlassFish Deployment Related Modules ............... SUCCESS [  0.003 s]
[INFO] Deployment Object Library .......................... SKIPPED
[INFO] AMX JavaEE ......................................... SKIPPED
[INFO] Java EE dependent public APIs of Glassfish ......... SKIPPED
[INFO] GlassFish Security Parent .......................... SUCCESS [  0.114 s]
[INFO] Jaspic Provider Framework .......................... SUCCESS [  0.073 s]
[INFO] GlassFish Transaction modules ...................... SUCCESS [  0.004 s]
[INFO] Transaction Service Internal API ................... SKIPPED
[INFO] GlassFish Resources infrastructure related modules . SUCCESS [  0.083 s]
[INFO] Resources Connector ................................ SKIPPED
[INFO] Connectors Parent .................................. SUCCESS [  0.006 s]
[INFO] Connectors Private APIs for GlassFish Containers ... SKIPPED
[INFO] GlassFish EJB container related modules ............ SUCCESS [  0.071 s]
[INFO] EJB container Internal API ......................... SKIPPED
[INFO] Java EE Security Core Classes ...................... SKIPPED
[INFO] Java EE Management JSR 77 MEJB ..................... SKIPPED
[INFO] mejb distribution fragment ......................... SKIPPED
[INFO] Glassfish Naming ................................... SKIPPED
[INFO] Container Common ................................... SKIPPED
[INFO] GlassFish HA modules ............................... SUCCESS [  0.006 s]
[INFO] GlassFish ha-file-store ............................ SUCCESS [  0.117 s]
[INFO] GlassFish ha-shoal-cache-bootstrap ................. SKIPPED
[INFO] GlassFish ha-shoal-store ........................... SKIPPED
[INFO] Set of DTDs for GlassFish Java EE distributions .... SUCCESS [  0.006 s]
[INFO] Set of schemas for Java EE ......................... SUCCESS [  0.059 s]
[INFO] Deployment Client Classes and Interfaces ........... SKIPPED
[INFO] Deployment Related JavaEE Core Classes ............. SKIPPED
[INFO] GlassFish Web container related modules ............ SUCCESS [  0.006 s]
[INFO] Connector for GlassFish Web Container .............. SKIPPED
[INFO] EJB Container connector for Glassfish .............. SKIPPED
[INFO] GlassFish Connectors Connector ..................... SKIPPED
[INFO] App Client Modules ................................. SUCCESS [  0.072 s]
[INFO] GlassFish App Client Server-side Modules ........... SUCCESS [  0.004 s]
[INFO] GlassFish AppClient Server-Side Connector .......... SKIPPED
[INFO] Deployment Related JavaEE Full Profile Classes ..... SKIPPED
[INFO] JSR-88 JAR and dist. fragment ...................... SUCCESS [  0.159 s]
[INFO] JSR-88 implementation declaration JAR .............. SUCCESS [  0.003 s]
[INFO] JSR-88 dist. fragment .............................. SUCCESS [  0.127 s]
[INFO] Admin Modules ...................................... SUCCESS [  0.005 s]
[INFO] Backup Restore classes ............................. SKIPPED
[INFO] App Server CLI Skinning Class ...................... SKIPPED
[INFO] admin-cli-optional ................................. SKIPPED
[INFO] admin-core ......................................... SKIPPED
[INFO] Appserver template ................................. SUCCESS [  0.272 s]
[INFO] GlassFish Core modules ............................. SUCCESS [  0.004 s]
[INFO] Java EE related distributions kernel Classes ....... SKIPPED
[INFO] GlassFish API Exporter Module Fragment ............. SUCCESS [  0.130 s]
[INFO] JTA Implementation for Glassfish ................... SKIPPED
[INFO] GlassFish ORB related modules ...................... SUCCESS [  0.005 s]
[INFO] GlassFish ORB enabler implementation ............... SKIPPED
[INFO] GlassFish ORB connector implementation ............. SKIPPED
[INFO] JavaMail Resources Support related modules ......... SUCCESS [  0.122 s]
[INFO] JavaMail Connector ................................. SKIPPED
[INFO] Connectors Runtime ................................. SKIPPED
[INFO] JTS Implementation for Glassfish ................... SKIPPED
[INFO] Web Container Naming Utilities ..................... SKIPPED
[INFO] Web Container Common Utilities ..................... SKIPPED
[INFO] Core Servlet Container ............................. SKIPPED
[INFO] JSTL implementation connector module ............... SKIPPED
[INFO] Jersey MVC TLD connector implementation module ..... SKIPPED
[INFO] Web module command line interface .................. SKIPPED
[INFO] Web container and GUI plug-in common classes ....... SKIPPED
[INFO] WebTier Security Integration ....................... SKIPPED
[INFO] GlassFish Web container embedded related modules ... SUCCESS [  0.005 s]
[INFO] GlassFish Web container Embedded APIs .............. SUCCESS [  0.005 s]
[INFO] Server-Sent Events ................................. SUCCESS [  0.058 s]
[INFO] Web Container glue code ............................ SKIPPED
[INFO] JSF implementation connector module ................ SKIPPED
[INFO] JSP caching taglib connector module ................ SKIPPED
[INFO] Web Container HA code .............................. SKIPPED
[INFO] Web Related Implementations for GlassFish .......... SKIPPED
[INFO] Weld connector for glassfish ....................... SKIPPED
[INFO] GlassFish Core EJB Client .......................... SUCCESS [  0.007 s]
[INFO] GlassFish persistence related modules .............. SUCCESS [  0.057 s]
[INFO] Common persistence code between JPA and CMP ........ SKIPPED
[INFO] GlassFish Core EJB container implementation ........ SKIPPED
[INFO] Weld integration for glassfish ..................... SKIPPED
[INFO] Weld Integration Fragment .......................... SUCCESS [  0.006 s]
[INFO] Fragment bundle for Weld related testing ........... SUCCESS [  0.119 s]
[INFO] cdi-api Fragment ................................... SUCCESS [  0.003 s]
[INFO] Full EJB Container add-ons ......................... SKIPPED
[INFO] EJB Timer Service Application ...................... SKIPPED
[INFO] GlassFish EJB timer app database init scripts ...... SKIPPED
[INFO] EJB tier for GlassFish ............................. SKIPPED
[INFO] GlassFish resources runtime ........................ SKIPPED
[INFO] GlassFish JavaMail runtime ......................... SKIPPED
[INFO] JavaEE Connector Architecture Descriptors .......... SUCCESS [  0.007 s]
[INFO] Connectors Inbound Support ......................... SKIPPED
[INFO] Work Management .................................... SKIPPED
[INFO] JDBC Module ........................................ SUCCESS [  0.010 s]
[INFO] JDBC Config Module ................................. SKIPPED
[INFO] Connectors admin ................................... SKIPPED
[INFO] GlassFish Load-Balancer Plugin related modules ..... SUCCESS [  0.056 s]
[INFO] Load Balancer Internal API ......................... SKIPPED
[INFO] Load-Balancer admin ................................ SKIPPED
[INFO] GlassFish JMS modules .............................. SUCCESS [  0.008 s]
[INFO] JMS Connector Module for Runtime ................... SKIPPED
[INFO] JMS Module ......................................... SKIPPED
[INFO] JMS admin .......................................... SKIPPED
[INFO] JMS Injection Module for Runtime ................... SKIPPED
[INFO] JDBC Resource Adapter .............................. SUCCESS [  0.008 s]
[INFO] Core JDBC Resource Adapter classes ................. SKIPPED
[INFO] JDBC 30 related classes for JDBC Resource Adapter .. SKIPPED
[INFO] JDBC 40 related classes for JDBC Resource Adapter .. SKIPPED
[INFO] JDBC Templates ..................................... SUCCESS [  0.229 s]
[INFO] Distribution Module for JDBC Resource Adapter ...... SKIPPED
[INFO] JDBC Runtime Module ................................ SKIPPED
[INFO] JDBC admin ......................................... SKIPPED
[INFO] GlassFish Oracle JDBC Packages ..................... SUCCESS [  0.005 s]
[INFO] Connector for JPA runtime in glassfish ............. SKIPPED
[INFO] JPA container for glassfish ........................ SKIPPED
[INFO] Declaring EclipseLink dependencies ................. SUCCESS [  0.007 s]
[INFO] GlassFish cmp related modules ...................... SUCCESS [  0.068 s]
[INFO] utility module for cmp ............................. SKIPPED
[INFO] model module for cmp ............................... SKIPPED
[INFO] Database Generator module for cmp .................. SKIPPED
[INFO] ejb-mapping module for cmp ......................... SKIPPED
[INFO] enhancer module for cmp ............................ SKIPPED
[INFO] internal-api module for cmp ........................ SKIPPED
[INFO] Entity Bean container .............................. SKIPPED
[INFO] support-sqlstore module for cmp .................... SKIPPED
[INFO] support ejb module for cmp ......................... SKIPPED
[INFO] GlassFish cmp scripts .............................. SUCCESS [  0.006 s]
[INFO] CMP tier for GlassFish ............................. SKIPPED
[INFO] Concurrency Utilities Modules ...................... SUCCESS [  0.068 s]
[INFO] Concurrent Connector Module ........................ SKIPPED
[INFO] Concurrent Implementation Module ................... SKIPPED
[INFO] Batch runtime modules for Glassfish ................ SUCCESS [  0.008 s]
[INFO] Batch database init scripts for GlassFish .......... SUCCESS [  0.083 s]
[INFO] Batch Connector for Glassfish ...................... SKIPPED
[INFO] Batch Commands for Glassfish ....................... SKIPPED
[INFO] GlassFish Extras modules ........................... SUCCESS [  0.008 s]
[INFO] GlassFish JavaEE Manifest pom ...................... SUCCESS [  0.068 s]
[INFO] GlassFish javaee.jar ............................... SUCCESS [  0.069 s]
[INFO] GlassFish javaee.jar distribution fragment ......... SUCCESS [  0.166 s]
[INFO] GlassFish appserv-rt Manifest pom .................. SUCCESS [  0.006 s]
[INFO] GlassFish appserv-rt.jar ........................... SUCCESS [  0.073 s]
[INFO] GlassFish appserv-rt distribution fragment ......... SUCCESS [  0.007 s]
[INFO] DataProvider ....................................... SUCCESS [  0.091 s]
[INFO] Admin Console Integration .......................... SKIPPED
[INFO] Admin Console Integration .......................... SKIPPED
[INFO] Admin Console Packages ............................. SUCCESS [  0.007 s]
[INFO] Admin Console Common ............................... SKIPPED
[INFO] Admin Console Core Jar ............................. SKIPPED
[INFO] Admin Console Concurrent Plugin .................... SKIPPED
[INFO] Admin Console Clustering Support Plugin ............ SKIPPED
[INFO] Admin Console Community Edition Theme Plugin ....... SKIPPED
[INFO] Admin Console Web Container Plugin ................. SKIPPED
[INFO] Admin Console JTS Plugin ........................... SKIPPED
[INFO] Admin Console JDBC Plugin .......................... SKIPPED
[INFO] Admin Console Connectors Plugin .................... SKIPPED
[INFO] Admin Console JMS Plugin ........................... SKIPPED
[INFO] Admin Console EJB Container Plugin ................. SKIPPED
[INFO] Admin Console EJB Local (Lite) Plugin .............. SKIPPED
[INFO] Admin Console Corba Plugin ......................... SKIPPED
[INFO] Admin Console Full distribution plugin ............. SKIPPED
[INFO] Admin Console WAR .................................. SKIPPED
[INFO] Admin Console Install Fragment for Web distro ...... SKIPPED
[INFO] Embedded GlassFish Shell ........................... SKIPPED
[INFO] Embedded GlassFish Shell dist. fragment ............ SKIPPED
[INFO] Glassfish packages ................................. SUCCESS [  0.082 s]
[INFO] Glassfish CMP Package .............................. SKIPPED
[INFO] Glassfish Commons Package .......................... SKIPPED
[INFO] Glassfish Clustering Package ....................... SKIPPED
[INFO] Repackaged external modules ........................ SUCCESS [  0.005 s]
[INFO] JAXR GlassFish System RA Assembly .................. SUCCESS [  0.006 s]
[INFO] Glassfish Commons for Full Distribution ............ SKIPPED
[INFO] Corba Package ...................................... SUCCESS [  0.085 s]
[INFO] Base CORBA APIs Package ............................ SUCCESS [  0.176 s]
[INFO] GlassFish ORB interface layer implementation ....... SKIPPED
[INFO] Ejb Security Integration ........................... SKIPPED
[INFO] Glassfish EJB Package .............................. SKIPPED
[INFO] Glassfish EJB Lite Container Package ............... SKIPPED
[INFO] GlassFish HK2 Package .............................. SUCCESS [  0.087 s]
[INFO] Glassfish Grizzly Package .......................... SKIPPED
[INFO] Grizzly Glassfish Extra modules .................... SUCCESS [  0.005 s]
[INFO] GlassFish Grizzly adapter container implementation . SKIPPED
[INFO] Glassfish Grizzly extra jars Combining ............. SKIPPED
[INFO] Glassfish Grizzly Package .......................... SKIPPED
[INFO] Glassfish Connector Package ........................ SKIPPED
[INFO] Glassfish JCDI Package ............................. SKIPPED
[INFO] Glassfish JDBC Package ............................. SKIPPED
[INFO] JMS GlassFish System RA Assembly ................... SUCCESS [  0.007 s]
[INFO] Glassfish Java Message Service ..................... SKIPPED
[INFO] Glassfish JPA Package .............................. SKIPPED
[INFO] Glassfish JSF Package .............................. SUCCESS [  0.185 s]
[INFO] Glassfish Transaction Package ...................... SKIPPED
[INFO] Glassfish Java Transaction Service ................. SKIPPED
[INFO] Glassfish Management Package ....................... SKIPPED
[INFO] Glassfish Nucleus Package .......................... SKIPPED
[INFO] Glassfish Web Container Package .................... SKIPPED
[INFO] Jersey Package ..................................... SUCCESS [  0.058 s]
[INFO] GlassFish Web Services related modules ............. SUCCESS [  0.004 s]
[INFO] JSR-109 implementation to deploy Metro ............. SKIPPED
[INFO] GlassFish Metro Glue Code .......................... SKIPPED
[INFO] Connector for GlassFish Web Services Container ..... SKIPPED
[INFO] SOAP/TCP integration code .......................... SKIPPED
[INFO] WebServices Security and JSR 196 implementation .... SKIPPED
[INFO] GlassFish webservices scripts ...................... SUCCESS [  0.008 s]
[INFO] GlassFish Metro Related Fragments .................. SUCCESS [  0.075 s]
[INFO] Metro Package ...................................... SKIPPED
[INFO] Embedded GlassFish Static Shell .................... SKIPPED
[INFO] Embedded GlassFish Static Shell dist. fragment ..... SKIPPED
[INFO] Embedded GlassFish Shell Jars ...................... SUCCESS [  0.007 s]
[INFO] Glassfish Legal content distribution fragment ...... SUCCESS [  0.548 s]
[INFO] Appserver Base Bundle .............................. SUCCESS [  0.008 s]
[INFO] Felix Package ...................................... SUCCESS [  0.140 s]
[INFO] Shoal Package ...................................... SUCCESS [  0.077 s]
[INFO] Glassfish JavaHelp Package ......................... SUCCESS [  0.105 s]
[INFO] Glassfish HA Package ............................... SKIPPED
[INFO] Glassfish Admin GUI Package ........................ SKIPPED
[INFO] Verifier implementation module ..................... SKIPPED
[INFO] GlassFish Verifier Extension Bundle ................ SUCCESS [  0.003 s]
[INFO] Verifier scripts ................................... SUCCESS [  0.096 s]
[INFO] Verifier Package ................................... SKIPPED
[INFO] App Client - client-side modules ................... SUCCESS [  0.164 s]
[INFO] ACC Config Classes (JAXB) .......................... SUCCESS [  0.339 s]
[INFO] Appclient Security Integration ..................... SKIPPED
[INFO] Client OSGi module (including ACC) ................. SKIPPED
[INFO] Client library (including ACC) ..................... SKIPPED
[INFO] GlassFish appclient scripts ........................ SUCCESS [  0.009 s]
[INFO] GlassFish AppClient Server-Side Core ............... SKIPPED
[INFO] Glassfish Application Client Package ............... SKIPPED
[INFO] Derby Package ...................................... SUCCESS [  0.147 s]
[INFO] MQ Package ......................................... SUCCESS [  0.005 s]
[INFO] A Pluggable InMemory JACC Provider ................. SKIPPED
[INFO] Glassfish Commons for Web Profile Distribution ..... SKIPPED
[INFO] Glassfish OSGi Support Package ..................... SKIPPED
[INFO] Glassfish OSGi HTTP Service package ................ SUCCESS [  0.165 s]
[INFO] Console extensions for OSGi platforms .............. SUCCESS [  0.005 s]
[INFO] Felix Web Console Extension for GlassFish .......... SKIPPED
[INFO] GlassFish OSGi Console Plugin ...................... SKIPPED
[INFO] Glassfish OSGi Management console package .......... SKIPPED
[INFO] Ant tasks .......................................... SKIPPED
[INFO] GlassFish Ant Tasks Package ........................ SKIPPED
[INFO] Glassfish JMX Package .............................. SKIPPED
[INFO] Glassfish EntityBeans Container Package ............ SKIPPED
[INFO] JSON Package ....................................... SUCCESS [  0.016 s]
[INFO] Glassfish featuresets .............................. SUCCESS [  0.177 s]
[INFO] Glassfish Minnow Featureset ........................ SKIPPED
[INFO] Glassfish Web Featureset ........................... SKIPPED
[INFO] Glassfish Featureset ............................... SKIPPED
[INFO] Glassfish distributions ............................ SUCCESS [  0.004 s]
[INFO] Glassfish Minnow Distribution ...................... SKIPPED
[INFO] Glassfish Web Distribution ......................... SKIPPED
[INFO] Glassfish Distribution ............................. SKIPPED
[INFO] Security Related Implementation for GlassFish ...... SKIPPED
[INFO] GlassFish Tests related modules .................... SUCCESS [  0.008 s]
[INFO] btrace jar files ................................... SUCCESS [  0.153 s]
[INFO] GlassFish Flashlight Client ........................ SKIPPED
[INFO] Flashlight ......................................... SUCCESS [  0.003 s]
[INFO] GlassFish Project .................................. SUCCESS [  0.200 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57.227 s
[INFO] Finished at: 2017-12-21T19:41:14-08:00
[INFO] Final Memory: 227M/949M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.glassfish.hk2:config-generator:5.0.1-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.glassfish.hk2:config-generator:jar:5.0.1-SNAPSHOT -> [Help 1]
org.apache.maven.plugin.PluginResolutionException: Plugin org.glassfish.hk2:config-generator:5.0.1-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.glassfish.hk2:config-generator:jar:5.0.1-SNAPSHOT
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:128)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:179)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:284)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:241)
at org.apache.maven.lifecycle.internal.DefaultLifecycleMappingDelegate.calculateLifecycleMappings(DefaultLifecycleMappingDelegate.java:110)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateLifecycleMappings(DefaultLifecycleExecutionPlanCalculator.java:266)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:217)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:127)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:145)
at org.apache.maven.lifecycle.internal.builder.BuilderCommon.resolveBuildPlan(BuilderCommon.java:96)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:109)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.glassfish.hk2:config-generator:jar:5.0.1-SNAPSHOT
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:124)
... 27 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.glassfish.hk2:config-generator:jar:5.0.1-SNAPSHOT
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:434)
... 31 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
 


Re: GlassFish 5 Build 25 : Websocket and possible memory leak suspects - org.glassfish.grizzly.http2.AlpnSupport, sun.security.ssl.SSLEngineImpl

info4andrey@...
 

Hi there!

I do confirm the issue mentioned by "zakimak9@...". Got the same results after checking the heapdump from pre-prod server.

Thanks!


MIssing foreign key on children - except on those of last parent added to db

Trond Arild Lode Tobiassen Heidelberg
 
Edited

Hi 

I have this code:

@Entity(name = "ABSTRACT_MESSAGE_TABLE")
@DiscriminatorColumn(length=64)
public abstract class AbstractMessage<T extends AbstractMessage<T, U, X>, U extends StartLine<U>, X extends AbstractPart<X>>
implements Serializable {
@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE)
private Long id;
 
public Long getId() {
return id;
}
 
private void setId(Long id) {
this.id = id;
}
 
/**
*/
private static final long serialVersionUID = xxxxxxxxxxxxxxxxxxxxxxxxxxL;
 
protected AbstractMessage() {
}
 
@OneToOne(optional = false, cascade = CascadeType.ALL)
@JoinColumn(name = "START_LINE", unique = false, nullable = true, updatable = false)
protected U startLine;
 
 
public U getStartLine() {
return startLine;
}
 
protected void setStartLine(U startLine) {
this.startLine = startLine;
}
 
@OneToMany(cascade = CascadeType.ALL)
@JoinColumn(name = "MESSAGE_ID", nullable = true, unique = false, updatable = false)
protected List<AbstractHeaderField<?>> sipHeadersList;


It is MESSAGE_ID which is filled in only for last parent.

Does anyone know what might be wrong? Same errror for glassfish 4.1 and 5.0.

Here are table contents:
ABSTRACT_MESSAGE_TABLE:

ID ...
63 REGISTER_EMPTY_PART_TABLE 0 64 62
119 SIP401_UNAUTHORIZED_EMPTY_PART_TABLE 0 120 62
190 REGISTER_EMPTY_PART_TABLE 0 191 189
246 SIP401_UNAUTHORIZED_EMPTY_PART_TABLE 0 247 189
323 REGISTER_EMPTY_PART_TABLE 0 324 322
416 SIP200_OK_EMPTY_PART_TABLE 0 417 322
476 REGISTER_EMPTY_PART_TABLE 0 477 475
583 SIP200_OK_EMPTY_PART_TABLE 0 584 582

ABSTRACT_HEADER_FIELD_TABLE:

ID ...... MESSAGE_ID (last column either null - not visible - or 583 marked in bold)
101 ALLOW_TABLE 0
142 ALLOW_TABLE 0
158 CSEQ_TABLE 0 9350 0
104 CSEQ_TABLE 0 9350 0
137 CSEQ_TABLE 0 9350 0
91 CSEQ_TABLE 0 9350 0
89 CALL_ID_TABLE 90 0
135 CALL_ID_TABLE 136 0
95 CONTACT_TABLE 0
143 CONTENT_LENGTH_TABLE 0 0
102 CONTENT_LENGTH_TABLE 0 0
141 EXPIRES_TABLE 900 0
100 EXPIRES_TABLE 900 0
105 FROM_TABLE 106 0
159 FROM_TABLE 160 0
82 FROM_TABLE 83 0
131 FROM_TABLE 132 0
81 MAX_FORWARDS_TABLE 70 0
74 ROUTE_TABLE 0
86 TO_TABLE 87 0
144 TO_TABLE 145 0
110 TO_TABLE 111 0
163 TO_TABLE 164 0
92 USER_AGENT_TABLE 0
138 USER_AGENT_TABLE 0
67 VIA_TABLE 0
122 VIA_TABLE 0
149 WWW_AUTHENTICATE_TABLE 0
177 CSEQ_TABLE 0 9350 0
178 TO_TABLE 179 0
228 ALLOW_TABLE 0
269 ALLOW_TABLE 0
264 CSEQ_TABLE 0 9350 0
231 CSEQ_TABLE 0 9350 0
285 CSEQ_TABLE 0 9350 0
218 CSEQ_TABLE 0 9350 0
216 CALL_ID_TABLE 217 0
262 CALL_ID_TABLE 263 0
222 CONTACT_TABLE 0
229 CONTENT_LENGTH_TABLE 0 0
270 CONTENT_LENGTH_TABLE 0 0
227 EXPIRES_TABLE 900 0
268 EXPIRES_TABLE 900 0
209 FROM_TABLE 210 0
232 FROM_TABLE 233 0
286 FROM_TABLE 287 0
258 FROM_TABLE 259 0
208 MAX_FORWARDS_TABLE 70 0
201 ROUTE_TABLE 0
271 TO_TABLE 272 0
213 TO_TABLE 214 0
290 TO_TABLE 291 0
237 TO_TABLE 238 0
219 USER_AGENT_TABLE 0
265 USER_AGENT_TABLE 0
249 VIA_TABLE 0
194 VIA_TABLE 0
276 WWW_AUTHENTICATE_TABLE 0
310 CSEQ_TABLE 0 9350 0
304 CSEQ_TABLE 0 9350 0
311 TO_TABLE 312 0
305 TO_TABLE 306 0
361 ALLOW_TABLE 0
362 AUTHORIZATION_TABLE 0
397 CSEQ_TABLE 0 9350 0
375 CSEQ_TABLE 0 9351 0
391 CSEQ_TABLE 0 9350 0
403 CSEQ_TABLE 0 9351 0
351 CSEQ_TABLE 0 9351 0
349 CALL_ID_TABLE 350 0
355 CONTACT_TABLE 0
373 CONTENT_LENGTH_TABLE 0 0
360 EXPIRES_TABLE 900 0
342 FROM_TABLE 343 0
376 FROM_TABLE 377 0
341 MAX_FORWARDS_TABLE 70 0
334 ROUTE_TABLE 0
392 TO_TABLE 393 0
398 TO_TABLE 399 0
381 TO_TABLE 382 0
346 TO_TABLE 347 0
404 TO_TABLE 405 0
352 USER_AGENT_TABLE 0
327 VIA_TABLE 0
444 ALLOW_TABLE 0
434 CSEQ_TABLE 0 9351 0
452 CSEQ_TABLE 0 9351 0
410 CSEQ_TABLE 0 9351 0
432 CALL_ID_TABLE 433 0
438 CONTACT_TABLE 0
445 CONTENT_LENGTH_TABLE 0 0
443 EXPIRES_TABLE 900 0
428 FROM_TABLE 429 0
453 FROM_TABLE 454 0
411 TO_TABLE 412 0
446 TO_TABLE 447 0
457 TO_TABLE 458 0
435 USER_AGENT_TABLE 0
419 VIA_TABLE 0
514 ALLOW_TABLE 0
515 AUTHORIZATION_TABLE 0
504 CSEQ_TABLE 0 9351 0
554 CSEQ_TABLE 0 9350 0
548 CSEQ_TABLE 0 9351 0
470 CSEQ_TABLE 0 9350 0
544 CSEQ_TABLE 0 9350 0
560 CSEQ_TABLE 0 9351 0
528 CSEQ_TABLE 0 9351 0
502 CALL_ID_TABLE 503 0
508 CONTACT_TABLE 0
526 CONTENT_LENGTH_TABLE 0 0
513 EXPIRES_TABLE 900 0
495 FROM_TABLE 496 0
529 FROM_TABLE 530 0
494 MAX_FORWARDS_TABLE 70 0
487 ROUTE_TABLE 0
499 TO_TABLE 500 0
471 TO_TABLE 472 0
549 TO_TABLE 550 0
561 TO_TABLE 562 0
534 TO_TABLE 535 0
545 TO_TABLE 546 0
555 TO_TABLE 556 0
505 USER_AGENT_TABLE 0
480 VIA_TABLE 0
611 ALLOW_TABLE 0 583
601 CSEQ_TABLE 0 9351 0 583
569 CSEQ_TABLE 0 9351 0
574 CSEQ_TABLE 0 9350 0
565 CSEQ_TABLE 0 9350 0
619 CSEQ_TABLE 0 9351 0
578 CSEQ_TABLE 0 9351 0
599 CALL_ID_TABLE 600 0 583
605 CONTACT_TABLE 0 583
612 CONTENT_LENGTH_TABLE 0 0 583
610 EXPIRES_TABLE 900 0 583
620 FROM_TABLE 621 0
595 FROM_TABLE 596 0 583
613 TO_TABLE 614 0 583
624 TO_TABLE 625 0
570 TO_TABLE 571 0
575 TO_TABLE 576 0
566 TO_TABLE 567 0
579 TO_TABLE 580 0
602 USER_AGENT_TABLE 0 583
586 VIA_TABLE 0 583
 
Glassfish 4.1 and 5.0
Java SE 8
Java EE 7
Win 7
Oracle 12c
ojdbc14 and same with ojdbc7 (12.1.0.1)


You can see that message with id 416 is identical to 583 (and the result of the exact same process). I wonder why this happens.
I have also seen that a 401 message is saved correctly.
It might be helpful to mention that the problematic rows are children of children which parent is correctly saved (updated with foreign key). It is a mq message which does the database work.


Re: Internal Exception: java.sql.SQLException: ORA-01400: kan ikke sette inn NULL i ("XXXUSER"."ABSTRACT_FIELD_VALUE_PART_TABLE"."ID")

Trond Arild Lode Tobiassen Heidelberg
 

Problem might ave been reated to missing @Transient on non-persistable guava types.


Re: java.lang.NullPointerException at org.eclipse.persistence.internal.jpa.metamodel.proxy.AttributeProxyImpl.getPersistentAttributeType(AttributeProxyImpl.java:78)

Trond Arild Lode Tobiassen Heidelberg
 
Edited

Turns out it did not work on 4.1 either. But the error message was a lot more descriptive. I removedan accidental comment of annotations and the metamodel and code matched again. The code now runs under 5.0 as well.

Please make 5.1 as descriptive as 4.1.


java.lang.NullPointerException at org.eclipse.persistence.internal.jpa.metamodel.proxy.AttributeProxyImpl.getPersistentAttributeType(AttributeProxyImpl.java:78)

Trond Arild Lode Tobiassen Heidelberg
 

 java.lang.NullPointerException
at org.eclipse.persistence.internal.jpa.metamodel.proxy.AttributeProxyImpl.getPersistentAttributeType(AttributeProxyImpl.java:78)
at org.eclipse.persistence.internal.jpa.querydef.FromImpl.get(FromImpl.java:274)
at no.tobiassenit.sip.registrar.session.ExpiredContactSessionHolder.inactivateExpireds(ExpiredContactSessionHolder.java:27)
at no.tobiassenit.sip.registrar.session.DeregisterBatchBean.myJob(DeregisterBatchBean.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4820)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:824)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:81)
at org.jboss.weld.module.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:823)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundTimeout(SystemInterceptorProxy.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:823)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4792)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4780)
at com.sun.ejb.containers.BaseContainer.callEJBTimeout(BaseContainer.java:4085)
... 8 more



public class ExpiredContactSessionHolder { public static void inactivateExpireds(EntityManager em) throws SipException{ CriteriaQuery<ContactSession> criteriaQuery = em.getCriteriaBuilder().createQuery(ContactSession.class); Root<ContactSession> contactSessionRoot = criteriaQuery.from(ContactSession.class); Predicate isRegisterExpired =
 
Predicate isRegisterExpired = em.getCriteriaBuilder().lessThan(contactSessionRoot.get(ContactSession_.registerExpire), new Date());  //line 27

This works in 4.1


Re: Upgrading to glassfish 5 from 4.1 Stackoverflow error

Trond Arild Lode Tobiassen Heidelberg
 

Found the problem. Ho-ho. Santa brought som insight. Turns out i was not annotating my nonpersistable guava types with @Transient. Maybe 5.0.1 can bring a clearer exception message to this case.


Upgrading to glassfish 5 from 4.1 Stackoverflow error

Trond Arild Lode Tobiassen Heidelberg
 
Edited

Please note that before upgrading to 5.0 the below case/topic describes what happens when running the code (no id gets injected into a row of the the twentifirst table handled by the server)


I notice in the log that a number of things are skipped. Not sure whether this is parts of the libraries or the entire libraries. Also seems from end of log that this is related to annotations. Thus I have commented away those that I think might be slightly incorrect (trusting eclipselink to guide me on java.util.Map where value is a collection. Se below for example)

26.11.17
I have debugged and found that even though the annotations are commented the stackoverflow still occurs when a certain class is handled. I guess it is due to the Map<String, Collection<AbstractParamValue>>. Is there a way to persist this, or am I better off making an object containing a collection and use it as value?

@ElementCollection
@CollectionTable(name = "ABSTRACT_HEADER_PARAMS_PARAMS_TABLE")
@MapKeyColumn(name = "ABSTRACT_HEADER_PARAMS_PARAMS_KEY")
@Column(name = "ABSTRACT_HEADER_PARAMS_PARAMS_AS_MAP", unique = false, nullable = true, updatable = false)
protected Map<String, Collection<AbstractParamValue>> paramsAsMap;

 

11-24@11:34:11 DEBUG (CSipSimpleTest.java:30)     - starting up container
nov 24, 2017 11:34:12 AM org.glassfish.ejb.embedded.EJBContainerProviderImpl createContainer
INFO: [EJBContainerProviderImpl] Using installation location C:\Program Files\Glassfish\glassfish5\glassfish
nov 24, 2017 11:34:12 AM org.glassfish.ejb.embedded.EJBContainerProviderImpl createContainer
INFO: [EJBContainerProviderImpl] Using config file location: file:/C:/Users/trond/AppData/Local/Temp/domain1639859917860175844xml
nov 24, 2017 11:34:12 AM org.glassfish.ejb.embedded.EJBContainerProviderImpl createContainer
INFO: [EJBContainerProviderImpl] Using runtime class: class com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime
nov 24, 2017 11:34:15 AM com.sun.enterprise.security.auth.realm.Realm doInstantiate
INFO: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
nov 24, 2017 11:34:15 AM com.sun.enterprise.security.auth.realm.Realm doInstantiate
INFO: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
nov 24, 2017 11:34:15 AM com.sun.enterprise.security.auth.realm.Realm doInstantiate
INFO: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
nov 24, 2017 11:34:15 AM org.glassfish.security.services.impl.authorization.AuthorizationServiceImpl initialize
INFO: Authorization Service has successfully initialized.
nov 24, 2017 11:34:16 AM org.glassfish.ha.store.spi.BackingStoreFactoryRegistry register
INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
nov 24, 2017 11:34:16 AM com.sun.enterprise.v3.server.AppServerStartup postStartupJob
INFO: GlassFish Server Open Source Edition  5.0  (25) startup time : Embedded (1 878ms), startup services(1 835ms), total(3 713ms)
nov 24, 2017 11:34:16 AM com.sun.jts.CosTransactions.DefaultTransactionService setServerName
INFO: JTS5014: Recoverable JTS instance, serverId = [100]
nov 24, 2017 11:34:16 AM org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread run
INFO: JMXStartupService has disabled JMXConnector system
nov 24, 2017 11:34:16 AM org.glassfish.admin.mbeanserver.JMXStartupService shutdown
INFO: JMXStartupService and JMXConnectors have been shut down.
JdbcRuntimeExtension,  getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource]
nov 24, 2017 11:34:16 AM com.sun.enterprise.v3.server.AppServerStartup stop
INFO: Shutdown procedure finished
nov 24, 2017 11:34:16 AM org.glassfish.ha.store.spi.BackingStoreFactoryRegistry register
INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
nov 24, 2017 11:34:16 AM com.sun.enterprise.v3.server.AppServerStartup postStartupJob
INFO: GlassFish Server Open Source Edition  5.0  (25) startup time : Embedded (4 375ms), startup services(34ms), total(4 409ms)
nov 24, 2017 11:34:16 AM org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread run
INFO: JMXStartupService has disabled JMXConnector system
nov 24, 2017 11:34:18 AM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar
nov 24, 2017 11:34:18 AM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: glassfish-embedded-static-shell.jar
nov 24, 2017 11:34:19 AM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: org.eclipse.jdt.annotation_2.0.100.v20150311-1658.jar
nov 24, 2017 11:34:19 AM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: org.eclipse.jdt.annotation-2.1.0.jar
nov 24, 2017 11:34:19 AM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: glassfish-embedded-all-5.0.jar
nov 24, 2017 11:34:19 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding classes to exploded ear  isEJBModule? true isWebApp? false
nov 24, 2017 11:34:19 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding zipfs.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:19 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding classes to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding commons-lang-2.6.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding commons-codec-1.4.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding jaccess.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding jfxrt.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding resources.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding localedata.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding activation-1.1.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding commons-configuration-1.7.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding sunec.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding .cp to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding commons-net-3.3.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding access-bridge-64.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding animal-sniffer-annotations-1.14.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding .cp to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding jce.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding commons-logging-1.1.1.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding sunpkcs11.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding dnsns.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding nashorn.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding ojdbc14-10.2.0.5.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding jfr.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding classes to exploded ear  isEJBModule? true isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding commons-collections-3.2.1.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding cldrdata.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding netty-all-4.1.1.Final.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding guava-22.0.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding charsets.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding junit-dep-4.7.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding rt.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding javax.mail-1.6.0.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding error_prone_annotations-2.0.18.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding jsse.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding hamcrest-core-1.1.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding jsr305-1.3.9.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding javaee-api-8.0.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding commons-beanutils-1.9.3.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding j2objc-annotations-1.1.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:24 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding test-classes to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:25 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding commons-digester-1.8.1.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:25 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding sunmscapi.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:25 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding sunjce_provider.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:25 AM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
INFO: [DeploymentElement] adding log4j-1.2.17.jar to exploded ear  isEJBModule? false isWebApp? false
nov 24, 2017 11:34:25 AM org.glassfish.ejb.embedded.EJBContainerImpl deploy
INFO: [EJBContainerImpl] Deploying app: C:\Users\trond\AppData\Local\Temp\ejb-app2914983357079903571
nov 24, 2017 11:34:25 AM org.glassfish.ejb.embedded.EJBContainerImpl deploy
INFO: [EJBContainerImpl] GlassFish status: STARTED
nov 24, 2017 11:34:25 AM org.glassfish.ejb.embedded.EJBContainerImpl deploy
INFO: [EJBContainerImpl] Deploying as a File
nov 24, 2017 11:34:36 AM org.glassfish.hk2.classmodel.reflect.Parser$5 on
SEVERE: Exception while visiting java/lang/Object.class of size 1497
java.lang.NullPointerException
at org.glassfish.hk2.classmodel.reflect.impl.TypesImpl.getType(TypesImpl.java:81)
at org.glassfish.hk2.classmodel.reflect.impl.ModelClassVisitor.visit(ModelClassVisitor.java:131)
at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.accept(ClassReader.java:624)
at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.accept(ClassReader.java:505)
at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:360)
at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:345)
at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:68)
at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:304)
at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:293)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
 
nov 24, 2017 11:34:45 AM com.sun.enterprise.security.SecurityLifecycle <init>
INFO: Java security manager is disabled.
nov 24, 2017 11:34:45 AM com.sun.enterprise.security.SecurityLifecycle onInitialization
INFO: Entering Security Startup Service.
nov 24, 2017 11:34:45 AM com.sun.enterprise.security.PolicyLoader loadPolicy
INFO: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
nov 24, 2017 11:34:45 AM com.sun.enterprise.security.SecurityLifecycle onInitialization
INFO: Security Service(s) started successfully.
nov 24, 2017 11:34:48 AM org.glassfish.api.ActionReport failure
SEVERE: Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
nov 24, 2017 11:34:48 AM org.glassfish.api.ActionReport failure
SEVERE: Exception while invoking class org.glassfish.javaee.full.deployment.EarDeployer prepare method
org.glassfish.deployment.common.DeploymentException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.7.0.v20170811-d680af5): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [REGDB] failed.
Internal Exception: java.lang.StackOverflowError
at org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:182)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:925)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:434)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:536)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:535)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:566)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:558)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:557)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1465)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:110)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723)
at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:133)
at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:141)
at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
at no.tobiassenit.test.sipstack.CSipSimpleTest.setUpBeforeClass(CSipSimpleTest.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:539)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:761)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:461)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:207)
Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.7.0.v20170811-d680af5): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [REGDB] failed.
Internal Exception: java.lang.StackOverflowError
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:2080)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:2071)
at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactoryImpl(PersistenceProvider.java:347)
at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:313)
at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:199)
at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:107)
at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:223)
at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:510)
at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:230)
at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:925)
at org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:309)
at org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:88)
at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:155)
at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:152)
at org.glassfish.javaee.full.deployment.EarDeployer.doOnBundles(EarDeployer.java:232)
at org.glassfish.javaee.full.deployment.EarDeployer.doOnAllTypedBundles(EarDeployer.java:241)
at org.glassfish.javaee.full.deployment.EarDeployer.doOnAllBundles(EarDeployer.java:267)
at org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:152)
... 39 more
Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.7.0.v20170811-d680af5): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [REGDB] failed.
Internal Exception: java.lang.StackOverflowError
at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:231)
... 58 more
Caused by: java.lang.StackOverflowError
at java.util.HashMap.hash(HashMap.java:339)
at java.util.HashMap.get(HashMap.java:557)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAsmFactory.getMetadataClass(MetadataAsmFactory.java:152)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAsmFactory.getMetadataClass(MetadataAsmFactory.java:140)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215)
 


Internal Exception: java.sql.SQLException: ORA-01400: kan ikke sette inn NULL i ("XXXUSER"."ABSTRACT_FIELD_VALUE_PART_TABLE"."ID")

Trond Arild Lode Tobiassen Heidelberg
 
Edited

The below happens when a number of table-rows have been inserted successfully in other tables, using the exact same setup.

Note that the sequence is reported to not being deleted during startup (of glassfish embedded). I wonder if this means that GenerationType.SEQUENCE is not in effect and necessary table/sequence is not even generated - resulting in primary key auto generation is somewhat lacking. Allthough I can find the sequence:

CREATED 23.11.2017
LAST_DDL_TIME 23.11.2017
SEQUENCE_OWNER REGUSER
SEQUENCE_NAME SEQ_GEN_SEQUENCE
MIN_VALUE 1
MAX_VALUE 9999999999999999999999999999
INCREMENT_BY 50
CYCLE_FLAG N
ORDER_FLAG N
CACHE_SIZE 20
LAST_NUMBER 1050
SCALE_FLAG N
EXTEND_FLAG N
SESSION_FLAG N
KEEP_VALUE N

in the database.

I notice that the cache size is 20, the increment is 50 and the usage stops at 1050, when the cache is emptied (50*20 +50). Might this cache size be the problem?

@Entity(name = "ABSTRACT_FIELD_VALUE_PART_TABLE")
@DiscriminatorColumn(length=64)
public abstract class AbstractFieldValuePart<T extends AbstractFieldValuePart<T>> implements IIsValid, Serializable {
@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE)
private Long id;
 
public Long getId() {
return id;
}
 
private void setId(Long id) {
this.id = id;
}


@Entity(name="PROTOCOL_VERSION_TABLE")
public final class ProtocolVersion extends AbstractFieldValuePart<ProtocolVersion> {
/**
*/
private static final long serialVersionUID = 41530596431029952L;
 
public ProtocolVersion(ProtocolVersion inp) {
super(inp);
if (inp.sipScheme != null)
this.sipScheme = inp.sipScheme;
else
this.schemeToken = inp.schemeToken;
this.version = inp.version;
}
 
protected ProtocolVersion() {
}
 
@Column(name = "PROTOCOL_VERSION_SIP_SCHEME", unique = false, nullable = true, updatable = false)
private UriScheme sipScheme;
 
public UriScheme getSipScheme() {
return sipScheme;
}
 
private void setSipScheme(UriScheme sipScheme) {
this.sipScheme = sipScheme;
}
 
@Column(name = "PROTOCOL_VERSION_SCHEME_TOKEN", unique = false, nullable = true, updatable = false)
private String schemeToken;
 
public String getSchemeToken() {
return schemeToken;
}
 
private void setSchemeToken(String schemeToken) {
this.schemeToken = schemeToken;
}
 
@Column(name = "PROTOCOL_VERSION_VERSION", unique = false, nullable = true, updatable = false)
private Float version; // TODO: change to integers, e.g. 1.1.1 for future-proof solution
 
public Float getVersion() {
return version;
}
 
private void setVersion(Float version) {
this.version = version;
}
 

Glassfish 4.1
Oracle 12c ojdbc14.jar

Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01400: kan ikke sette inn NULL i ("REGUSER"."ABSTRACT_FIELD_VALUE_PART_TABLE"."ID")
 
Error Code: 1400
Call: INSERT INTO ABSTRACT_FIELD_VALUE_PART_TABLE (ID, PROTOCOL_VERSION_SCHEME_TOKEN, PROTOCOL_VERSION_SIP_SCHEME, PROTOCOL_VERSION_VERSION, DTYPE) VALUES (?, ?, ?, ?, ?)
bind => [5 parameters bound]
Query: InsertObjectQuery(SIP/2.0)
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush(EntityManagerImpl.java:868)
at com.sun.enterprise.container.common.impl.EntityManagerWrapper.flush(EntityManagerWrapper.java:437)
at no.tobiassenit.sip.registrar.util.EntityMethods.mergeContactSession(EntityMethods.java:66)
 



Glassfish slow undeploy of a web-app with redisson

simon.cigoj@...
 

I'm have a webapp deployed on Glassfish 4.1.2 which includes Redisson 3.5.4 and on the undeploy of the app it takes about 5 minutes.

I did some analyse with jprofiler and all the threads of Redisson are stoped ok.
After the servlet ServletContextListener.contextDestroyed is called the undeploy waits for around 5 minutes.

If I disable Redisson the app undeploys much faster...around 1 minute.

Here is the thread dump made during the long undeploy https://pastebin.com/Sv4VW4pT

In the long undeploy period there is no CPU activity or GC activity visible.

How can I debug this is there any appropriate package where should I put a higher (FINER/FINEST) logging level to se what is going on, or is there a time-out setting that could affect some undeploy time, because the time taken seems constant around 5 minutes. 

My stack:
Glassfish 4.1.2 (build 1)
java version "1.8.0_144" 
Redisson 3.5.4
Netty 4.1.15.FInal
Windows10

I have tried to upgrade Redisson also to 3.5.5 but the same problem persists 

This was what I could get from the logs:

[2017-11-08T15:28:28.927+0100] [glassfish 4.1] [FINE] [] [javax.enterprise.system.core] [tid: _ThreadID=70 _ThreadName=DynamicReloader] [timeMillis: 1510151308927] [levelValue: 500] [CLASSNAME: com.sun.enterprise.v3.server.DynamicReloader] [METHODNAME: chooseAppsToReload] [[
  [Reloader] Removing undeployed app web-test-1.0-SNAPSHOT from reload info]]
 
[2017-11-08T15:31:55.717+0100] [glassfish 4.1] [FINE] [] [javax.enterprise.system.core] [tid: _ThreadID=61 _ThreadName=admin-listener(3)] [timeMillis: 1510151515717] [levelValue: 500] [CLASSNAME: com.sun.enterprise.v3.admin.CommandRunnerImpl] [METHODNAME: doCommand] [[
  Command execution stage 4 : Call post supplemental commands for undeploy]]





Re: GlassFish 5 Build 25 : Websocket and possible memory leak suspects - org.glassfish.grizzly.http2.AlpnSupport, sun.security.ssl.SSLEngineImpl

Ryan Lubke <ryan.lubke@...>
 

At first blush it would appear that the listeners that are invoked when the server-side connection is closed aren't being invoked to cleanup the state being maintained to support HTTP/2.

I'll find some time this week to see if I can replicate.

Another possible workaround if you're mostly concerned with supporting WebSocket+TLS is to disable HTTP/2 on the listener in question (http2-enabled=false).


GlassFish 5 Build 25 : Websocket and possible memory leak suspects - org.glassfish.grizzly.http2.AlpnSupport, sun.security.ssl.SSLEngineImpl

zakimak9@...
 
Edited

Hi,

We have been carrying out load tests using JMeter. The server is hosting a WebSocket solution and the test tries to create about 2000 WebScoket connections. It tries to simulate frequent network disconnections. So for every 2000 user/connection we are doing a forced disconnection and then connect again after about 30s. The disconnection is made after about 5 mins of establishing connection. The test was run for 6 hours without any issue. We have allocated 6GB as Min and Max heap. Once test completed we left the server running idle and after several hours we checked back the heap memory consumption and it seemed to occupy about 3.5 GB of heap memory. A heap dump was taken and analyzed via Eclipse MAT. We see the following suspects in the report:

Problem Suspect 1
 
The class "org.glassfish.grizzly.http2.AlpnSupport", loaded by "org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5 @ 0x640b97728", occupies 2,243,734,264 (67.17%) bytes. The memory is accumulated in one instance of "java.util.WeakHashMap$Entry[]" loaded by "<system class loader>".
 
Keywords
java.util.WeakHashMap$Entry[]
org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5 @ 0x640b97728
org.glassfish.grizzly.http2.AlpnSupport
 
Problem Suspect 2
 
37,243 instances of "sun.security.ssl.SSLEngineImpl", loaded by "<system class loader>" occupy 851,020,064 (25.48%) bytes. These instances are referenced from one instance of "java.util.concurrent.ConcurrentHashMap$Node[]", loaded by "<system class loader>"
 
Keywords
java.util.concurrent.ConcurrentHashMap$Node[]
sun.security.ssl.SSLEngineImpl

It would be great if you could shed some light on this.

Update

To overcome this issue I have stopped using SSL and the leak subsided.


GlassFish 5 Build 25 : Cannot start JMX connector JmxConnector config

zakimak9@...
 

I am unable to start the JMX connecter. Using the Admin GUI I have set the JMX connector to port 8686 in Admin Service. Also under JVM Settings I have put this in JVM Options -Dcom.sun.management.jmxremote.port=8686. Sharing the error message below:
Cannot start JMX connector JmxConnector config: { name = system, Protocol = rmi_jrmp, Address = 0.0.0.0, Port = 8686, AcceptAll = false, AuthRealmName = admin-realm, SecurityEnabled = true} due to exception java.lang.RuntimeException: Port 8686 is not available for the internal rmi registry. This means that a call was made with the same port, without closing earlier registry instance. This has to do with the system jmx connector configuration in admin-service element of the configuration associated with this instance]]
at org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.startConnector(JMXStartupService.java:311)
at org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.run(JMXStartupService.java:351)
I also tested by changing the port, but still I get the same issue. However when I run the command "netstat -ntlp", I do see that Java process is listening on the designated JMX port. What is the issue and how I can fix this ?


Re: Please point me to the sources for glassfish 5 module javax.servlet.jsp.jar

Gary Bello
 

Never mind - I found them at

Thanks
-Gary


On Mon, Oct 2, 2017 at 12:58 PM, Gary Bello <gary.bello@...> wrote:
Please point me to the sources for glassfish 5 module javax.servet.jsp.jar

The manifest says version is javax.servlet.jsp;version="2.3.2.b01"

Thanks
-Gary


Please point me to the sources for glassfish 5 module javax.servlet.jsp.jar

Gary Bello
 

Please point me to the sources for glassfish 5 module javax.servet.jsp.jar

The manifest says version is javax.servlet.jsp;version="2.3.2.b01"

Thanks
-Gary

21 - 40 of 124