掲示板

Issue with 6.2 GA 6 Hooks on 7.0 GA1

thumbnail
7年前 に darren rose によって更新されました。

Issue with 6.2 GA 6 Hooks on 7.0 GA1

Regular Member 投稿: 215 参加年月日: 15/04/04 最新の投稿
Hi,

Hooks developed for Liferay 6.2 CE GA 6 do not work on 7 CE GA 1 - I see the following errors:

Caused by: java.lang.ClassNotFoundException: com.liferay.portal.security.auth.AutoLogin cannot be found by hook-autologin-v7-1.1-SNAPSHOT_1.0.0
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:394)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:357)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:349)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
thumbnail
7年前 に darren rose によって更新されました。

RE: Issue with 6.2 GA 6 Hooks on 7.0 GA1

Regular Member 投稿: 215 参加年月日: 15/04/04 最新の投稿
and

DeployImpl:236] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for hook-configuration-v7-10-SNAPSHOT
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for hook-configuration-v7-10-SNAPSHOT
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:38)
at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:276)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:233)
at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:102)
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 com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletContextListenerExceptionAdapter.contextInitialized(ServletContextListenerExceptionAdapter.java:51)
at sun.reflect.GeneratedMethodAccessor844.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.http.servlet.internal.registration.ListenerRegistration$EventListenerInvocationHandler.invoke(ListenerRegistration.java:132)
at com.sun.proxy.$Proxy504.contextInitialized(Unknown Source)
at org.eclipse.equinox.http.servlet.internal.context.ContextController.doAddListenerRegistration(ContextController.java:359)
at org.eclipse.equinox.http.servlet.internal.context.ContextController.addListenerRegistration(ContextController.java:312)
at org.eclipse.equinox.http.servlet.internal.customizer.ContextListenerTrackerCustomizer.addingService(ContextListenerTrackerCustomizer.java:67)
at org.eclipse.equinox.http.servlet.internal.customizer.ContextListenerTrackerCustomizer.addingService(ContextListenerTrackerCustomizer.java:1)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:917)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482)
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1001)
at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.initListeners(WabBundleProcessor.java:570)
at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.init(WabBundleProcessor.java:160)
at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer.doStart(WebBundleDeployer.java:86)
at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory$WABExtension.start(WabFactory.java:200)
at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:1)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)
at org.eclipse.osgi.container.Module.publishEvent(Module.java:461)
at org.eclipse.osgi.container.Module.start(Module.java:452)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)
at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)
at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)
at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:955)
at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1336)
at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.VerifyError: Stack map does not match the one at exception handler 95_Exception Details:_ Location:_ selfservice/portlet/configuration/CustomRolesAction.run([Ljava/lang/String;)V @95: astore_2_ Reason:_ Type 'com/liferay/portal/kernel/exception/SystemException' (current frame, stack[0]) is not assignable to 'com/liferay/portal/kernel/exception/NestableException' (stack map, stack[0])_ Current Frame:_ bci: @10_ flags: { }_ locals: { 'selfservice/portlet/configuration/CustomRolesAction', '[Ljava/lang/String;' }_ stack: { 'com/liferay/portal/kernel/exception/SystemException' }_ Stackmap Frame:_ bci: @95_ flags: { }_ locals: { 'selfservice/portlet/configuration/CustomRolesAction', '[Ljava/lang/String;' }_ stack: { 'com/liferay/portal/kernel/exception/NestableException' }_ Bytecode:_ 0x0000000: b200 0512 06b9 0007 0200 2b03 32b8 0008_ 0x0000010: 4120 b800 0937 0412 0ab8 000b 3706 2ab4_ 0x0000020: 0004 c700 04b1 2ab4 0004 120c b600 0d3a_ 0x0000030: 0819 083a 0919 09be 360a 0336 0b15 0b15_ 0x0000040: 0aa2 001b 1909 150b 323a 0c2a 190c 1604_ 0x0000050: 2016 06b7 000e 840b 01a7 ffe4 a700 0d4d_ 0x0000060: b200 052c b900 1102 00b1 _ Exception Handler Table:_ bci [10, 37] => handler: 95_ bci [10, 37] => handler: 95_ bci [38, 92] => handler: 95_ bci [38, 92] => handler: 95_ Stackmap Table:_ append_frame(@38,Long,Long,Long)_ full_frame(@61,{Object[#66],Object[#67],Long,Long,Long,Object[#67],Object[#67],Integer,Integer},{})_ full_frame(@92,{Object[#66],Object[#67]},{})_ same_locals_1_stack_item_frame(@95,Object[#68])_ same_frame(@105)_ [Sanitized]
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at com.liferay.portal.deploy.hot.HookHotDeployListener.initEvent(HookHotDeployListener.java:849)
at com.liferay.portal.deploy.hot.HookHotDeployListener.initEvents(HookHotDeployListener.java:917)
at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1363)
at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:486)
at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:273)
... 64 more
08:09:39,296 INFO [Refresh Thread: Equinox Container: a0ccc636-03fb-0015-1190-ecce0a1fbd6a][PortletHotDeployListener:202] Registering portlets for hook-configuration-v7-10-SNAPSHOT
08:09:39,448 INFO [Refresh Thread: Equinox Container: a0ccc636-03fb-0015-1190-ecce0a1fbd6a][PortletHotDeployListener:331] 1 portlet for hook-configuration-v7-10-SNAPSHOT is available for use
thumbnail
7年前 に Samuel Kong によって更新されました。

RE: Issue with 6.2 GA 6 Hooks on 7.0 GA1

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
Many of the classes in 6.2 has been moved in 7.0. You'll need to review all your code for these type of compile errors. In this particular case, the new package for AutoLogin is com.liferay.portal.kernel.security.auto.login
thumbnail
7年前 に darren rose によって更新されました。

RE: Issue with 6.2 GA 6 Hooks on 7.0 GA1

Regular Member 投稿: 215 参加年月日: 15/04/04 最新の投稿
Samuel Kong:
Many of the classes in 6.2 has been moved in 7.0. You'll need to review all your code for these type of compile errors. In this particular case, the new package for AutoLogin is com.liferay.portal.kernel.security.auto.login



I also, see that http://mvnrepository.com/artifact/com.liferay.portal/portal-web is not at 7.xx yet
thumbnail
7年前 に Alberto Chaparro によって更新されました。

RE: Issue with 6.2 GA 6 Hooks on 7.0 GA1

Liferay Master 投稿: 549 参加年月日: 11/04/25 最新の投稿
thumbnail
7年前 に Olaf Kock によって更新されました。

RE: Issue with 6.2 GA 6 Hooks on 7.0 GA1

Liferay Legend 投稿: 6396 参加年月日: 08/09/23 最新の投稿
...also you might want to check this older webinar for Liferay 7 tools, including upgrade helper scripts (that hopefully come back soon, or already are available... I've been on vacation and didn't pay attention recently)