Skip to content

Instantly share code, notes, and snippets.

@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 [email protected] -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([email protected]/Native Method)
at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
at java.io.BufferedInputStream.fill([email protected]/BufferedInputStream.java:252)
at java.io.BufferedInputStream.read1([email protected]/BufferedInputStream.java:292)
at java.io.BufferedInputStream.read([email protected]/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)
@gamerson
gamerson / error.txt
Created December 18, 2019 23:58
gradle5 BOM error
~/tmp/fizzbuzz gw build --stacktrace
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=2048m; support was removed in 8.0
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':buildTheme'.
> Could not resolve all files for configuration ':parentThemes'.
> Could not find com.liferay:com.liferay.frontend.theme.styled:.
Required by:
Caused by: java.lang.reflect.InvocationTargetException
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.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
... 11 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
at com.liferay.extensions.languageserver.completions.PropertiesCompletion.lambda$getCompletions$1(PropertiesCompletion.java:120)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
!SESSION 2019-10-02 07:14:13.960 -----------------------------------------------
eclipse.buildId=4.11.0.I20190307-0500
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
This is a continuation of log file C:\Users\eprafpr\eclipse-workspace\maven-bnd-issue\.metadata\.bak_0.log
Created Time: 2019-10-02 07:15:50.109