<?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>DXP 7.1 Custom form adapter bundle-Spring based jar integration issue</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113111603" />
  <subtitle>DXP 7.1 Custom form adapter bundle-Spring based jar integration issue</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113111603</id>
  <updated>2026-04-04T17:13:38Z</updated>
  <dc:date>2026-04-04T17:13:38Z</dc:date>
  <entry>
    <title>RE: DXP 7.1 Custom form adapter bundle-Spring based jar integration issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113166687" />
    <author>
      <name>Gopal Satapathy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113166687</id>
    <updated>2019-04-11T16:24:25Z</updated>
    <published>2019-04-11T16:24:25Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;Can anyone help me out on this please??&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;​​​​​​​Gopal</summary>
    <dc:creator>Gopal Satapathy</dc:creator>
    <dc:date>2019-04-11T16:24:25Z</dc:date>
  </entry>
  <entry>
    <title>DXP 7.1 Custom form adapter bundle-Spring based jar integration issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113111602" />
    <author>
      <name>Gopal Satapathy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113111602</id>
    <updated>2019-04-10T07:50:23Z</updated>
    <published>2019-04-10T07:50:23Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello.&lt;br&gt;&lt;br&gt;I am using DXP 7.1 and trying to create a custom bundle which also needs to use a &lt;strong&gt;spring built custom non-osgi webservice client jar&lt;/strong&gt;. Basically i am creating a form adapter which will call a SOAP service to store data. i already have the spring based webservice client jar that i think to re-use.&lt;br&gt;&lt;br&gt;But getting Null pointer exception.&lt;br&gt;&lt;pre&gt;&lt;code&gt;​​​​​​​java.lang.NullPointerException
        at be.bpost.home.ws.client.service.impl.CreateWebformDataClientImpl.sendWebFormDataToSharePoint(CreateWebformDataClientImpl.java:50)
        at custom.form.adapter.service.SharePointServiceImpl.callSharePointServices(SharePointServiceImpl.java:24)
        at custom.form.adapter.portlet.CustomFormAdapterComponent.doCreate(CustomFormAdapterComponent.java:75)
        at com.liferay.dynamic.data.mapping.storage.BaseStorageAdapter.create(BaseStorageAdapter.java:41)
        at com.liferay.dynamic.data.mapping.storage.impl.StorageEngineImpl.create(StorageEngineImpl.java:47)
        at com.liferay.dynamic.data.mapping.service.impl.DDMFormInstanceRecordLocalServiceImpl.addFormInstanceRecord(DDMFormInstanceRecordLocalServiceImpl.java:105)
        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)&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;In 6.2 i was achieve the same using spring portlet and by using a spring-context/portlet.xml with following content and it worked fine.&amp;nbsp;be.bpost.home.ws.client.service.**, be.bpost.home.ws.client.configuration.** packages reside in the jar file.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;!--?xml version="1.0"?--&amp;gt;

&amp;lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd"&amp;gt;   
    &amp;lt;util:properties id="servicesPropertyConfigurer" location="classpath:/portlet-ext.properties" /&amp;gt;
    &amp;lt;context:component-scan base-package="be.bpost.home.roleholiday.controller.**, be.bpost.home.ws.client.service.**, be.bpost.home.ws.client.configuration.**" /&amp;gt;
&amp;lt;/beans&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Attaching the source code of the form adapter bundle as reference.&lt;br&gt;&lt;br&gt;Thanks in advance for any pointer towards resolution.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Gopal&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Gopal Satapathy</dc:creator>
    <dc:date>2019-04-10T07:50:23Z</dc:date>
  </entry>
</feed>
