Forums

Home » Liferay Social Office

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Enrico Oliosi
Error registering hook for so-hook
January 9, 2013 7:53 AM
Answer

Enrico Oliosi

Rank: Junior Member

Posts: 32

Join Date: July 6, 2010

Recent Posts

Hi all,
I am using Liferay 6.1.1-ce-ga2 and jre1.7.0, when I installed Social Office I had this issue on console
 1
 216:48:51,954 ERROR [pool-2-thread-2][HotDeployImpl:191] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for so-hook
 3com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for so-hook
 4        at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
 5        at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:276)
 6        at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:188)
 7        at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:216)
 8        at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
 9        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
10        at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:151)
11        at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:141)
12        at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
13        at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
14        at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
15        at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
16        at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:103)
17        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
18        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
19        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
20        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
21        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
22        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
23        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)
24        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621)
25        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
26        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
27        at java.util.concurrent.FutureTask.run(Unknown Source)
28        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
29        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
30        at java.lang.Thread.run(Unknown Source)
31Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.ArrayIndexOutOfBoundsException: 0
32        at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:213)
33        at com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:103)
34        at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:56)
35        at com.liferay.portal.deploy.hot.HookHotDeployListener.updateRelease(HookHotDeployListener.java:2456)
36        at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1927)
37        at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1580)
38        at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:563)
39        at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:273)
40        ... 25 more
41Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.ArrayIndexOutOfBoundsException: 0
42        at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:213)
43        at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:227)
44        at com.liferay.so.hook.upgrade.UpgradeProcess_2_0_1.doUpgrade(UpgradeProcess_2_0_1.java:39)
45        at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:210)
46        ... 32 more
47Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
48        at com.sun.media.jai.codecimpl.PNMCodec.isFormatRecognized(PNMCodec.java:152)
49        at com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:169)
50        at com.liferay.portal.kernel.image.ImageToolUtil.read(ImageToolUtil.java:67)
51        at com.liferay.portal.service.impl.ImageLocalServiceImpl.getImage(ImageLocalServiceImpl.java:361)
52        at com.liferay.portal.service.impl.ImageLocalServiceImpl.getImage(ImageLocalServiceImpl.java:345)
53        at com.liferay.portal.service.impl.ImageLocalServiceImpl.getImage(ImageLocalServiceImpl.java:217)
54        at com.liferay.portal.service.impl.ImageLocalServiceImpl.updateImage(ImageLocalServiceImpl.java:324)
55        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
56        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
57        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
58        at java.lang.reflect.Method.invoke(Unknown Source)
59        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
60        at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
61        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
62        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
63        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
64        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
65        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
66        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
67        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
68        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
69        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
70        at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
71        at $Proxy26.updateImage(Unknown Source)
72        at com.liferay.portal.service.impl.CompanyLocalServiceImpl.updateLogo(CompanyLocalServiceImpl.java:963)
73        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
74        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
75        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
76        at java.lang.reflect.Method.invoke(Unknown Source)
77        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
78        at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
79        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
80        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
81        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
82        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
83        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
84        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
85        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
86        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
87        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
88        at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
89        at $Proxy16.updateLogo(Unknown Source)
90        at com.liferay.portal.service.CompanyLocalServiceUtil.updateLogo(CompanyLocalServiceUtil.java:719)
91        at com.liferay.so.hook.upgrade.v2_0_1.UpgradeCompany.doUpgrade(UpgradeCompany.java:45)
92        at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:210)
93        ... 35 more


Do u have any ideas to fix this issue? Thanks in advance.

Enrico
Jonathan Lee
RE: Error registering hook for so-hook
January 9, 2013 10:15 AM
Answer

Jonathan Lee

LIFERAY STAFF

Rank: New Member

Posts: 12

Join Date: September 16, 2010

Recent Posts

Hi Enrico,

I have seen this issue, and I believe this is fixed in SO 2.0 EE by this ticket http://issues.liferay.com/browse/SOS-1342. However it shouldn't be a problem unless you have some fix packs installed on your portal.

Do you have multiple instances running on Liferay?
Are you using CE version of Social Office?

The upgrade process is actually not needed anymore for the product. So one possible fix you can do is, before running portal and deploying Social Office,

You can remove the following line: "com.liferay.so.hook.upgrade.UpgradeProcess_2_0_1,\" in portal.properties in your so-hook, and the upgradeProcess will not be used anymore.

I am not sure if there will be a re-released of Social Office CE just yet.
Enrico Oliosi
RE: Error registering hook for so-hook
January 11, 2013 12:14 AM
Answer

Enrico Oliosi

Rank: Junior Member

Posts: 32

Join Date: July 6, 2010

Recent Posts

Hi J,
I respond about your answers

Do you have multiple instances running on Liferay?
Are you using CE version of Social Office?


Yes, I have multiple instaces and I am using CE version.


You can remove the following line: "com.liferay.so.hook.upgrade.UpgradeProcess_2_0_1,\" in portal.properties
in your so-hook, and the upgradeProcess will not be used anymore


I have done it and It fixed my problem, thanks very much.

Do you think that this issue will be fixed in the next months in the CE Liferay edition?

Enrico