Bug 201410 - ServiceBuilder "Generate Services" throws java.lang.NullPointerException while writting java files
ServiceBuilder "Generate Services" throws java.lang.NullPointerException whil...
Status: NEW
Product: contrib
Classification: Unclassified
Component: Portalpack
6.x
PC Linux
: P1 (vote)
: TBD
Assigned To: Satyaranjan D
issues@contrib
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-29 18:14 UTC by fabiomiranda
Modified: 2011-08-29 18:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fabiomiranda 2011-08-29 18:14:41 UTC
Linux ubuntu x64, NB 6.9.1, PortalPack 3.0.4, Liferay 6.0.6 CE, Glassfish v3.

In Netbeans, with a liferay portlet project, after a new "service.xml" service builder, a simple entity is created, then, "generate services" is clicked and this error is generated:

${service.property.file}
build-service:
Created dir: /home/fabio/NetBeansProjects/WebApplication1/service
Created dir: /home/fabio/NetBeansProjects/WebApplication1/service/src
Created dir: /home/fabio/NetBeansProjects/WebApplication1/service/lib
Created dir: /home/fabio/NetBeansProjects/WebApplication1/web/WEB-INF/sql
/work0/glassfish3/glassfish/domains/domain1/applications/liferay-portal/WEB-INF/lib
Loading jar:file:/work0/glassfish3/glassfish/domains/domain1/applications/liferay-portal/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/work0/glassfish3/glassfish/domains/domain1/applications/liferay-portal/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/work0/glassfish3/glassfish/domains/domain1/applications/liferay-portal/WEB-INF/classes/portal-ext.properties
Loading file:/work0/glassfish3/glassfish/domains/domain1/applications/liferay-portal/WEB-INF/classes/portal-developer.properties
Loading jar:file:/work0/glassfish3/glassfish/domains/domain1/applications/liferay-portal/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
18:09:00,652 INFO  [PortalImpl:278] Global lib directory /work0/glassfish3/glassfish/domains/domain1/lib/
18:09:00,674 INFO  [PortalImpl:298] Portal lib directory /work0/glassfish3/glassfish/domains/domain1/applications/liferay-portal/WEB-INF/lib/
Building foo
Writing /home/fabio/NetBeansProjects/WebApplication1/src/java/com/webapplication1/service/persistence/fooPersistenceImpl.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/persistence/fooPersistence.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/persistence/fooUtil.java
Writing /home/fabio/NetBeansProjects/WebApplication1/src/java/com/webapplication1/model/impl/fooModelImpl.java
Writing /home/fabio/NetBeansProjects/WebApplication1/src/java/com/webapplication1/model/impl/fooImpl.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/model/fooModel.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/model/foo.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/model/fooClp.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/model/fooWrapper.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/model/fooSoap.java
Writing /home/fabio/NetBeansProjects/WebApplication1/src/java/com/webapplication1/service/impl/fooLocalServiceImpl.java
Writing /home/fabio/NetBeansProjects/WebApplication1/src/java/com/webapplication1/service/base/fooLocalServiceBaseImpl.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalService.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceUtil.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceClp.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceWrapper.java
Writing /home/fabio/NetBeansProjects/WebApplication1/src/java/com/webapplication1/service/impl/fooServiceImpl.java
Writing /home/fabio/NetBeansProjects/WebApplication1/src/java/com/webapplication1/service/base/fooServiceBaseImpl.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooService.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooServiceUtil.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooServiceClp.java
Writing /home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooServiceWrapper.java
Writing /home/fabio/NetBeansProjects/WebApplication1/src/java/com/webapplication1/service/http/fooJSONSerializer.java
Writing /home/fabio/NetBeansProjects/WebApplication1/src/java/com/webapplication1/service/http/fooServiceSoap.java
java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at com.liferay.portal.tools.servicebuilder.ServiceBuilder._createOrmXml(ServiceBuilder.java:2520)
        at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:1086)
        at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:396)
        at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:176)
Created dir: /home/fabio/NetBeansProjects/WebApplication1/service/classes
/home/fabio/.netbeans/6.9/servicebuilder/build-service.xml:129: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
Compiling 15 source files to /home/fabio/NetBeansProjects/WebApplication1/service/classes
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/persistence/fooPersistence.java:56: cannot find symbol
symbol  : class NoSuchfooException
location: package com.webapplication1
            com.webapplication1.NoSuchfooException;
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/persistence/fooPersistence.java:72: cannot find symbol
symbol  : class NoSuchfooException
location: package com.webapplication1
            com.webapplication1.NoSuchfooException;
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/persistence/fooUtil.java:142: cannot find symbol
symbol  : class NoSuchfooException
location: package com.webapplication1
            com.webapplication1.NoSuchfooException {
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/persistence/fooUtil.java:162: cannot find symbol
symbol  : class NoSuchfooException
location: package com.webapplication1
            com.webapplication1.NoSuchfooException {
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceClp.java:68: cannot find symbol
symbol  : variable ClpSerializer
location: class com.webapplication1.service.fooLocalServiceClp
        return (com.webapplication1.model.foo) ClpSerializer.translateOutput(returnObj);
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceClp.java:88: cannot find symbol
symbol  : variable ClpSerializer
location: class com.webapplication1.service.fooLocalServiceClp
        return (com.webapplication1.model.foo) ClpSerializer.translateOutput(returnObj);
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceClp.java:162: cannot find symbol
symbol  : variable ClpSerializer
location: class com.webapplication1.service.fooLocalServiceClp
        return (java.util.List) ClpSerializer.translateOutput(returnObj);
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceClp.java:189: cannot find symbol
symbol  : variable ClpSerializer
location: class com.webapplication1.service.fooLocalServiceClp
        return (java.util.List) ClpSerializer.translateOutput(returnObj);
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceClp.java:218: cannot find symbol
symbol  : variable ClpSerializer
location: class com.webapplication1.service.fooLocalServiceClp
        return (java.util.List) ClpSerializer.translateOutput(returnObj);
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceClp.java:273: cannot find symbol
symbol  : variable ClpSerializer
location: class com.webapplication1.service.fooLocalServiceClp
        return (com.webapplication1.model.foo) ClpSerializer.translateOutput(returnObj);
/home/fabio/NetBeansProjects/WebApplication1/service/src/com/webapplication1/service/fooLocalServiceClp.java:298: cannot find symbol
symbol  : variable ClpSerializer
location: class com.webapplication1.service.fooLocalServiceClp
        return (java.util.List<com.webapplication1.model.foo>) ClpSerializer.translateOutput(returnObj);
[...]


This error causes portal pack 3.0.4 is useless in liferay 6.0.6.

Please help,

thanks

fabio.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo