PARSER_ERROR while building services in liferay - liferay

While deployment getting the error for method which is having List<List<object>> return type. Its not compiling and throwing the PARSER_ERROR
08:35:51,817 ERROR [main][java:355] PARSER_ERROR
[echo] D:\Gitlab\OR3-Dev-Core\liferay-plugins-sdk-6.2-ee-sp17\portlets\onrule-extension-projects-task-service-portlet\ServiceBuilder.temp:1684:13: expecting SEMI, found 'getDonutChartData'
[echo] at antlr.Parser.match(Parser.java:211)
[echo] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classField(InternalJavaParser.java:3081)
[echo] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classBlock(InternalJavaParser.java:2457)
[echo] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classDefinition(InternalJavaParser.java:710)
[echo] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinitionInternal(InternalJavaParser.java:632)
[echo] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinition(InternalJavaParser.java:465)
[echo] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:296)
[echo] at de.hunsicker.jalopy.language.JavaRecognizer.parse(JavaRecognizer.java:588)
[echo] at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1212)
[echo] at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1044)
[echo] at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1017)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.writeFile(ServiceBuilder.java:448)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.writeFile(ServiceBuilder.java:364)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder._createServiceSoap(ServiceBuilder.java:3236)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:810)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:229)
[echo] 08:35:51,942 ERROR [main][io:1071] UNKNOWN_ERROR
[echo] expecting EOF, found 'return'
[echo] D:\Gitlab\OR3-Dev-Core\liferay-plugins-sdk-6.2-ee-sp17\portlets\onrule-extension-projects-task-service-portlet\ServiceBuilder.temp:1719:33: expecting EOF, found 'return'
[echo] Nested Exception is: D:\Gitlab\OR3-Dev-Core\liferay-plugins-sdk-6.2-ee-sp17\portlets\onrule-extension-projects-task-service-portlet\ServiceBuilder.temp:1719:33: expecting EOF, found 'return' at antlr.Parser.match(Parser.java:211)
[echo] at antlr.Parser.match(Parser.java:211)
[echo] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:308) at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:308)
[echo] at de.hunsicker.jalopy.language.JavaRecognizer.parse(JavaRecognizer.java:588)
[echo] at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1212) at de.hunsicker.jalopy.language.JavaRecognizer.parse(JavaRecognizer.java:588)
[echo] at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1044)
[echo] at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1212)
[echo] at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1017) at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1044)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.writeFile(ServiceBuilder.java:448)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.writeFile(ServiceBuilder.java:364) at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1017)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder._createServiceSoap(ServiceBuilder.java:3236)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:810) at com.liferay.portal.tools.servicebuilder.ServiceBuilder.writeFile(ServiceBuilder.java:448)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:229) at com.liferay.portal.tools.servicebuilder.ServiceBuilder.writeFile(ServiceBuilder.java:364)
[echo] Building ProjectTaskDependency
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder._createServiceSoap(ServiceBuilder.java:3236)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:810)
[echo] at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:229)

I haven't tried generic classes, especially not doubly-generic ones, as return types. You might have found a limitation in types that ServiceBuilder can handle.
As you don't post your code, I'm assuming that your method that returns a List<List<Object>> is within a *LocalServiceImpl? You might want to post your code (as an MCVE) to make your situation easier to reproduce.

Related

how to resolve the "Sass::SyntaxError: Invalid CSS" error in Liferay 6.2?

I am using Eclipse Kepler-4.3 and Liferay 6.2 CE GA5.
I tried to deploy a theme but I got this error:
[echo] Loading jar:file:/D:/FormationJEE/Liferay/LiferayGA5/tomcat/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
[echo] Loading jar:file:/D:/FormationJEE/Liferay/LiferayGA5/tomcat/liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
[echo] Sass::SyntaxError: Invalid CSS after "...ow-x: hidden\0/": expected expression (e.g. 1px, bold), was ";"
[echo] expected at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1147
[echo] expected! at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/lexer.rb:199
[echo] assert_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:471
[echo] times_div_or_mod at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:233
[echo] plus_or_minus at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
[echo] relational at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
[echo] eq_or_neq at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
[echo] and_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
[echo] or_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:225
[echo] space at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:298
[echo] expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:246
[echo] send at org/jruby/RubyKernel.java:2093
[echo] assert_expr at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:470
[echo] parse at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/script/parser.rb:49
[echo] send at org/jruby/RubyKernel.java:2093
[echo] sass_script at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1021
[echo] value! at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:881
[echo] declaration at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:858
[echo] declaration_or_ruleset at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:581
[echo] call at org/jruby/RubyProc.java:270
[echo] call at org/jruby/RubyProc.java:220
[echo] rethrow at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1122
[echo] declaration_or_ruleset at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:591
[echo] block_child at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:553
[echo] block_contents at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:542
[echo] block at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:534
[echo] ruleset at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:528
[echo] block_child at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:552
[echo] block_contents at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:545
[echo] stylesheet at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:82
[echo] parse at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:27
[echo] _to_tree at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:342
[echo] _render at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:315
[echo] render at C:/Users/MARWEN~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:262
[echo] (root) at <script>:48
[echo] Unable to parse /css/app.css
[echo] Exception in thread "main" org.jruby.embed.EvalFailedException: (SyntaxError) Invalid CSS after
"...ow-x: hidden\0/": expected expression (e.g. 1px, bold), was ";"
[echo] at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:127)
[echo] at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
[echo] at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
[echo] at com.liferay.portal.scripting.ruby.RubyExecutor.doEval(RubyExecutor.java:189)
[echo] at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:229)
[echo] at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:129)
[echo] at com.liferay.portal.tools.SassToCssBuilder._parseSassFile(SassToCssBuilder.java:355)
[echo] at com.liferay.portal.tools.SassToCssBuilder._cacheSass(SassToCssBuilder.java:186)
[echo] at com.liferay.portal.tools.SassToCssBuilder._parseSassDirectory(SassToCssBuilder.java:317)
[echo] at com.liferay.portal.tools.SassToCssBuilder.(SassToCssBuilder.java:172)
[echo] at com.liferay.portal.tools.SassToCssBuilder.main(SassToCssBuilder.java:125)
[echo] Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) Invalid CSS after "...ow-x: hidden\0/": expected
expression (e.g. 1px, bold), was ";"
BUILD FAILED
D:\FormationJEE\Liferay\LiferayGA5\sdk\liferay-plugins-sdk-6.2\build-common.xml:3162:
The following error occurred while executing this line: : The
following error occurred while executing this line:
D:\FormationJEE\Liferay\LiferayGA5\sdk\liferay-plugins-sdk-6.2\build-common.xml:1421:
The following error occurred while executing this line: : The
following error occurred while executing this line:
D:\FormationJEE\Liferay\LiferayGA5\sdk\liferay-plugins-sdk-6.2\build-common.xml:2866:
The following error occurred while executing this line:
D:\FormationJEE\Liferay\LiferayGA5\sdk\liferay-plugins-sdk-6.2\build-common.xml:190:
Sass to CSS Builder generated exceptions.
May it be that you have a syntax error in the CSS
Sass::SyntaxError: Invalid CSS after "...ow-x: hidden\0/": expected
expression (e.g. 1px, bold), was ";"

Liferay BroadLeaf Integraion

Can some one tell me how to import broadleaf-commerce portlet in liferay / integration of broadleaf with liferay. I have a sample of broadleaf portlet as i see the folder structure it looks like maven project.
I am importing the project as maven project. Is this approach correct..I am newbie to liferay and starting to learn.
Project Structure After importing
Error Log After Importing the project
Keystore file 'E:\Software Backups\Coding Zone\liferayworkspace\DemoSite-Portlet-develop\admin\target\admin\WEB-INF\blc-example.keystore' doesn't exist.
[INFO]
[INFO] --- keytool-maven-plugin:1.2:genkey (genkey) # admin ---
[WARNING] Error injecting: org.codehaus.mojo.keytool.DefaultKeyTool
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) No implementation for org.codehaus.mojo.keytool.KeyToolCommandLineBuilder was bound.
while locating org.codehaus.mojo.keytool.DefaultKeyTool
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1018)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044)
at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:46)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1066)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:36)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1066)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
at org.eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:250)
at org.eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:48)
at org.eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.java:52)
at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:140)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:117)
at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:92)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1066)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044)
at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:46)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1059)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:36)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:546)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[WARNING] Error injecting: org.codehaus.mojo.keytool.GenkeyMojo
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) No implementation for org.codehaus.mojo.keytool.KeyToolCommandLineBuilder was bound.
while locating org.codehaus.mojo.keytool.DefaultKeyTool
at ClassRealm[plugin>org.codehaus.mojo:keytool-maven-plugin:1.2, parent: sun.misc.Launcher$AppClassLoader#18b4aac2] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
at ClassRealm[plugin>org.codehaus.mojo:keytool-maven-plugin:1.2, parent: sun.misc.Launcher$AppClassLoader#18b4aac2] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
while locating org.codehaus.mojo.keytool.KeyTool
while locating org.codehaus.mojo.keytool.GenkeyMojo
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1018)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044)
at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:46)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1059)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:36)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:546)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ecommerce .......................................... SUCCESS [ 0.633 s]
[INFO] core ............................................... SUCCESS [ 5.568 s]
[INFO] admin .............................................. FAILURE [ 1.691 s]
[INFO] portlet ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.205 s
[INFO] Finished at: 2017-01-24T20:33:22+05:30
[INFO] Final Memory: 18M/208M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:keytool-maven-plugin:1.2:genkey (genkey) on project admin: Execution genkey of goal org.codehaus.mojo:keytool-maven-plugin:1.2:genkey failed: Unable to load the mojo 'genkey' (or one of its required components) from the plugin 'org.codehaus.mojo:keytool-maven-plugin:1.2': com.google.inject.ProvisionException: Unable to provision, see the following errors:
[ERROR]
[ERROR] 1) No implementation for org.codehaus.mojo.keytool.KeyToolCommandLineBuilder was bound.
[ERROR] while locating org.codehaus.mojo.keytool.DefaultKeyTool
[ERROR] at ClassRealm[plugin>org.codehaus.mojo:keytool-maven-plugin:1.2, parent: sun.misc.Launcher$AppClassLoader#18b4aac2] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
[ERROR] at ClassRealm[plugin>org.codehaus.mojo:keytool-maven-plugin:1.2, parent: sun.misc.Launcher$AppClassLoader#18b4aac2] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
[ERROR] while locating org.codehaus.mojo.keytool.KeyTool
[ERROR] while locating org.codehaus.mojo.keytool.GenkeyMojo
[ERROR] at ClassRealm[plugin>org.codehaus.mojo:keytool-maven-plugin:1.2, parent: sun.misc.Launcher$AppClassLoader#18b4aac2] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
[ERROR] while locating org.apache.maven.plugin.Mojo annotated with #com.google.inject.name.Named(value=org.codehaus.mojo:keytool-maven-plugin:1.2:genkey)
[ERROR]
[ERROR] 1 error
[ERROR] role: org.apache.maven.plugin.Mojo
[ERROR] roleHint: org.codehaus.mojo:keytool-maven-plugin:1.2:genkey
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :admin

ArrayIndexOutOfBoundsException when using CQLSSTableWriter

I am using CQLSSTableWriter in an application which prepares sstables for bulk load into Cassandra 2.1.2 using sstableloader.
"Sometimes" I encounter this exception in the application's output:
14:23:58.694 [Thread-4] DEBUG o.apache.cassandra.io.util.FileUtils - Renaming /mnt/datasstables-generated/2006/05/sensordata/packets_area_cell1/sensordata-packets_area_cell1-tmp-ka-318-CompressionInfo.db to /mnt/datasstables-generated/2006/05/sensordata/packets_area_cell1/sensordata-packets_area_cell1-ka-318-CompressionInfo.db
14:23:58.695 [Thread-4] DEBUG o.apache.cassandra.io.util.FileUtils - Renaming /mnt/datasstables-generated/2006/05/sensordata/packets_area_cell1/sensordata-packets_area_cell1-tmp-ka-318-Data.db to /mnt/datasstables-generated/2006/05/sensordata/packets_area_cell1/sensordata-packets_area_cell1-ka-318-Data.db
Exception in thread "Thread-7" java.lang.ArrayIndexOutOfBoundsException: 132385
at org.apache.cassandra.db.ArrayBackedSortedColumns.append(ArrayBackedSortedColumns.java:196)
at org.apache.cassandra.db.ArrayBackedSortedColumns.sortCells(ArrayBackedSortedColumns.java:167)
at org.apache.cassandra.db.ArrayBackedSortedColumns.maybeSortCells(ArrayBackedSortedColumns.java:125)
at org.apache.cassandra.db.ArrayBackedSortedColumns.access$1100(ArrayBackedSortedColumns.java:44)
at org.apache.cassandra.db.ArrayBackedSortedColumns$CellCollection.iterator(ArrayBackedSortedColumns.java:622)
at org.apache.cassandra.db.ColumnFamily.iterator(ColumnFamily.java:476)
at org.apache.cassandra.db.ColumnFamily.getColumnStats(ColumnFamily.java:429)
at org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:225)
at org.apache.cassandra.io.sstable.SSTableSimpleUnsortedWriter$DiskWriter.run(SSTableSimpleUnsortedWriter.java:215)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at dk.company.commons.app.CliCommandList$1.execute(CliCommandList.java:50)
at dk.company.commons.app.CliCommandList.invoke(CliCommandList.java:80)
at dk.company.ais.store.Main.main(Main.java:33)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 132385
at org.apache.cassandra.db.ArrayBackedSortedColumns.append(ArrayBackedSortedColumns.java:196)
at org.apache.cassandra.db.ArrayBackedSortedColumns.sortCells(ArrayBackedSortedColumns.java:167)
at org.apache.cassandra.db.ArrayBackedSortedColumns.maybeSortCells(ArrayBackedSortedColumns.java:125)
at org.apache.cassandra.db.ArrayBackedSortedColumns.access$1100(ArrayBackedSortedColumns.java:44)
at org.apache.cassandra.db.ArrayBackedSortedColumns$CellCollection.iterator(ArrayBackedSortedColumns.java:622)
at org.apache.cassandra.db.ColumnFamily.iterator(ColumnFamily.java:476)
at org.apache.cassandra.db.ColumnFamily.getColumnStats(ColumnFamily.java:429)
at org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:225)
at org.apache.cassandra.io.sstable.SSTableSimpleUnsortedWriter$DiskWriter.run(SSTableSimpleUnsortedWriter.java:215)
14:24:45.763 [Thread-3] DEBUG o.apache.cassandra.io.util.FileUtils - Renaming /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-tmp-ka-320-Index.db to /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-ka-320-Index.db
14:24:45.763 [Thread-3] DEBUG o.apache.cassandra.io.util.FileUtils - Renaming /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-tmp-ka-320-Filter.db to /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-ka-320-Filter.db
14:24:45.765 [Thread-3] DEBUG o.apache.cassandra.io.util.FileUtils - Renaming /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-tmp-ka-320-Digest.sha1 to /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-ka-320-Digest.sha1
14:24:45.765 [Thread-3] DEBUG o.apache.cassandra.io.util.FileUtils - Renaming /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-tmp-ka-320-Statistics.db to /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-ka-320-Statistics.db
14:24:45.766 [Thread-3] DEBUG o.apache.cassandra.io.util.FileUtils - Renaming /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-tmp-ka-320-TOC.txt to /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-ka-320-TOC.txt
14:24:45.766 [Thread-3] DEBUG o.apache.cassandra.io.util.FileUtils - Renaming /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-tmp-ka-320-CompressionInfo.db to /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-ka-320-CompressionInfo.db
14:24:45.767 [Thread-3] DEBUG o.apache.cassandra.io.util.FileUtils - Renaming /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-tmp-ka-320-Data.db to /mnt/datasstables-generated/2006/05/sensordata/packets_id/sensordata-packets_id-ka-320-Data.db
I remain yet to figure out whether "sometimes" is always at the same place in my input files; or whether the exception is triggered more unpredictably. The dataset is quite large - so it takes a while to reproduce. The example above occured after 9 hours of processing raw input from files.
Has someone else seen this - or knows how to resolve it?
UPDATE: I have filed a bug report:
https://issues.apache.org/jira/browse/CASSANDRA-8978.

java.lang.IllegalStateException: javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager'

After build a lot of converters in my JSF app, I turned my attention to Omnifaces and everything's working like a charm. The problem arises when I deploy my application. The first time I access to my login page, it throws the next exception:
SEVERE: BeanManager enum singleton failed to initialize.
java.lang.IllegalStateException: javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager]]
at org.omnifaces.util.JNDI.lookup(JNDI.java:87)
at org.omnifaces.config.BeanManager.init(BeanManager.java:76)
at org.omnifaces.config.BeanManager.getReference(BeanManager.java:115)
at org.omnifaces.application.OmniApplication.createValidator(OmniApplication.java:105)
at com.sun.faces.component.validator.ComponentValidators.addValidatorsToComponent(ComponentValidators.java:280)
at com.sun.faces.component.validator.ComponentValidators.addDefaultValidatorsToComponent(ComponentValidators.java:147)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.processValidators(ComponentTagHandlerDelegateImpl.java:550)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.privateOnComponentPopulated(ComponentTagHandlerDelegateImpl.java:531)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:195)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
at com.sun.faces.facelets.tag.jsf.core.MetadataHandler.apply(MetadataHandler.java:104)
at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:116)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:233)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:809)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:505)
at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:476)
at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:355)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:305)
at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:464)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:253)
at com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1333)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:623)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager]]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.omnifaces.util.JNDI.lookup(JNDI.java:83)
... 53 more
Caused by: javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager]
at org.glassfish.weld.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:129)
at com.sun.enterprise.naming.impl.NamedNamingObjectManager.tryNamedProxies(NamedNamingObjectManager.java:89)
at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:174)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:498)
... 57 more
Caused by: java.lang.IllegalStateException: Cannot resolve bean manager
at org.glassfish.weld.BeanManagerNamingProxy.handle(BeanManagerNamingProxy.java:119)
... 60 more
However, when I refresh my page, everything works fine.
Any ideas? Regards !!!
I'm using Glassfish 3.1.2.2 with JSF 2.1
This will be thrown when the webapp is not explicitly CDI-enabled while it's deployed to an implicitly CDI-enabled server (such as GlassFish 3 in your case). This is fixed since OmniFaces 1.8. An alternative is to explicitly enable CDI in your webapp by creating a /WEB-INF/beans.xml file.
I was getting this exception while trying to run my Payara 4.1 application. Actually I was interchangeably getting the following 2:
Exception 0 :
org.jboss.weld.exceptions.UnserializableDependencyException: WELD-001413: The bean Managed Bean [class com.baw.website.beans.quality.ui.AuditBean] with qualifiers [#Default #Any #Named] declares a passivating scope but has a non-passivation-capable dependency Managed Bean [class com.baw.website.rest.clients.AuthUtil] with qualifiers [#Any #Default]
and
Caused by: javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager]]
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at org.omnifaces.util.JNDI.lookup(JNDI.java:90)
After analyzing, I found that I had 2 classes with the same name in different packages:
com.mycompany.mypackageone.Myclass
com.mycompany.mypackagetwo.Myclass
One of them was being CDI-injected into a ManagedBean which was related to a JSF page that used Omnifaces. I'm not sure where the conflict was occurring (I do have a beans.xml). But for me, stop/starting Payara, and renaming one of the 2 identically-named classes did the trick and got rid of the errors.

Getting the error android.view.InflateException for the Android Cropper

I am trying to use the android cropper library at https://github.com/edmodo/cropper . I have imported the 'cropper.jar' file properly in the libs folder as well.
But, when I'm trying to use the custom view CropImageView (this is defined in the cropper library in the package com.edmondo.cropper.CropImageView) in my XML layout:
<com.edmodo.cropper.CropImageView
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="#+id/CropImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
I am getting the error:
02-04 19:14:16.239: W/dalvikvm(28620): VFY: unable to resolve static field 1378 (CropImageView) in Lcom/edmodo/cropper/R$styleable;
02-04 19:14:16.239: D/dalvikvm(28620): VFY: replacing opcode 0x62 at 0x0011
02-04 19:14:16.239: W/dalvikvm(28620): VFY: unable to resolve static field 1377 (crop_image_view) in Lcom/edmodo/cropper/R$layout;
02-04 19:14:16.239: D/dalvikvm(28620): VFY: replacing opcode 0x60 at 0x0004
02-04 19:14:16.239: I/dalvikvm(28620): DexOpt: unable to optimize static field ref 0x0560 at 0x0b in Lcom/edmodo/cropper/CropImageView;.init
02-04 19:14:16.239: I/dalvikvm(28620): DexOpt: unable to optimize static field ref 0x055f at 0x1a in Lcom/edmodo/cropper/CropImageView;.init
02-04 19:14:16.239: D/AndroidRuntime(28620): Shutting down VM
02-04 19:14:16.239: W/dalvikvm(28620): threadid=1: thread exiting with uncaught exception (group=0x41527ba8)
02-04 19:14:16.249: E/AndroidRuntime(28620): FATAL EXCEPTION: main
02-04 19:14:16.249: E/AndroidRuntime(28620): Process: com.vishal.cameragallerypics, PID: 28620
02-04 19:14:16.249: E/AndroidRuntime(28620): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vishal.cameragallerypics/com.vishal.cameragallerypics.MainActivity}: android.view.InflateException: Binary XML file line #86: Error inflating class com.edmodo.cropper.CropImageView
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.app.ActivityThread.access$800(ActivityThread.java:135)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.os.Handler.dispatchMessage(Handler.java:102)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.os.Looper.loop(Looper.java:136)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.app.ActivityThread.main(ActivityThread.java:5017)
02-04 19:14:16.249: E/AndroidRuntime(28620): at java.lang.reflect.Method.invokeNative(Native Method)
02-04 19:14:16.249: E/AndroidRuntime(28620): at java.lang.reflect.Method.invoke(Method.java:515)
02-04 19:14:16.249: E/AndroidRuntime(28620): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
02-04 19:14:16.249: E/AndroidRuntime(28620): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
02-04 19:14:16.249: E/AndroidRuntime(28620): at dalvik.system.NativeStart.main(Native Method)
02-04 19:14:16.249: E/AndroidRuntime(28620): Caused by: android.view.InflateException: Binary XML file line #86: Error inflating class com.edmodo.cropper.CropImageView
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.createView(LayoutInflater.java:620)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
02-04 19:14:16.249: E/AndroidRuntime(28620): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.app.Activity.setContentView(Activity.java:1929)
02-04 19:14:16.249: E/AndroidRuntime(28620): at com.vishal.cameragallerypics.MainActivity.onCreate(MainActivity.java:120)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.app.Activity.performCreate(Activity.java:5231)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
02-04 19:14:16.249: E/AndroidRuntime(28620): ... 11 more
02-04 19:14:16.249: E/AndroidRuntime(28620): Caused by: java.lang.reflect.InvocationTargetException
02-04 19:14:16.249: E/AndroidRuntime(28620): at java.lang.reflect.Constructor.constructNative(Native Method)
02-04 19:14:16.249: E/AndroidRuntime(28620): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
02-04 19:14:16.249: E/AndroidRuntime(28620): at android.view.LayoutInflater.createView(LayoutInflater.java:594)
02-04 19:14:16.249: E/AndroidRuntime(28620): ... 25 more
02-04 19:14:16.249: E/AndroidRuntime(28620): Caused by: java.lang.NoClassDefFoundError: com.edmodo.cropper.R$styleable
02-04 19:14:16.249: E/AndroidRuntime(28620): at com.edmodo.cropper.CropImageView.<init>(CropImageView.java:84)
02-04 19:14:16.249: E/AndroidRuntime(28620): ... 28 more
I have gone through many questions regarding the same issue, but none of the answers could help me solve the problem. It would be great if somebody can help me out with the issue.
i get the same error today (java.lang.NoClassDefFoundError: com.edmodo.cropper.R$styleable) but i build the 'cropper.jar' from source using Android Gradle Plugin. Although we maybe in different troubles, hope my finding can give you a hint:
go to the output folder: {your-module-dir}/build/generated/source/r/release/com/edmodo/cropper/R.java and see whether the missing class is present.
check the build system config and find out why the class is missing (e.g. check other work libs' output folder and find out the differences).
finally i find out i use the wrong applicationId in gradle build file, so the generated R.java is placed in the wrong package (com.edmonod.R.java not com.edmonod.cropper.R.java).
I was getting the same issue and in my case,It was the old cropper library I was using before adding "com.edmodo.cropper" library.What actually happening is when we add this library to gradle,It picks up some files from the Old cropper with same name.Resulting the issue was faced.As soon as i removed the old cropper library,Everything works fine.
At the example the definition at XML file is as follows:
com.edmodo.cropper.CropImageView
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="#+id/CropImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
custom:imageResource="#drawable/butterfly"
I had the same error when I add custom:imageResource="#drawable/butterfly". I solved it when I removed it, but adding on code:
// Initialize components
cropImageView = (CropImageView) findViewById(R.id.CropImageView);
cropImageView.setImageResource(R.drawable.butterfly);

Resources