cancel
Showing results for 
Search instead for 
Did you mean: 

Issue while using custom webservices extension with addon

Former Member
0 Kudos

Hi All,

I have created an extension of web service nature using the template 'ycommercewebservices'. Want to use features of addon so I have added the dependency in the extensioninfo.xml file of the new extension

The addon extension is dependent on commerceorgaddon While doing a build I am getting following issue

[yjavac] Internal compiler error: java.lang.NullPointerException at org.ee.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.resolveAnnotations(AnnotationDiscoveryVisitor.java:236) [yjavac] ---------- [yjavac] java.lang.NullPointerException

Anyone knows How to fix the issue?

Thanks!

Former Member
0 Kudos

Hi Kuber - Did you find a solution or work around for this issue ? I too am facing this issue and wondering about the solution. Would appreciate any feeds. Thanks Vijay

VinayKumarS
Active Contributor
0 Kudos

i created the same it works for me. can u please explain the detail steps.. and complete exception stack trace please

Accepted Solutions (0)

Answers (1)

Answers (1)

mohanish1990
Explorer
0 Kudos

In my case buildcallback.xml file for storefront extension wasn't copying acceleratorstrontcommons src files to storefront extension's commonwebsrc folder. And after adding below code I could compile the extension wtih src from acceleratorstorefront:

<macrodef name="***storefront_before_build">
   <sequential>
      <copy overwrite="true" todir="${ext.***storefront.path}/web/webroot/WEB-INF/messages" verbose="true">
         <fileset dir="${ext.***storefront.path}/web/webroot/WEB-INF/messages/" includes="*_en.properties" />
         <mapper>
            <mapper from="^(.*)_en.properties$$" to="\1.properties" type="regexp" />
         </mapper>
      </copy>
      <foreachext>
         <do>
            <if>
               <available file="${ext.@{extname}.path}/commonweb" />
               <then>
                  <echo message="Found commonweb extension:  @{extname}" />
                  <copyCommonWebToExtension commonwebextension="@{extname}" commonwebresource="/src" target="***storefront" />
               </then>
            </if>
         </do>
      </foreachext>
   </sequential>
</macrodef>