Details

    • Type: Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 5.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      java 1.6, Linux Kubuntu and ANT 1.7.0

      Description

      When I execute "/ext/ext-impl/ant build-service" I get the following error:

      build-service:
      3...
      4 [java] java.lang.NullPointerException
      5 [java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder._createRemotingXml(ServiceBuilder.java:2191)
      6 [java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:994)
      7 [java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:393)
      8 [java] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:159)
      9...

      Even when my entity (in service.xml), is set as remote-service="false"

      Here is my service.xml file:

      <?xml version="1.0"?>
      <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 5.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_5_2_0.dtd">

      <service-builder package-path="com.germinus.liferay.syncliferayalfresco">

      <namespace>Intranet</namespace>

      <entity name="SyncLiferayAlfresco"
      table="SyncLiferayAlfresco"
      local-service="true"
      remote-service="false"
      data-source="MyDataSource"
      session-factory="MySessionFactory"
      tx-manager="MyTransactionManager">

      <!-- PK fields -->
      <column name="syncId" type="Integer"
      primary="true" id-type="class"
      id-param="com.liferay.counter.service.persistence.IDGenerator"/>

      <column name="companyId" type="Long" />

      <column name="groupId" type="Long" />
      <column name="entityId" type="Long" />
      <column name="nodeRef" type="String" />

      <finder name="EntityId" return-type="Collection">
      <finder-column name="entityId" />
      </finder>
      <finder name="GroupId" return-type="Collection">
      <finder-column name="groupId" />
      </finder>
      <finder name="NodeRef" return-type="Collection">
      <finder-column name="nodeRef" />
      </finder>

      </entity>

      </service-builder>

      I added some extra beans to ext-spring.xml file, and I discovered that if I remove this lines, service builder works well. But if I add my lines it rise NullPointerException. So, I remove lines, then excecute service builder, and then add my lines at bottom of the file manually.

      Here is the lines who cause service builder crashes:

      <!-- AOP interception for layout updates -->
      <bean id="layoutInterceptor" class="com.ext.portlet.synchronization_process.aop.MyLayoutInterceptor" />
      <bean id="layoutClassFilter" class="com.ext.portlet.synchronization_process.aop.MyLayoutClassFilter" />
      <bean name="layout.pointcut.advisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
      <property name="classFilter" ref="layoutClassFilter"/>
      <property name="advice" ref="layoutInterceptor"/>
      <property name="mappedName" value="updateLayout"/>
      </bean>

      <!-- AOP interception for organization updates -->
      <bean id="organizationInterceptor" class="com.ext.portlet.synchronization_process.aop.MyOrganizationInterceptor" />
      <bean id="organizationClassFilter" class="com.ext.portlet.synchronization_process.aop.MyOrganizationClassFilter" />
      <bean name="organization.pointcut.advisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
      <property name="classFilter" ref="organizationClassFilter"/>
      <property name="advice" ref="organizationInterceptor"/>
      <property name="mappedName" value="updateOrganization"/>
      </bean>

      <!-- AOP interception for community updates -->
      <bean id="communityInterceptor" class="com.ext.portlet.synchronization_process.aop.MyGroupInterceptor" />
      <bean id="groupClassFilter" class="com.ext.portlet.synchronization_process.aop.MyGroupClassFilter" />
      <bean name="community.pointcut.advisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
      <property name="classFilter" ref="groupClassFilter"/>
      <property name="advice" ref="communityInterceptor"/>
      <property name="mappedName" value="updateGroup"/>
      </bean>

      <bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/>

      bye,
      Diego

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 49 weeks, 4 days ago