Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Building SmartGWT Mobile app with Maven

$
0
0
I'm trying to build my SmartGWT Mobile web application using Maven but I'm getting errors. I've done this previously using SmartGWT and didn't have any issues. This web application builds properly from within Eclipse using the GWT plugin.

I'm using GWT 2.5.1 and SmartGWT Mobile 1.0d2014-03-26.

Here is the error from Maven:

Code:

[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Not compiling test sources
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
[INFO] [gwt:compile {execution: default}]
[INFO] Compiling module com.isigp.capture.CaptureImage
[INFO]    Computing all possible rebind results for 'com.smartgwt.mobile.client.widgets.icons.IconResources'
[INFO]      Rebinding com.smartgwt.mobile.client.widgets.icons.IconResources
[INFO]          Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[INFO]            [ERROR] Generator 'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' threw an exception while rebinding 'com.smartgwt.mobile.client.widgets.icons.IconResources'
[INFO] java.lang.NullPointerException
[INFO]        at com.google.gwt.resources.rg.ImageResourceGenerator$BundledImage.addImage(ImageResourceGenerator.java:99)
[INFO]        at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java:543)
[INFO]        at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1013)
[INFO]        at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1039)
[INFO]        at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generateIncrementally(AbstractClientBundleGenerator.java:419)
[INFO]        at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:651)
[INFO]        at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[INFO]        at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
[INFO]        at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
[INFO]        at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
[INFO]        at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[INFO]        at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)
[INFO]        at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)
[INFO]        at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)
[INFO]        at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[INFO]        at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
[INFO]        at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[INFO]        at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
[INFO]        at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
[INFO]        at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]        at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)
[INFO]        at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)
[INFO]        at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[INFO]        at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:434)
[INFO]        at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:403)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]        at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[INFO]        at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:900)
[INFO]        at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:625)
[INFO]        at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)
[INFO]        at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
[INFO]        at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
[INFO]        at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[INFO]        at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
[INFO]        at com.google.gwt.dev.Compiler.run(Compiler.java:232)
[INFO]        at com.google.gwt.dev.Compiler.run(Compiler.java:198)
[INFO]        at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
[INFO]        at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[INFO]        at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
[INFO]        at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[INFO]    [ERROR] Errors in 'com/smartgwt/mobile/client/widgets/icons/IconResources.java'
[INFO]      [ERROR] Line 29: Failed to resolve 'com.smartgwt.mobile.client.widgets.icons.IconResources' via deferred binding
[INFO]    Computing all possible rebind results for 'com.smartgwt.mobile.client.internal.theme.iphone.ThemeResourcesIPhone'
[INFO]      Rebinding com.smartgwt.mobile.client.internal.theme.iphone.ThemeResourcesIPhone
[INFO]          Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[INFO]            [ERROR] Generator 'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' threw an exception while rebinding 'com.smartgwt.mobile.client.internal.theme.iphone.ThemeResourcesIPhone'
[INFO] java.lang.NullPointerException


Viewing all articles
Browse latest Browse all 4756

Trending Articles