Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-65972

Calendar event importer fails after upgrade from 6.0 to 7.0

    Details

      Description

      Reproduced on:
      MySQL 5.7
      ee-6.0 > ee-7.0.x GIT ID: 761a3073054dbec73e532df57516ea44a005bb20.

      Steps to Reproduce:

      1. Upgrade attached 6.0 database to 7.0 DXP
      2. Start portal
      3. Build jar for calevent-importer
        • found in modules/apps/deprecated/calevent/calevent-importer
      4. Deploy jar to bundle osgi/modules

      Expected Result:
      Calendar Events are imported.

      Actual Result:
      Deployment throws exception. Events are not imported.

      16:17:22,024 INFO  [fileinstall-/Users/vicnate5/bundles/ee_release/ee-7.0.x-bundles/osgi/modules][BundleStartStopLogger:38] STOPPED com.liferay.calevent.importer_1.0.0 [518]
      16:17:22,199 INFO  [Refresh Thread: Equinox Container: 60bf38c5-dc1d-0016-182b-92e6bb008603][CalEventImporter:119] Importing CalEvent records
      16:17:22,203 INFO  [Refresh Thread: Equinox Container: 60bf38c5-dc1d-0016-182b-92e6bb008603][LoggingTimer:70] Starting com.liferay.calevent.importer.CalEventImporter#importCalEvents
      16:17:22,207 INFO  [Refresh Thread: Equinox Container: 60bf38c5-dc1d-0016-182b-92e6bb008603][LoggingTimer:38] Completed com.liferay.calevent.importer.CalEventImporter#importCalEvents in 4 ms
      16:17:22,208 INFO  [Refresh Thread: Equinox Container: 60bf38c5-dc1d-0016-182b-92e6bb008603][CalEventImporter:131] Completed CalEvent import process in 9ms
      16:17:22,210 ERROR [Refresh Thread: Equinox Container: 60bf38c5-dc1d-0016-182b-92e6bb008603][com_liferay_calevent_importer:97] [com.liferay.calevent.importer.CalEventImporter(2535)] The activate method has thrown an exception
      java.lang.IllegalStateException: Unable to deserialize object
      	at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:188)
      	at com.liferay.portal.kernel.json.JSONFactoryUtil.deserialize(JSONFactoryUtil.java:89)
      	at com.liferay.calevent.importer.CalEventImporter.convertRecurrence(CalEventImporter.java:436)
      	at com.liferay.calevent.importer.CalEventImporter.importCalEvent(CalEventImporter.java:956)
      	at com.liferay.calevent.importer.CalEventImporter.importCalEvents(CalEventImporter.java:1033)
      	at com.liferay.calevent.importer.CalEventImporter.activate(CalEventImporter.java:125)
      	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.helper.BaseMethod.invokeMethod(BaseMethod.java:222)
      	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
      	at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)
      	at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)
      	at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295)
      	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:302)
      	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:113)
      	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:866)
      	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:833)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:724)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:399)
      	at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:676)
      	at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:339)
      	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:360)
      	at org.apache.felix.scr.impl.Activator.access$000(Activator.java:53)
      	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:260)
      	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: org.jabsorb.serializer.UnmarshallException: Unable to get serializable
      	at com.liferay.portal.json.jabsorb.serializer.LiferaySerializer.unmarshall(LiferaySerializer.java:288)
      	at org.jabsorb.JSONSerializer.unmarshall(JSONSerializer.java:692)
      	at com.liferay.portal.json.jabsorb.serializer.LiferayJSONSerializer.unmarshall(LiferayJSONSerializer.java:50)
      	at org.jabsorb.JSONSerializer.fromJSON(JSONSerializer.java:262)
      	at com.liferay.portal.json.JSONFactoryImpl.deserialize(JSONFactoryImpl.java:181)
      	... 49 more
      Caused by: org.json.JSONException: JSONObject["serializable"] not found.
      	at org.json.JSONObject.get(JSONObject.java:498)
      	at org.json.JSONObject.getJSONObject(JSONObject.java:592)
      	at com.liferay.portal.json.jabsorb.serializer.LiferaySerializer.unmarshall(LiferaySerializer.java:285)
      	... 53 more
      16:17:22,212 ERROR [Refresh Thread: Equinox Container: 60bf38c5-dc1d-0016-182b-92e6bb008603][com_liferay_calevent_importer:97] [com.liferay.calevent.importer.CalEventImporter(2535)] Failed creating the component instance; see log for reason
      16:17:22,212 INFO  [Refresh Thread: Equinox Container: 60bf38c5-dc1d-0016-182b-92e6bb008603][BundleStartStopLogger:35] STARTED com.liferay.calevent.importer_1.0.0 [518]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              victor.ware Victor Ware
              Reporter:
              victor.ware Victor Ware
              Participants of an Issue:
              Recent user:
              Joyce Wang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 22 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.1 CE GA2