Skip to content

Instantly share code, notes, and snippets.

View pcwhite's full-sized avatar
🪄
Automating

Philip White pcwhite

🪄
Automating
View GitHub Profile
2018-02-14 16:37:52.699 ERROR [fileinstall-/Users/philipwhite/Portals/liferay.com/master-private-src_tomcat/osgi/modules][com_liferay_captcha_api:97] [com.liferay.captcha.recaptcha.ReCaptchaImpl(587)] The activate method has thrown an exception
java.lang.RuntimeException: Unable to create snapshot class for interface com.liferay.captcha.configuration.CaptchaConfiguration
at com.liferay.portal.configuration.metatype.bnd.util.ConfigurableUtil._createConfigurableSnapshot(ConfigurableUtil.java:77)
at com.liferay.portal.configuration.metatype.bnd.util.ConfigurableUtil.createConfigurable(ConfigurableUtil.java:51)
at com.liferay.captcha.recaptcha.ReCaptchaImpl.activate(ReCaptchaImpl.java:95)
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.apache.felix.scr.impl.inject.B
2018-01-11 17:35:09.772 WARN [http-nio-8080-exec-1][ProxyMessageListener:88] com.liferay.portal.kernel.workflow.WorkflowException: com.liferay.portal.kernel.workflow.WorkflowDefinitionFileException: Unable to parse definition
com.liferay.portal.kernel.workflow.WorkflowException: com.liferay.portal.kernel.workflow.WorkflowDefinitionFileException: Unable to parse definition
at com.liferay.portal.workflow.kaleo.runtime.internal.DefaultWorkflowEngineImpl.validateWorkflowDefinition(DefaultWorkflowEngineImpl.java:595)
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 com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.jav
17:46:48,887 ERROR [http-nio-7080-exec-7][PortletServlet:112] javax.portlet.PortletException: javax.servlet.ServletException: com.liferay.dynamic.data.mapping.form.renderer.DDMFormRenderingException: com.liferay.portal.kernel.template.TemplateException: Unable to process templates
javax.portlet.PortletException: javax.servlet.ServletException: com.liferay.dynamic.data.mapping.form.renderer.DDMFormRenderingException: com.liferay.portal.kernel.template.TemplateException: Unable to process templates
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:267)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:102)
at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:594)
at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:610)
at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doView(MVCPortlet.java:160)
at com.liferay.portal.kernel.portlet.LiferayPortlet
/Users/philipwhite/Projects/liferay.com/liferay-portal-workflow/com-liferay-portal-workflow/portal-workflow-kaleo-runtime-integration-impl/src/main/java/com/liferay/portal/workflow/kaleo/runtime/integration/impl/internal/KaleoWorkflowModelConverterImpl.java:101: error: cannot find symbol
defaultWorkflowDefinition.setDescription(
^
symbol: method setDescription(String)
location: variable defaultWorkflowDefinition of type DefaultWorkflowDefinition
/Users/philipwhite/Projects/liferay.com/liferay-portal-workflow/com-liferay-portal-workflow/portal-workflow-kaleo-runtime-integration-impl/src/main/java/com/liferay/portal/workflow/kaleo/runtime/integration/impl/internal/KaleoWorkflowModelConverterImpl.java:103: error: cannot find symbol
defaultWorkflowDefinition.setModifiedDate(
^
symbol: method setModifiedDate(Date)
location: variable defaultWorkflowDefinition of type DefaultWorkflowDefinitio
[exec] [fsevents] Success: "/Users/philipwhite/Projects/liferay.com/liferay-portal/modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-type-date/node_modules/metal-cli/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
[exec] Pass --update-binary to reinstall or --build-from-source to recompile
[exec] added 765 packages in 85.019s
[exec] npm WARN dynamic-data-mapping-type-date@2.0.9 No description
[exec] npm WARN dynamic-data-mapping-type-date@2.0.9 No repository field.
[exec] npm WARN dynamic-data-mapping-type-date@2.0.9 No license field.
[exec]
[exec]
[exec] > fsevents@1.1.2 install /Users/philipwhite/Projects/liferay.com/liferay-portal/modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-type-document-library/node_modules/metal-cli/node_modules/fsevents
[exec] > node install
~/Projects/liferay.com/liferay-portal $ ant -f build-test-tomcat.xml run-selenium-tomcat -Dtest.class=WorkflowUpgrade#ViewWorkflowArchive623
Buildfile: /Users/philipwhite/Projects/liferay.com/liferay-portal/build-test-tomcat.xml
[taskdef] Could not load definitions from resource tasks.properties. It could not be found.
run-selenium-tomcat:
[taskdef] Could not load definitions from resource tasks.properties. It could not be found.
record-test-generated-properties:
[exec] :setUpLibDevelopment UP-TO-DATE
[exec] :setUpLibGlobal UP-TO-DATE
@pcwhite
pcwhite / gist:42f4c1877d005f992a9b8ef670ba1ba6
Created September 15, 2017 16:27
database access error
~/Projects/liferay.com/liferay-portal $ ant -f build-test-tomcat.xml run-selenium-tomcat -Dtest.class=WorkflowUpgrade#ViewWorkflowArchive623 -Djavax.net.debug=all
Buildfile: /Users/philipwhite/Projects/liferay.com/liferay-portal/build-test-tomcat.xml
[taskdef] Could not load definitions from resource tasks.properties. It could not be found.
run-selenium-tomcat:
[taskdef] Could not load definitions from resource tasks.properties. It could not be found.
record-test-generated-properties:
[exec] :setUpLibDevelopment UP-TO-DATE
[exec] :setUpLibGlobal UP-TO-DATE
@pcwhite
pcwhite / gist:ce07e0ec1426fc1b380337dd3c748aed
Created September 11, 2017 22:16
Wildfly console logs and Liferay logs
~/Portals/liferay.com/7.0.x-src/wildfly-10.0.0/bin $ ./standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Users/philipwhite/Portals/liferay.com/7.0.x-src/wildfly-10.0.0
JAVA: /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/java
JAVA_OPTS: -server -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djboss.as.management.blocking.timeout=480 -Duser.timezone=GMT -Xmx2048m -XX:MaxMetaspaceSize=384m -XX:MetaspaceSize=200m
@pcwhite
pcwhite / app.xml
Last active September 8, 2017 17:43
<?xml version="1.0"?>
<project name="app" basedir="." default="compile">
<import file="build.xml" />
<property name="app.server" value="tomcat" />
<property name="database.name" value="lportal_exercise4" />
<target name="compile" description="Compiles source into bundle and starts up portal and runs a test">
<ant antfile="build-dist.xml" target="unzip-tomcat" />
<antcall target="initDatabase" />
~/Projects/liferay.com/liferay-portal-ee $ ant -f build-test.xml run-selenium-test -Dtest.class=MyFirstTest#SuperAdminLogin
Buildfile: /Users/philipwhite/Projects/liferay.com/liferay-portal-ee/build-test.xml
[taskdef] Could not load definitions from resource tasks.properties. It could not be found.
prepare-selenium:
[delete] Deleting: /Users/philipwhite/Projects/liferay.com/liferay-portal-ee/portal-web/test/test-portal-web-ext.properties
[taskdef] Could not load definitions from resource tasks.properties. It could not be found.
prepare-poshi-runner-properties:
[taskdef] Could not load definitions from resource tasks.properties. It could not be found.