Fórum

excpetion while deploying chat portlet source code

Shilpa Malpani, modificado 9 Anos atrás.

excpetion while deploying chat portlet source code

New Member Postagens: 23 Data de Entrada: 10/07/13 Postagens Recentes
Please help.

I'm using Liferay 6.2ga2.
I have downloaded the source code for chat portlet from https://github.com/liferay/liferay-plugins.git.
I added the code to plugin SDK. When i build the code, i get the following exception It seems like a binding issue:-

ERROR in C:\xxxx\liferay-plugins-sdk-6.2\portlets\chat-portlet\docroot\WEB-INF\src\com\liferay\chat\util\PortletPropsValues.java (at line 0)
/**
^
Internal compiler error: java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.apt.model.Factory.newElement(Factory.java:250)
----------
java.lang.NullPointerException
at org.eclipse.jdt.internal.compiler.apt.model.Factory.newElement(Factory.java:250)
at org.eclipse.jdt.internal.compiler.apt.model.Factory.newElement(Factory.java:286)
at org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.resolveAnnotations(AnnotationDiscoveryVisitor.java:186)
at org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.visit(AnnotationDiscoveryVisitor.java:128)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:270)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1313)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:690)
at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundEnvImpl.<init>(RoundEnvImpl.java:58)
at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:148)
at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:813)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:432)
at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:3752)
at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1679)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.jdt.core.JDTCompilerAdapter.execute(JDTCompilerAdapter.java:79)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1159)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:935)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)

Thanks,
Shilpa
thumbnail
Gregory Amerson, modificado 9 Anos atrás.

RE: excpetion while deploying chat portlet source code

Liferay Legend Postagens: 1123 Data de Entrada: 16/02/10 Postagens Recentes
Is this an ant build? or a build in Eclipse?
Shilpa Malpani, modificado 9 Anos atrás.

RE: excpetion while deploying chat portlet source code

New Member Postagens: 23 Data de Entrada: 10/07/13 Postagens Recentes
Hello Gregory,

Thanks for the reply.This is an ant build from the command prompt.
Shilpa Malpani, modificado 9 Anos atrás.

RE: excpetion while deploying chat portlet source code

New Member Postagens: 23 Data de Entrada: 10/07/13 Postagens Recentes
Hello,
I have now taken a fresh sdk and tomcat from Liferay(6.2ga2).
I copied the chat portlet source code in sdk.I could build the services successfully through command prompt.
I have not yet imported the code to eclipse.
But when i build through "ant clean deploy" I'm still getting the same exception.
I have downloaded the chat-portlet source code from https://github.com/liferay/liferay-plugins.Is there any other place i should be downloading the code from?
I have attached the code too.

Please help.
Shilpa Malpani, modificado 9 Anos atrás.

RE: excpetion while deploying chat portlet source code (Resposta)

New Member Postagens: 23 Data de Entrada: 10/07/13 Postagens Recentes
I was able to deploy the source code of chat-portlet using the following link.
https://www.liferay.com/community/forums/-/message_boards/message/22948331

Thanks,
Shilpa