Fórum
Faces Alloy 3.0 jar causes exception in Netbeans
samuel tian, modificado 7 Anos atrás.
Faces Alloy 3.0 jar causes exception in Netbeans
New Member Postagens: 10 Data de Entrada: 14/06/12 Postagens Recentes
Just to let you guys know. Once we had com.liferay.faces.alloy-3.0.0.jar included in the project, all the code hint function for xhtml files stops working in Netbeans because of the following exception:
Also tried the latest nightly code from Git but the problem remains.
java.lang.NullPointerException: Unable locate service for com.liferay.faces.util.logging.LoggerFactory
at com.liferay.faces.util.logging.LoggerFactory.<clinit>(LoggerFactory.java:47)
Caused: java.lang.ExceptionInInitializerError
at com.liferay.faces.alloy.taghandler.LoadConstants.<clinit>(LoadConstants.java:41)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:340)
at org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor.loadClass(FaceletsTaglibConfigProcessor.java:223)
at org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor.processHandlerClass(FaceletsTaglibConfigProcessor.java:408)
at org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor.processTags(FaceletsTaglibConfigProcessor.java:364)
at org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor.processTagLibrary(FaceletsTaglibConfigProcessor.java:312)
at org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor.process(FaceletsTaglibConfigProcessor.java:255)
at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.parseLibraries(FaceletsLibrarySupport.java:422)
at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport._findLibraries(FaceletsLibrarySupport.java:346)
at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.findLibraries(FaceletsLibrarySupport.java:291)
at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.getLibraries(FaceletsLibrarySupport.java:193)
at org.netbeans.modules.web.jsf.editor.JsfSupportImpl.getLibrary(JsfSupportImpl.java:241)
at org.netbeans.modules.web.jsf.editor.JsfPageMetadataProvider.getMetadataMap(JsfPageMetadataProvider.java:97)
at org.netbeans.modules.web.common.api.WebPageMetadata.getMetadata(WebPageMetadata.java:70)
at org.netbeans.modules.html.editor.api.Utils.getWebPageMimeType(Utils.java:143)
at org.netbeans.modules.html.editor.gsf.HtmlSemanticAnalyzer.run(HtmlSemanticAnalyzer.java:83)
at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:303)
at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.access$000(SemanticHighlighter.java:82)
at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter$1.run(SemanticHighlighter.java:133)
at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter$1.run(SemanticHighlighter.java:142)
at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:204)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:201)
at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:141)
at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:88)
at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:201)
at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:104)
at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.run(SemanticHighlighter.java:123)
at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.run(SemanticHighlighter.java:82)
at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:584)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:809)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:304)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:725)
at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:686)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
</clinit></clinit>
Also tried the latest nightly code from Git but the problem remains.
Kyle Joseph Stiemann, modificado 7 Anos atrás.
RE: Faces Alloy 3.0 jar causes exception in Netbeans (Resposta)
Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Hi Samuel,
Thanks so much for reporting this. I've created FACES-2966 to track this issue, so please click Start watching this issue in order to see when the fix is merged. If you are eager to try the fix, you can build my fix branch of Liferay Faces Util:
git clone https://github.com/liferay/liferay-faces-util.git
git remote add stiemannkj1 https://github.com/stiemannkj1/liferay-faces-util.git
git fetch stiemannkj1
git checkout stiemannkj1/netbeans-auto-completion-fails-FACES-2966-3.x
mvn clean install
Then you can use the fixed SNAPSHOT jar in your project:
<dependency>
<groupId>com.liferay.faces</groupId>
<artifactId>com.liferay.faces.util</artifactId>
<version>3.0.1-SNAPSHOT</version>
</dependency>
- Kyle
Thanks so much for reporting this. I've created FACES-2966 to track this issue, so please click Start watching this issue in order to see when the fix is merged. If you are eager to try the fix, you can build my fix branch of Liferay Faces Util:
git clone https://github.com/liferay/liferay-faces-util.git
git remote add stiemannkj1 https://github.com/stiemannkj1/liferay-faces-util.git
git fetch stiemannkj1
git checkout stiemannkj1/netbeans-auto-completion-fails-FACES-2966-3.x
mvn clean install
Then you can use the fixed SNAPSHOT jar in your project:
<dependency>
<groupId>com.liferay.faces</groupId>
<artifactId>com.liferay.faces.util</artifactId>
<version>3.0.1-SNAPSHOT</version>
</dependency>
- Kyle
samuel tian, modificado 7 Anos atrás.
RE: Faces Alloy 3.0 jar causes exception in Netbeans
New Member Postagens: 10 Data de Entrada: 14/06/12 Postagens Recentes
Hi Kyle,
Thanks for your response and effort made to this issue.
We've checked out your code and solved our problem. Now we're able to use the API loading and code hint function for all our namespaces including alloy.
Cheers mate. You guys are rock awesome.
Thanks for your response and effort made to this issue.
We've checked out your code and solved our problem. Now we're able to use the API loading and code hint function for all our namespaces including alloy.
Cheers mate. You guys are rock awesome.
Kyle Joseph Stiemann, modificado 7 Anos atrás.
RE: Faces Alloy 3.0 jar causes exception in Netbeans
Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Glad it's working for you! I will comment here when the fix is merged into the official Liferay repo. Thanks for using Liferay Faces!
Kyle Joseph Stiemann, modificado 7 Anos atrás.
RE: Faces Alloy 3.0 jar causes exception in Netbeans
Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Hi Samuel,
I finally got this merged into the Liferay Faces Util repo. I changed the fix slightly, but it's been heavily tested and should work for you. Please remove the custom version of Util that you are using:
rm ~/.m2/repository/com/liferay/faces/com.liferay.faces.util/3.0.1-SNAPSHOT/com.liferay.faces.util-3.0.1-SNAPSHOT.jar
After that, rebuild your project and it should download and use the latest SNAPSHOT. Please let us know if everything is working correctly.
Thanks,
- Kyle
I finally got this merged into the Liferay Faces Util repo. I changed the fix slightly, but it's been heavily tested and should work for you. Please remove the custom version of Util that you are using:
rm ~/.m2/repository/com/liferay/faces/com.liferay.faces.util/3.0.1-SNAPSHOT/com.liferay.faces.util-3.0.1-SNAPSHOT.jar
After that, rebuild your project and it should download and use the latest SNAPSHOT. Please let us know if everything is working correctly.
Thanks,
- Kyle