留言板
ServiceBuilder
When I used servicebuilder to generate code,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
<service-builder package-path="com.library.slayer">
<author>AAA</author>
<namespace>LMS</namespace>
<entity name="LMSBook" local-service="true" remote-service="false">
<!-- PK fields -->
<column name="bookId" type="long" primary="true" />
<!-- UI fields -->
<column name="bookTitle" type="String" />
<column name="author" type="String" />
<!-- Audit fields -->
<column name="dateAdded" type="Date" />
</entity>
</service-builder>
I got the following error
ERROR [IncludeTag:231] Current URL /poller/send generates exception: Invocation of method 'include' in class com.liferay.taglib.util.VelocityTaglib threw exception org.apache.jasper.JasperException: javax.servlet.ServletException: com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: java.lang.NullPointerException at _SERVLET_CONTEXT_/html/themes/classic/templates/portal_normal.vm[line 85, column 8]
11:55:36,221 ERROR [IncludeTag:154] com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: java.lang.NullPointerException
at com.liferay.util.Encryptor.encryptUnencoded(Encryptor.java:194)
at com.liferay.util.Encryptor.encrypt(Encryptor.java:163)
Do you have any idea what is wrong?
Best regards,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
<service-builder package-path="com.library.slayer">
<author>AAA</author>
<namespace>LMS</namespace>
<entity name="LMSBook" local-service="true" remote-service="false">
<!-- PK fields -->
<column name="bookId" type="long" primary="true" />
<!-- UI fields -->
<column name="bookTitle" type="String" />
<column name="author" type="String" />
<!-- Audit fields -->
<column name="dateAdded" type="Date" />
</entity>
</service-builder>
I got the following error
ERROR [IncludeTag:231] Current URL /poller/send generates exception: Invocation of method 'include' in class com.liferay.taglib.util.VelocityTaglib threw exception org.apache.jasper.JasperException: javax.servlet.ServletException: com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: java.lang.NullPointerException at _SERVLET_CONTEXT_/html/themes/classic/templates/portal_normal.vm[line 85, column 8]
11:55:36,221 ERROR [IncludeTag:154] com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: java.lang.NullPointerException
at com.liferay.util.Encryptor.encryptUnencoded(Encryptor.java:194)
at com.liferay.util.Encryptor.encrypt(Encryptor.java:163)
Do you have any idea what is wrong?
Best regards,
Hi Naguyen,
This error is not because of your service.
Your service.xml is totally fine.
Solution is restart your server and enjoy.
This is OOB issue in Liferay .
LEP-7412 and LEP-7309
Thanks,
Sagar Vyas
This error is not because of your service.
Your service.xml is totally fine.
Solution is restart your server and enjoy.
This is OOB issue in Liferay .
LEP-7412 and LEP-7309
Thanks,
Sagar Vyas