Skip to content

Instantly share code, notes, and snippets.

View emag's full-sized avatar

Yoshimasa Tanabe emag

View GitHub Profile
@emag
emag / stacktrace
Created May 7, 2015 16:26
WIldFly-Swarm App lauching from `Run 'Main'`
Exception in thread "main" java.lang.NoClassDefFoundError: org/wildfly/swarm/container/Deployment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Caused by: java.lang.ClassNotFoundException: org.wildfly.swarm.container.Deployment
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
@emag
emag / jpa-fraction-stack-strace
Created May 14, 2015 13:36
jpa-fraction-stack-strace
22:35:27,093 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.4.Final
22:35:27,273 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Core 1.0.0.CR1 "Kenny" starting
22:35:28,592 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 6) WFLYCTL0006: Failed executing subsystem jpa boot operations: java.lang.IllegalArgumentException: WFLYCTL0156: step is null
at org.jboss.as.controller.AbstractOperationContext.addStep(AbstractOperationContext.java:258)
at org.jboss.as.controller.AbstractOperationContext.addStep(AbstractOperationContext.java:238)
at org.jboss.as.controller.AbstractOperationContext.addStep(AbstractOperationContext.java:227)
at org.jboss.as.controller.ParallelBootOperationContext.addStep(ParallelBootOperationContext.java:110)
at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:353)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.con
@emag
emag / error.log.md
Last active August 29, 2015 14:23
WildFly Swarm MySQL Datasource Error
$ java -jar target/foo-bar-1.0-SNAPSHOT-swarm.jar 
13:53:51,600 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.4.Final
13:53:51,822 INFO  [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Core 1.0.0.CR1 "Kenny" starting
13:53:53,062 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 13) WFLYCTL0028: Attribute enabled is deprecated, and it might be removed in future version!
2015-06-13 13:53:53,088 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 15) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
2015-06-13 13:53:53,092 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 19) WFLYSEC0002: Activating Security Subsystem
2015-06-13 13:53:53,095 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 14) WFLYNAM0001: Activating Naming Subsystem
2015-06-13 13:53:53,096 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 21) WFLYTX0013: Node identifier proper
@emag
emag / stacktrace.txt
Created August 12, 2015 13:22
WildFly Swarm(32a8da3) mvn test stucktrace
2015-08-12 22:20:59
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode):
"Attach Listener" #15 daemon prio=9 os_prio=0 tid=0x00007fb82c001000 nid=0x699b waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Reference Reaper" #14 daemon prio=5 os_prio=0 tid=0x00007fb880325800 nid=0x6888 in Object.wait() [0x00007fb85a8c7000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000006c742fc20> (a java.lang.ref.ReferenceQueue$Lock)
@emag
emag / error1.md
Last active August 30, 2015 16:03
WIldFly Swarm MDB deployment error
$ java -jar target/wildfly-swarm-example-messaging-mdb-swarm.jar
tmpDir: /tmp
00:36:30,035 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
00:36:30,153 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Core 2.0.0.Beta4 "Kenny" starting
2015-08-31 00:36:31,032 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 17) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
2015-08-31 00:36:31,037 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 18) WFLYSEC0002: Activating Security Subsystem
2015-08-31 00:36:31,039 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 19) WFLYNAM0001: Activating Naming Subsystem
2015-08-31 00:36:31,039 INFO  [org.jboss.as.security] (MSC service thread 1-4) WFLYSEC0001: Current PicketBox version=4.9.3.Final
2015-08-31 00:36:31,069 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 20) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based
@emag
emag / wf-swarm-ws-example-arq-test-log.md
Last active November 12, 2015 17:24
WildFly Swarm JAX-WS Example Arqillian Test takes time
$ pwd            
/home/tanabe/workspace/spikes/wildfly-swarm-examples/jaxws
$ LANG=C mvn test
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.wildfly.swarm.examples:wildfly-swarm-example-jaxws:war:1.0.0.Alpha6-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ org.wildfly.swarm.examples:wildfly-swarm-example-jaxws:[unknown-version], /home/tanabe/workspace/spikes/wildfly-swarm-examples/jaxws/pom.xml, line 31, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
$ mvn clean package && java -jar ./target/jolokia-swarm.jar
[...]
create default fraction for Jolokia
tmpDir: /tmp
00:01:58,833 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
00:01:58,985 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Core 2.0.0.CR8 "Kenny" starting
2015-11-19 00:01:59,525 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 9) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
2015-11-19 00:01:59,531 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 10) WFLYNAM0001: Activating Naming Subsystem
2015-11-19 00:01:59,553 INFO  [org.jboss.as.naming] (MSC service thread 1-7) WFLYNAM0003: Starting Naming Service
@emag
emag / stacktrace.md
Last active November 23, 2015 21:57
ClassNotFoundException on Arquillian Test. JIRA: https://issues.jboss.org/browse/SWARM-184
$ mvn clean verify -pl lifelog-arquillian
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building lifelog-arquillian 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ lifelog-arquillian ---
[INFO] Deleting /home/tanabe/workspace/wildfly-swarm-tour/complete/lifelog-arquillian/target
@emag
emag / arquilliantest-log.md
Created December 11, 2015 14:38
Get system property at newContainer()

Just passed

$ ./mvnw clean verify -pl lifelog-postgresql -Dlifelog.production=true
[...]
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running wildflyswarmtour.lifelog.api.EntryControllerIT
now:2015-12-11T23:31:45.377
@emag
emag / add-module-log.md
Last active December 11, 2015 15:48
Arquillian Test can't see module.xml user adds JIRA: https://issues.jboss.org/browse/SWARM-201
$ ./mvnw clean verify -pl lifelog-postgresql -Dswarm.lifelog.production=true
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building lifelog-postgresql 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ lifelog-postgresql ---
[INFO] Deleting /home/tanabe/workspace/wildfly-swarm-tour/complete/lifelog-postgresql/target