<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>ServiceWrapper issue</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114801403" />
  <subtitle>ServiceWrapper issue</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114801403</id>
  <updated>2026-04-07T23:34:46Z</updated>
  <dc:date>2026-04-07T23:34:46Z</dc:date>
  <entry>
    <title>RE: ServiceWrapper issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114801708" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114801708</id>
    <updated>2019-08-19T12:59:03Z</updated>
    <published>2019-08-19T12:59:03Z</published>
    <summary type="html">So you have to make a constructor with no arguments, inside the constructor call super(null);.&lt;br /&gt;&lt;br /&gt;For OSGi, it won&amp;#39;t know what arguments to pass in, so it wants a no-arg instructor. Later it will inject the service being wrapped by calling the setCalendarBookingLocalService(svc) method.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-08-19T12:59:03Z</dc:date>
  </entry>
  <entry>
    <title>ServiceWrapper issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114801402" />
    <author>
      <name>Shiva Lingam K</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114801402</id>
    <updated>2019-08-19T12:12:37Z</updated>
    <published>2019-08-19T12:12:37Z</published>
    <summary type="html">Hi everyone,&lt;br /&gt;&lt;br /&gt;I am creating Servicewrapper hook on CalendarBooking in Liferay 7.2.While I am using the below code i am getting the following exception&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;public CalEventLocalServiceHook(CalendarBookingLocalService calendarBookingLocalService) {&lt;br /&gt;		super(calendarBookingLocalService);&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;	@Override&lt;br /&gt;	public CalendarBooking updateCalendarBooking(long userId, long calendarBookingId, long calendarId,&lt;br /&gt;			Map&amp;lt;Locale, String&amp;gt; titleMap, Map&amp;lt;Locale, String&amp;gt; descriptionMap, String location, long startTime,&lt;br /&gt;			long endTime, boolean allDay, String recurrence, long firstReminder, String firstReminderType,&lt;br /&gt;			long secondReminder, String secondReminderType, ServiceContext serviceContext) throws PortalException {&lt;br /&gt;		&lt;br /&gt;		System.out.println(&amp;#34;CalendarBooking Service Wrapper............&amp;#34;);&lt;br /&gt;		return super.updateCalendarBooking(userId, calendarBookingId, calendarId, titleMap, descriptionMap, location, startTime,&lt;br /&gt;				endTime, allDay, recurrence, firstReminder, firstReminderType, secondReminder, secondReminderType,&lt;br /&gt;				serviceContext);&lt;br /&gt;	}&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;2019-08-19 12:02:14.497 ERROR [fileinstall-D:/Liferay 7.2/liferay-dxp-7.2.10-ga1/osgi/modules][CalEventLocalServiceHook:93] bundle ca.cityofkingston.hooks:1.0.0 (1105)[ca.cityofkingston.hooks.CalEventLocalServiceHook(5064)] :&lt;strong&gt; Constructor with 0 arguments not found. Component will fail.&lt;/strong&gt; &lt;br /&gt;2019-08-19 12:02:14.499 ERROR [fileinstall-D:/Liferay 7.2/liferay-dxp-7.2.10-ga1/osgi/modules][CalEventLocalServiceHook:93] bundle ca.cityofkingston.hooks:1.0.0 (1105)[ca.cityofkingston.hooks.CalEventLocalServiceHook(5064)] :  Error during instantiation of the implementation object: Constructor not found. &lt;br /&gt;2019-08-19 12:02:14.500 WARN  [Framework Event Dispatcher: Equinox Container: 3d6792b6-f581-41e0-a425-a9454bcba16a][Framework:99] FrameworkEvent WARNING &lt;br /&gt;&lt;strong&gt;org.osgi.framework.ServiceException: org.apache.felix.scr.impl.manager.SingleComponentManager.getService() returned a null service object&lt;/strong&gt;&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:232)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:524)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:464)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624)&lt;br /&gt;    at com.liferay.registry.internal.RegistryImpl.getService(RegistryImpl.java:182)&lt;br /&gt;    at com.liferay.portal.deploy.hot.ServiceWrapperRegistry$ServiceWrapperServiceTrackerCustomizer.addingService(ServiceWrapperRegistry.java:66)&lt;br /&gt;    at com.liferay.portal.deploy.hot.ServiceWrapperRegistry$ServiceWrapperServiceTrackerCustomizer.addingService(ServiceWrapperRegistry.java:57)&lt;br /&gt;    at com.liferay.registry.internal.ServiceTrackerCustomizerAdapter.addingService(ServiceTrackerCustomizerAdapter.java:35)&lt;br /&gt;    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:943)&lt;br /&gt;    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)&lt;br /&gt;    at org.osgi.util.tracker.AbstractTracked.trackAdding(A or.java:263)&lt;br /&gt; )&lt;br /&gt;&lt;br /&gt;2019-08-19 12:02:14.502 ERROR [fileinstall-D:/Liferay 7.2/liferay-dxp-7.2.10-ga1/osgi/modules][CalEventLocalServiceHook:93] bundle ca.cityofkingston.hooks:1.0.0 (1105)[ca.cityofkingston.hooks.CalEventLocalServiceHook(5064)] :  &lt;strong&gt;Error during instantiation of the implementation object: Constructor not found. &lt;/strong&gt;&lt;br /&gt;2019-08-19 12:02:14.504 ERROR [Framework Event Dispatcher: Equinox Container: 3d6792b6-f581-41e0-a425-a9454bcba16a][Framework:93] FrameworkEvent ERROR &lt;br /&gt;&lt;strong&gt;java.lang.NullPointerException&lt;/strong&gt;&lt;br /&gt;    at com.liferay.portal.deploy.hot.ServiceWrapperRegistry$ServiceWrapperServiceTrackerCustomizer.addingService(ServiceWrapperRegistry.java:75)&lt;br /&gt;    at com.liferay.portal.deploy.hot.ServiceWrapperRegistry$ServiceWrapperServiceTrackerCustomizer.addingService(ServiceWrapperRegistry.java:57)&lt;br /&gt;    at com.liferay.registry.internal.ServiceTrackerCustomizerAdapter.addingService(ServiceTrackerCustomizerAdapter.java:35)&lt;br /&gt;    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:943)&lt;br /&gt;    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)&lt;br /&gt;    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;Can anyone help me how to resolve the issue?Thanks,Shiva&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;</summary>
    <dc:creator>Shiva Lingam K</dc:creator>
    <dc:date>2019-08-19T12:12:37Z</dc:date>
  </entry>
</feed>
