Skip to content

Instantly share code, notes, and snippets.

17:40:16,710 ERROR [Framework Event Dispatcher: Equinox Container: 60ea88e4-dff4-0014-1544-e6eb54da5c83][com_liferay_frontend_taglib_web:96] FrameworkEvent ERROR
org.osgi.framework.ServiceException: Exception in org.apache.felix.scr.impl.manager.SingleComponentManager.getService()
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:222)
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)
at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461)
at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619)
at com.liferay.registry.internal.RegistryImpl.getService(RegistryImpl.java:83)
at com.liferay.portal.kernel.servlet
@mjbradford89
mjbradford89 / log
Created May 7, 2015 17:29
taglib log
This file has been truncated, but you can view the full file.
Using CATALINA_BASE: /home/michael/Desktop/Liferay/bundles/tomcat-7.0.42
Using CATALINA_HOME: /home/michael/Desktop/Liferay/bundles/tomcat-7.0.42
Using CATALINA_TMPDIR: /home/michael/Desktop/Liferay/bundles/tomcat-7.0.42/temp
Using JRE_HOME: /usr/lib/jvm/java-7-oracle
Using CLASSPATH: /home/michael/Desktop/Liferay/bundles/tomcat-7.0.42/bin/bootstrap.jar:/home/michael/Desktop/Liferay/bundles/tomcat-7.0.42/bin/tomcat-juli.jar
Listening for transport dt_socket at address: 8888
Loading file:/home/michael/Desktop/Liferay/liferay-portal/portal-web/docroot/WEB-INF/classes/system.properties
Loading file:/home/michael/Desktop/Liferay/liferay-portal/portal-web/docroot/WEB-INF/classes/system.properties
Loading file:/home/michael/Desktop/Liferay/liferay-portal/portal-web/docroot/WEB-INF/classes/portal.properties
Loading file:/home/michael/Desktop/Liferay/liferay-portal/portal-web/docroot/WEB-INF/classes/portal-ext.properties
@mjbradford89
mjbradford89 / bnd.bnd
Created May 5, 2015 18:04
frontend-taglib-web
Bundle-Name: Liferay Frontend Taglib Web
Bundle-SymbolicName: com.liferay.frontend.taglib.web
Bundle-Version: 1.0.0
Import-Package:\
!com.swabunga.spell.*,\
!net.fortuna.ical4j.model.*,\
!com.lowagie.text,\
!org.apache.*,\
!org.aspectj.*,\
*
<%--
/**
* Copyright (c) 2000-present 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
mplayer -ao null $1 -vo jpeg:outdir=output
echo "explosion complete."
notify-send "explosion complete."
convert output/* output.gif
echo "conversion complete."
notify-send "conversion complete."
@mjbradford89
mjbradford89 / gist:74c9fe22acd3bedfdb77
Created April 24, 2015 19:04
deploy-static-files
<target name="deploy-static-files">
<delete file="${liferay.home}/osgi/portal/${plugin.name}.${plugin.packaging}" />
<delete file="${liferay.home}/osgi/portal/${plugin.name}-wsdd.jar" />
<delete dir="classes" />
<delete dir="docroot/WEB-INF/classes" />
<delete file="ivy.xml.MD5" />
<deploy
module.dir="${basedir}"
/>
@mjbradford89
mjbradford89 / gist:098f4d5b3510ac8b51c6
Created April 22, 2015 21:09
PortalWebResourcesUtil.java
/**
* Copyright (c) 2000-present 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
LogListener.logged threw a non-fatal unchecked exception as follows:
17:37:38,146 ERROR [com.liferay.portal.log.bridge.internal.LogBridge@3d6ec43f][com_liferay_portal_servlet_jsp_compiler:75] null
java.lang.ClassCastException
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:514)
at org.apache.felix.eventadmin.impl.adapter.LogEventAdapter$1.logged(LogEventAdapter.java:180)
at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.safeLogged(ExtendedLogReaderServiceFactory.java:88)
at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory$LogTask.run(ExtendedLogReaderServiceFactory.java:35)
at org.eclipse.osgi.internal.log.SerializedTaskQueue$1.run(SerializedTaskQueue.java:33)
LogListener.logged threw a non-fatal unchecked exception as follows:
//When using simple editor in blogs
function _161_OnDescriptionEditorInit() {
document.getElementById('_161_descriptionEditor').setAttribute('contenteditable', false);
}
//Generates the error
@mjbradford89
mjbradford89 / gist:fb2c2063b82a9313de7b
Last active August 29, 2015 14:04
datepicker accessibility test
YUI.add('aui-datepicker-tests', function(Y) {
var suite = new Y.Test.Suite('aui-datepicker');
suite.add(new Y.Test.Case({
name: 'DatePicker',
setUp: function() {
this.datePicker = new Y.DatePicker({
on: {