Skip to content

Instantly share code, notes, and snippets.

> Task :compileJava SKIPPED
> Task :processResources SKIPPED
> Task :classes SKIPPED
> Task :jar SKIPPED
> Task :startScripts SKIPPED
> Task :distTar SKIPPED
> Task :distZip SKIPPED
> Task :assemble SKIPPED
> Task :compileTestJava SKIPPED
> Task :processTestResources SKIPPED
@gamerson
gamerson / build.gradle
Last active July 15, 2020 21:09
build.gradle workaround for com.liferay.node plugin and gradle4
allprojects {
plugins.withId("com.liferay.node") {
node.nodeUrl = node.nodeUrl.replace("http:", "https:")
}
}
dxp-7.0-sp8
commerce-2.0.7-7.2
dxp-7.0-sp10
portal-7.3-ga3
dxp-7.1-sp2
commerce-2.0.7-7.1
portal-7.3-ga2
commerce-2.0.2
dxp-7.0-sp5
dxp-7.2-ga1
@gamerson
gamerson / gist:fb52e92e21ffab6e9d8425ab30ede227
Created May 5, 2020 22:13
Upload zip file to local nexus
curl -v -F r=releases -F hasPom=false -F e=zip -F g=com.liferay -F a=hotfix -F v=1072-7210 -F p=zip -F file=@liferay-hotfix-1072-7210.zip -u admin:admin123 http://localhost:8081/nexus/service/local/artifact/maven/content
@gamerson
gamerson / 12008.txt
Created April 23, 2020 14:56
jstack 12008.txt
2020-04-23 09:54:56
Full thread dump OpenJDK 64-Bit Server VM (11.0.2+9 mixed mode):
Threads class SMR info:
_java_thread_list=0x0000600004c8ef60, length=66, elements={
0x00007fbe1d811000, 0x00007fbe0e0ef800, 0x00007fbe0e0f4800, 0x00007fbe0d83c800,
0x00007fbe0d83f800, 0x00007fbe1d812000, 0x00007fbe1d813000, 0x00007fbe0d8e0800,
0x00007fbe0e814000, 0x00007fbe0de8c000, 0x00007fbe1db37000, 0x00007fbe1ebb1000,
0x00007fbe0e7f5000, 0x00007fbd9db8c800, 0x00007fbe1ed41000, 0x00007fbd9e03a800,
0x00007fbe1de46800, 0x00007fbe1e64f000, 0x00007fbe1de65000, 0x00007fbd9e22b800,
@gamerson
gamerson / bndtools.ui.freeze.jstack.txt
Created April 22, 2020 17:27
bndtools thread dump
2020-04-22 12:26:14
Full thread dump OpenJDK 64-Bit Server VM (11.0.2+9 mixed mode):
Threads class SMR info:
_java_thread_list=0x0000600009de6040, length=37, elements={
0x00007fc289003000, 0x00007fc299070000, 0x00007fc299848800, 0x00007fc299071000,
0x00007fc299072000, 0x00007fc29a042800, 0x00007fc29a045800, 0x00007fc2990eb000,
0x00007fc29b003000, 0x00007fc2992ff000, 0x00007fc2994c7000, 0x00007fc299aaf000,
0x00007fc2992f2800, 0x00007fc289226000, 0x00007fc29964d800, 0x00007fc299b61000,
0x00007fc2995b4800, 0x00007fc2491d0800, 0x00007fc2493ef800, 0x00007fc29a469000,
@gamerson
gamerson / threaddump
Created April 22, 2020 17:21
bndtools UI lockup threaddump
"main" #1 prio=6 os_prio=31 cpu=190391.51ms elapsed=4768.74s tid=0x00007fc289003000 nid=0x307 runnable [0x00007ffeeceae000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(java.base@11.0.2/Native Method)
at java.net.SocketInputStream.socketRead(java.base@11.0.2/SocketInputStream.java:115)
at java.net.SocketInputStream.read(java.base@11.0.2/SocketInputStream.java:168)
at java.net.SocketInputStream.read(java.base@11.0.2/SocketInputStream.java:140)
at java.io.BufferedInputStream.fill(java.base@11.0.2/BufferedInputStream.java:252)
at java.io.BufferedInputStream.read1(java.base@11.0.2/BufferedInputStream.java:292)
at java.io.BufferedInputStream.read(java.base@11.0.2/BufferedInputStream.java:351)
- locked <0x000000074ad55b90> (a java.io.BufferedInputStream)
@gamerson
gamerson / groupby.java
Created April 20, 2020 20:30
GroupBy example
private void _processRepositoryInvitations() throws IOException {
RepositoryInvitationService repositoryInvitationService = new RepositoryInvitationService(_gitHubClient);
List<RepositoryInvitation> repositoryInvitations = repositoryInvitationService.getUserRepositoryInvitations();
Map<String, List<RepositoryInvitation>> invitesByType = repositoryInvitations.stream(
).collect(
Collectors.groupingBy(
repoInvite -> {
InviteUser inviter = repoInvite.getInviter();
2020-04-10 18:42:21.900 ERROR [main][HotDeployImpl:235] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering servlet context listeners for cancertumorreg-portlet
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering servlet context listeners for cancertumorreg-portlet
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:38)
at com.liferay.portal.deploy.hot.ServletContextListenerHotDeployListener.invokeDeploy(ServletContextListenerHotDeployListener.java:40)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:232)
2020-04-09 09:16:01
Full thread dump OpenJDK 64-Bit Server VM (25.192-b12 mixed mode):
"Attach Listener" #74 daemon prio=9 os_prio=31 tid=0x00007f8e36e78000 nid=0xf0f waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Cache worker for execution history cache (/Users/greg/my repos/service-upgrade-bot/lugbot/.gradle/5.6.4/executionHistory)" #70 prio=5 os_prio=31 tid=0x00007f8dc549b800 nid=0x14703 waiting on condition [0x000070000ce38000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007d8083da8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)