Skip to content

Instantly share code, notes, and snippets.

View rotty3000's full-sized avatar

Raymond Augé rotty3000

View GitHub Profile
@rotty3000
rotty3000 / stacktrace.log
Created September 29, 2014 16:59
fileinstall 3.4.0 on equinox 3.10.100
2014-09-29 12:42:37
Full thread dump OpenJDK 64-Bit Server VM (24.65-b04 mixed mode):
"Attach Listener" daemon prio=10 tid=0x00007f7e98001000 nid=0x2776 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"ajp-bio-8009-AsyncTimeout" daemon prio=10 tid=0x00007f7ed85e7800 nid=0x26b9 waiting on condition [0x00007f7df2bea000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at org.apache.tomcat.util.net.JIoEndpoint$AsyncTimeout.run(JIoEndpoint.java:148)
@rotty3000
rotty3000 / VelocityPortlet.java.patch
Created September 15, 2014 19:07
VelocityPortlet
@@ -14,18 +14,18 @@
package com.liferay.portlet;
+import com.liferay.portal.kernel.io.unsync.UnsyncStringWriter;
import com.liferay.portal.kernel.template.Template;
import com.liferay.portal.kernel.template.TemplateConstants;
import com.liferay.portal.kernel.template.TemplateManagerUtil;
import com.liferay.portal.kernel.template.TemplateResource;
import com.liferay.portal.kernel.template.TemplateResourceLoaderUtil;
@rotty3000
rotty3000 / AnnouncementsEntryServiceUtil.class.bytecode
Created August 18, 2014 22:27
AnnouncementsEntryServiceUtil.class.bytecode
Classfile /home/rotty/workspace/portal-master/portal-service/classes/com/liferay/portlet/announcements/service/AnnouncementsEntryServiceUtil.class
Last modified Aug 18, 2014; size 3824 bytes
MD5 checksum 8f10db4049ef8b7a0be911af0c81ec5c
Compiled from "AnnouncementsEntryServiceUtil.java"
public class com.liferay.portlet.announcements.service.AnnouncementsEntryServiceUtil
SourceFile: "AnnouncementsEntryServiceUtil.java"
RuntimeInvisibleAnnotations:
0: #108()
minor version: 0
major version: 50
@rotty3000
rotty3000 / server.jspf.diff
Last active August 29, 2015 14:02
portal-web/docroot/html/portlet/admin/server.jspf remove captcha
@@ -371,31 +371,10 @@ serverURL.setParameter("tabs3", tabs3);
}
%>
<liferay-ui:search-iterator searchContainer="<%= searchContainer %>" />
</c:when>
- <c:when test='<%= tabs2.equals("captcha") %>'>
- <liferay-ui:error key="reCaptchaPrivateKey" message="the-recaptcha-private-key-is-not-valid" />
- <liferay-ui:error key="reCaptchaPublicKey" message="the-recaptcha-public-key-is-not-valid" />
-
@rotty3000
rotty3000 / LoginPortletActionFilter.java
Last active December 3, 2019 01:34
Example of using OSGi-DS Component as a portlet filter in future versions of Liferay.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
@rotty3000
rotty3000 / 4_threads.lob
Created December 31, 2013 17:30
4 threads log
[java] Benchmark Mode Thr Count Sec Mean Mean error Units
[java] c.l.j.p.e.EventsPerformanceTest.array thrpt 4 200 1 40868.206 68.055 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.eventProcessorUtil_process_classNames thrpt 4 200 1 16099.645 28.735 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.eventProcessorUtil_process_registered thrpt 4 200 1 32784.652 60.586 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.list thrpt 4 200 1 41045.476 82.463 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.serviceTrackerCollection thrpt 4 200 1 41143.900 69.304 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.serviceTrackerCollection_ToArray thrpt 4 200 1 35950.619 223.727 ops/ms
@rotty3000
rotty3000 / 4_thread_summary_result.log
Last active January 1, 2016 18:59
Benchmark use case: - obtain, and execute, a collection of event handlers (registered whiteboard style) - try not to be slower than EventProcessorUtil ("eventProcessorUtil_process" case, invokes the current impl) To avoid the loop testing problems use a fixed size of 4 handlers in all tests. We're not trying to measure the loop speed itself, but…
[java] Benchmark Mode Thr Count Sec Mean Mean error Units
[java] c.l.j.p.e.EventsPerformanceTest.array thrpt 4 200 1 40868.206 68.055 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.eventProcessorUtil_process_classNames thrpt 4 200 1 16099.645 28.735 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.eventProcessorUtil_process_registered thrpt 4 200 1 32784.652 60.586 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.list thrpt 4 200 1 41045.476 82.463 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.serviceTrackerCollection thrpt 4 200 1 41143.900 69.304 ops/ms
[java] c.l.j.p.e.EventsPerformanceTest.serviceTrackerCollection_ToArray thrpt 4 200 1 35950.619 223.727 ops/ms
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
@rotty3000
rotty3000 / readme.md
Last active December 26, 2015 16:09
Semantic Versioning and API Baseline reporting

Liferay is in the initial phase of semantically versioning all it's java source code. Yay! What?

If you don't know what semantic versioning is, here are two essential references on the subject:

http://semver.org/

Summary

Given a version number MAJOR.MINOR.PATCH, increment the:

@rotty3000
rotty3000 / notes.md
Last active December 24, 2015 14:58
websphere notes
  • edit <profile_root>/config/cells/<cell_name>/nodes/<node_name>/app.policy
  • in each "grant" section replace content by permission java.security.AllPermission;
  • add the following to the end of the same file
grant codeBase "file:${was.install.root}/lib/-" {
  permission java.security.AllPermission;
};