Open akakunin opened 10 years ago
This affects me too.
Liferay Portal Enterprise Edition 6.2.10 EE GA1 (Newton / Build 6210 / November 1, 2013)
Here the stacktrace:
15:26:42,121 INFO [ServerService Thread Pool -- 421][HotDeployEvent:145] Plugin sql-query-scripting-hook requires marketplace-portlet
15:26:42,122 INFO [ServerService Thread Pool -- 421][HotDeployImpl:217] Deploying sql-query-scripting-hook from queue
15:26:42,123 INFO [ServerService Thread Pool -- 421][PluginPackageUtil:1016] Reading plugin package for sql-query-scripting-hook
15:26:42,213 INFO [ServerService Thread Pool -- 421][HookHotDeployListener:693] Registering hook for sql-query-scripting-hook
15:26:42,232 INFO [ServerService Thread Pool -- 421][AppStartupAction:44] Adding scripting executor for database queries - http://photons-project.org/sqlqueryscripting
15:26:42,236 ERROR [ServerService Thread Pool -- 421][HotDeployImpl:230] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for sql-query-scripting-hooksql-query-scripting-hook
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for sql-query-scripting-hooksql-query-scripting-hook
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:314)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:227)
at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
at sun.reflect.GeneratedMethodAccessor1417.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.liferay.portal.security.lang.DoPrivilegedHandler$InvokePrivilegedExceptionAction.run(DoPrivilegedHandler.java:167)
at java.security.AccessController.doPrivileged(Native Method)
at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:100)
at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
at com.sun.proxy.$Proxy42.fireDeployEvent(Unknown Source)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780)
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163)
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61)
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.scripting.ScriptingException: java.lang.NoSuchMethodException: com.sun.proxy.$Proxy63.addScriptingExecutor(java.lang.String, com.liferay.portal.kernel.scripting.ScriptingExecutor)
at com.slemarchand.sqlqueryscripting.hook.events.AppStartupAction.run(AppStartupAction.java:57)
at com.liferay.portal.kernel.events.InvokerSimpleAction.run(InvokerSimpleAction.java:42)
at com.liferay.portal.deploy.hot.HookHotDeployListener.initEvent(HookHotDeployListener.java:1340)
at com.liferay.portal.deploy.hot.HookHotDeployListener.initEvents(HookHotDeployListener.java:1403)
at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1725)
at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:704)
at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:311)
... 29 more
Caused by: com.liferay.portal.kernel.scripting.ScriptingException: java.lang.NoSuchMethodException: com.sun.proxy.$Proxy63.addScriptingExecutor(java.lang.String, com.liferay.portal.kernel.scripting.ScriptingExecutor)
at com.slemarchand.sqlqueryscripting.hook.events.AppStartupAction.addScriptingExecutor(AppStartupAction.java:74)
at com.slemarchand.sqlqueryscripting.hook.events.AppStartupAction.run(AppStartupAction.java:50)
... 35 more
Caused by: java.lang.NoSuchMethodException: com.sun.proxy.$Proxy63.addScriptingExecutor(java.lang.String, com.liferay.portal.kernel.scripting.ScriptingExecutor)
at java.lang.Class.getMethod(Class.java:1670)
at com.slemarchand.sqlqueryscripting.hook.events.AppStartupAction.addScriptingExecutor(AppStartupAction.java:68)
... 36 more
Hi! I'd like to add support for 6.2 - made a fork and tried to adopt code for 6.2 - but - very strange thing - addScriptingExecutor even is public method in ScriptingImpl does not exist in interface (Scripting) anymore. Do you have (probably already discussed with Liferay staff) why? Any ideas how to make this functionality available for 6.2?