留言板

ServiceBuilder

Nguyen Paul,修改在12 年前。

ServiceBuilder

New Member 帖子: 16 加入日期: 08-12-3 最近的帖子
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,
thumbnail
Jitendra Rajput,修改在12 年前。

RE: ServiceBuilder

Liferay Master 帖子: 875 加入日期: 11-1-7 最近的帖子
I tried with your service.xml ...its working fine ..with out any error emoticon
thumbnail
Sagar A Vyas,修改在12 年前。

RE: ServiceBuilder

Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
Hi Naguyen,

This error is not because of your service.

Your service.xml is totally fine.

Solution is restart your server and enjoy. emoticon

This is OOB issue in Liferay .

LEP-7412 and LEP-7309

Thanks,
Sagar Vyas
Nguyen Paul,修改在12 年前。

RE: ServiceBuilder

New Member 帖子: 16 加入日期: 08-12-3 最近的帖子
Hi all,

Thanks for your reply. What do you mean OOB issue?
Do you mean every time a portlet is deploy, the tomcat server need to be restarted? No more hot deploy feature with Liferay?
Best regards