Skip to content

Instantly share code, notes, and snippets.

View gist:125ccc2afdd4858ec911d1cd601cb7d6
api/pom.xml modification:
<plugin>
<groupId>org.netbeans.tools</groupId>
<artifactId>sigtest-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
@scottmarlow
scottmarlow / gist:7918fd62667363ff8d980499d9ca9298
Created Nov 16, 2021
com.sun.tdk.signaturetest.Main gets java.lang.ClassNotFoundException: java.lang.annotation.Annotation on JDK11
View gist:7918fd62667363ff8d980499d9ca9298
+ '[' -z '' ']'
++ pwd
+ export WORKSPACE=/home/smarlow/work/jakarta/jakartaee-tck
+ WORKSPACE=/home/smarlow/work/jakarta/jakartaee-tck
+ cd /home/smarlow/work/jakarta/jakartaee-tck
++ pwd
+ export BASEDIR=/home/smarlow/work/jakarta/jakartaee-tck
+ BASEDIR=/home/smarlow/work/jakarta/jakartaee-tck
+ export TS_HOME=/home/smarlow/work/jakarta/jakartaee-tck
+ TS_HOME=/home/smarlow/work/jakarta/jakartaee-tck
@scottmarlow
scottmarlow / gist:906619ec2909f61691806d7a1af3aa03
Created Nov 4, 2021
NPE JpaCompliantLifecycleStrategy.java:109
View gist:906619ec2909f61691806d7a1af3aa03
java.lang.NullPointerException:
at org.hibernate@6.0.0.Beta1//org.hibernate.resource.beans.container.internal.JpaCompliantLifecycleStrategy$BeanImpl.initialize(JpaCompliantLifecycleStrategy.java:109)
at org.hibernate@6.0.0.Beta1//org.hibernate.resource.beans.container.internal.CdiBeanContainerExtendedAccessImpl$BeanImpl.initialize(CdiBeanContainerExtendedAccessImpl.java:113)
at org.hibernate@6.0.0.Beta1//org.hibernate.resource.beans.container.internal.CdiBeanContainerExtendedAccessImpl$BeanImpl.getBeanInstance(CdiBeanContainerExtendedAccessImpl.java:119)
at org.hibernate@6.0.0.Beta1//org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.createIdentifierGenerator(DefaultIdentifierGeneratorFactory.java:141)
at org.hibernate@6.0.0.Beta1//org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:387)
at org.hibernate@6.0.0.Beta1//org.hibernate.boot.internal.InFlightMetadataCollectorImpl.handleIdentifierValueBinding(InFlightMetadataCollectorImpl.java:2354)
at org.hibernate@6.0.0.B
View gist:477c36a60c109b356b99c5631705819a
#!/bin/bash -xe
# Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the
@scottmarlow
scottmarlow / gist:87c87d7c42c21fb6258f1453e88fa911
Created Nov 3, 2021
test=com/sun/ts/tests/jpa/core/criteriaapi/CriteriaBuilder/Client.java\#all_from_appmanaged
View gist:87c87d7c42c21fb6258f1453e88fa911
#Test Results (version 2)
#Tue Nov 02 18:03:24 EDT 2021
#-----testdescription-----
$file=/mnt/hudson_workspace/customWorkspaceName/jakartaeetck/src/com/sun/ts/tests/jpa/core/criteriaapi/CriteriaBuilder/Client.java
$root=/mnt/hudson_workspace/customWorkspaceName/jakartaeetck/src
assertion_ids=PERSISTENCE\:JAVADOC\:735 See assertion html documents.\nPERSISTENCE\:SPEC\:1766 See assertion html documents.\nPERSISTENCE\:SPEC\:1766.1 See assertion html documents.
classname=com.sun.ts.tests.jpa.core.criteriaapi.CriteriaBuilder.Client
direction=forward
finder=cts
id=all_from_appmanaged
View gist:6172bd9e955d835f3c40a8564e9f5207
./com/ibm/jbatch/tck/tests/ee/ee_ejb_vehicle_ejb.jar.sun-ejb-jar.xml
./com/ibm/jbatch/tck/tests/ee/ee_web_vehicle_web.war.sun-web.xml
./com/ibm/jbatch/tck/tests/ee/ee_ejb_vehicle_client.jar.sun-application-client.xml
./com/ibm/jbatch/tck/tests/jslxml/jslxml_web_vehicle_web.war.sun-web.xml
./com/ibm/jbatch/tck/tests/jslxml/jslxml_ejb_vehicle_client.jar.sun-application-client.xml
./com/ibm/jbatch/tck/tests/jslxml/jslxml_ejb_vehicle_ejb.jar.sun-ejb-jar.xml
./com/sun/ts/tests/servlet/ee/spec/security/runAs/servlet_ee_spec_security_runAs.ear.sun-application.xml
./com/sun/ts/tests/servlet/ee/spec/security/runAs/servlet_ee_spec_security_runAs_ejb.jar.sun-ejb-jar.xml
./com/sun/ts/tests/servlet/ee/spec/security/runAs/servlet_ee_spec_security_runAs_first_module_web.war.sun-web.xml
./com/sun/ts/tests/servlet/ee/spec/security/runAs/servlet_ee_spec_security_runAs_second_module_web.war.sun-web.xml
View gist:a084e4cbce91780489ecdd8c04a0f61d
test=com/sun/ts/tests/jpa/core/annotations/convert/Client.java\#convert3Test_from_appmanaged
Caused by: ERROR 22018: Invalid character string format for type REAL.
u001b[0m\u001b[0m12:53:29,875 INFO [stdout] (Thread-67) 10-27-2021 12:53:29: SVR: Testing JPQL
\u001b[0m\u001b[0m12:53:29,945 INFO [stdout] (Thread-67) 10-27-2021 12:53:29: SVR: Testing Criteria
\u001b[0m\u001b[0m12:53:29,988 INFO [stdout] (Thread-67) 10-27-2021 12:53:29: SVR-ERROR: Unexpected exception received:
\u001b[0m\u001b[0m12:53:29,990 INFO [stdout] (Thread-67) 10-27-2021 12:53:29: SVR-ERROR: jakarta.persistence.PersistenceException: Converting `org.hibernate.exception.DataException` to JPA `PersistenceException` : JDBC exception executing SQL [update EMPLOYEE set SALARY=? where ID=?]
\u001b[0m\u001b[0m12:53:29,990 INFO [stdout] (Thread-67) at org.hibernate@6.0.0.Beta1//org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:167)
\u001b[0m\u001b[0m12:53:29,991 INFO [stdout] (Thread-67) at org.hiberna
View gist:1523b5472c5519456cfa16a7d593afbb
test=com/sun/ts/tests/jpa/core/annotations/access/property/Client.java\#transientTest_from_appmanaged
Caused by: java.sql.SQLDataException: An attempt was made to get a data value of type 'BOOLEAN' from a data value of type 'SMALLINT'.
u001b[0m\u001b[0m12:32:22,918 INFO [stdout] (Thread-191) 10-27-2021 12:32:22: SVR-ERROR: Unexpected Exception in createTestData:
\u001b[0m\u001b[0m12:32:22,919 INFO [stdout] (Thread-191) 10-27-2021 12:32:22: SVR-ERROR: jakarta.persistence.PersistenceException: Converting `org.hibernate.exception.DataException` to JPA `PersistenceException` : could not insert: [com.sun.ts.tests.jpa.core.annotations.access.property.DataTypes]
\u001b[0m\u001b[0m12:32:22,920 INFO [stdout] (Thread-191) at org.hibernate@6.0.0.Beta1//org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:167)
\u001b[0m\u001b[0m12:32:22,920 INFO [stdout] (Thread-191) at org.hibernate@6.0.0.Beta1//org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:196)
View gist:1491fdfa02f852156c5ab5ea86f99f89
export testFolder=jpa/jpa22/datetime
2021-10-27 13:20:44,466 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 61) MSC000001: Failed to start service jboss.persistenceunit."jpa_22_dateTime_appmanagedNoTx_vehicle.ear#CTS-EM-NOTX": org.jboss.msc.service.StartException in service jboss.persistenceunit."jpa_22_dateTime_appmanagedNoTx_vehicle.ear#CTS-EM-NOTX": jakarta.persistence.PersistenceException: [PersistenceUnit: CTS-EM-NOTX] Unable to build Hibernate SessionFactory
at org.jboss.as.jpa@26.0.0.Beta1-SNAPSHOT//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:198)
at org.jboss.as.jpa@26.0.0.Beta1-SNAPSHOT//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:128)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at org.wildfly.security.elytron-base@1.17.2.Final//org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:664)
at org.jboss.as.jpa@2
@scottmarlow
scottmarlow / gist:549ec5af3400f4ad12d07718211f2bfb
Last active Sep 30, 2021
script for running CDI TCK locally.
View gist:549ec5af3400f4ad12d07718211f2bfb
cd /tmp
WORKSPACE=$PWD
wget --no-cache https://download.eclipse.org/jakartaee/cdi/3.0/cdi-tck-3.0.3-dist.zip -O latest-cdi-tck-dist.zip
unzip latest-cdi-tck-dist.zip
MAVEN_OPTS="-Xmx1800m -XX:-UseGCOverheadLimit"
export MAVEN_OPTS
export JBOSS_DIR=wildfly
export JBOSS_ZIP=./wildfly.zip
cd cdi-tck-3.0.3/artifacts
export TCK_VERSION=3.0.3