Skip navigation
Currently Being Moderated

Repeated NullPointerException in FB 4.7

Aug 26, 2013 7:21 AM

Hi,

 

I've been having multiple problems with FB 4.7 - in one project, over the span of two weeks, I've had to deal with

 

1) Bitmaps that do not have an alpba channell being silently skipped from the library.swc (fixed by forcing custom quality)

 

2) Flash builder not presenting a password prompt during AIR publishing and then complaining about the non-password being incorrect (fixed by packaging using command line, later by resizing the window unttil it refreshes and shows the dialog)

 

3) Flash builder constantly failing to compile, seemingly at random, throwing java NullPointerExceptions

 

DescriptionResourcePathLocationType

com.google.common.collect.ComputationException: java.lang.NullPointerException


at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment .compute(ComputingConcurrentHashMap.java:167)

at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment .compute(ComputingConcurrentHashMap.java:116)

at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingC oncurrentHashMap.java:67)

at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.j ava:623)

at com.adobe.flash.compiler.internal.projects.CompilerProject.getCacheFo rScope(CompilerProject.java:711)

at com.adobe.flash.compiler.internal.scopes.ASScope.findPropertyQualifie d(ASScope.java:1476)

at com.adobe.flash.compiler.internal.definitions.references.ResolvedQual ifiersReference.resolve(ResolvedQualifiersReference.java:80)

at com.adobe.flash.compiler.internal.definitions.DefinitionBase.resolveT ype(DefinitionBase.java:1049)

at com.adobe.flash.compiler.internal.definitions.DefinitionBase.resolveT ype(DefinitionBase.java:1089)

at com.adobe.flash.compiler.internal.definitions.ClassDefinition.resolve BaseClass(ClassDefinition.java:373)

at com.adobe.flash.compiler.internal.definitions.TypeDefinitionBase$Type Iterator.pushChildren(TypeDefinitionBase.java:284)

at com.adobe.flash.compiler.internal.definitions.TypeDefinitionBase$Type Iterator.next(TypeDefinitionBase.java:218)

at com.adobe.flash.compiler.internal.definitions.TypeDefinitionBase$Type Iterator.next(TypeDefinitionBase.java:176)

at com.adobe.flash.compiler.internal.scopes.TypeScope.getPropertyForScop eChain(TypeScope.java:261)

at com.adobe.flash.compiler.internal.scopes.ScopeView.getPropertyForScop eChain(ScopeView.java:71)

at com.adobe.flash.compiler.internal.scopes.ASScope.findProperty(ASScope .java:1038)

at com.adobe.flash.compiler.internal.scopes.ASScope.findProperty(ASScope .java:981)

at com.adobe.flash.compiler.internal.scopes.ASScope.findProperty(ASScope .java:1161)

at com.adobe.flash.compiler.internal.scopes.ASScope.findProperty(ASScope .java:919)

at com.adobe.flash.compiler.internal.scopes.ASScopeCache.findPropertyQua lified(ASScopeCache.java:267)

at com.adobe.flash.compiler.internal.scopes.ASScope.findPropertyQualifie d(ASScope.java:1478)

at com.adobe.flash.compiler.internal.definitions.references.ResolvedQual ifiersReference.resolve(ResolvedQualifiersReference.java:80)

at com.adobe.flash.compiler.internal.definitions.DefinitionBase.resolveT ype(DefinitionBase.java:1049)

at com.adobe.flash.compiler.internal.definitions.DefinitionBase.resolveT ype(DefinitionBase.java:1089)

at com.adobe.flash.compiler.internal.definitions.DefinitionBase.resolveT ype(DefinitionBase.java:871)

at com.adobe.flash.compiler.internal.definitions.DefinitionBase.resolveT ype(DefinitionBase.java:90)

at com.adobe.flash.compiler.internal.tree.as.IdentifierNode.resolveType( IdentifierNode.java:406)

at com.adobe.flash.compiler.internal.tree.as.MemberAccessExpressionNode. resolveType(MemberAccessExpressionNode.java:137)

at com.adobe.flash.compiler.internal.semantics.MethodBodySemanticChecker .checkImplicitConversion(MethodBodySemanticChecker.java:372)

at com.adobe.flash.compiler.internal.semantics.MethodBodySemanticChecker .checkBinaryOperator(MethodBodySemanticChecker.java:324)

at com.adobe.flash.compiler.internal.semantics.MethodBodySemanticChecker .checkBinaryOperator(MethodBodySemanticChecker.java:300)

at com.adobe.flash.compiler.internal.as.codegen.ABCGeneratingReducer.che ckBinaryOp(ABCGeneratingReducer.java:838)

at com.adobe.flash.compiler.internal.as.codegen.ABCGeneratingReducer.bin aryOp(ABCGeneratingReducer.java:799)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.action_448(Cm cEmitter.java:6377)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.dispatchActio n(CmcEmitter.java:9211)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39704)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduce(CmcEmi tter.java:39681)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceSubgoal s(CmcEmitter.java:39723)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39703)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduce(CmcEmi tter.java:39681)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceSubgoal s(CmcEmitter.java:39723)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39703)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.dispatchActio n(CmcEmitter.java:9519)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39704)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduce(CmcEmi tter.java:39681)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceSubgoal s(CmcEmitter.java:39732)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39703)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduce(CmcEmi tter.java:39681)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceSubgoal s(CmcEmitter.java:39723)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39703)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduce(CmcEmi tter.java:39681)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceSubgoal s(CmcEmitter.java:39732)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39703)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduce(CmcEmi tter.java:39681)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceSubgoal s(CmcEmitter.java:39723)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39703)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduce(CmcEmi tter.java:39681)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceSubgoal s(CmcEmitter.java:39732)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39703)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduce(CmcEmi tter.java:39681)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceSubgoal s(CmcEmitter.java:39723)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduceAnteced ent(CmcEmitter.java:39703)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.reduce(CmcEmi tter.java:39681)

at com.adobe.flash.compiler.internal.as.codegen.CmcEmitter.burm(CmcEmitt er.java:39983)

at com.adobe.flash.compiler.internal.as.codegen.ABCGenerator.generateIns tructions(ABCGenerator.java:232)

at com.adobe.flash.compiler.internal.as.codegen.ABCGenerator.generateMet hodBodyForFunction(ABCGenerator.java:397)

at com.adobe.flash.compiler.internal.as.codegen.ABCGenerator.generateMet hodBodyForFunction(ABCGenerator.java:351)

at com.adobe.flash.compiler.internal.as.codegen.ABCGenerator.generateFun ction(ABCGenerator.java:266)

at com.adobe.flash.compiler.internal.as.codegen.ClassDirectiveProcessor. declareFunction(ClassDirectiveProcessor.java:646)

at com.adobe.flash.compiler.internal.as.codegen.DirectiveProcessor.proce ssNode(DirectiveProcessor.java:215)

at com.adobe.flash.compiler.internal.as.codegen.DirectiveProcessor.trave rse(DirectiveProcessor.java:189)

at com.adobe.flash.compiler.internal.as.codegen.GlobalDirectiveProcessor .declareClass(GlobalDirectiveProcessor.java:423)

at com.adobe.flash.compiler.internal.as.codegen.DirectiveProcessor.proce ssNode(DirectiveProcessor.java:207)

at com.adobe.flash.compiler.internal.as.codegen.DirectiveProcessor.trave rse(DirectiveProcessor.java:189)

at com.adobe.flash.compiler.internal.as.codegen.GlobalDirectiveProcessor .declarePackage(GlobalDirectiveProcessor.java:449)

at com.adobe.flash.compiler.internal.as.codegen.DirectiveProcessor.proce ssNode(DirectiveProcessor.java:224)

at com.adobe.flash.compiler.internal.as.codegen.DirectiveProcessor.trave rse(DirectiveProcessor.java:189)

at com.adobe.flash.compiler.internal.as.codegen.ABCGenerator.generate(AB CGenerator.java:126)

at com.adobe.flash.compiler.internal.units.ASCompilationUnit.handleABCBy tesRequest(ASCompilationUnit.java:374)

at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processAB CBytesRequest(CompilationUnitBase.java:870)

at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$30 0(CompilationUnitBase.java:107)

at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call( CompilationUnitBase.java:309)

at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call( CompilationUnitBase.java:305)

at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)

at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NullPointerException


at com.google.common.base.Preconditions.checkNotNull(Preconditions.java: 187)

at com.google.common.collect.CustomConcurrentHashMap.hash(CustomConcurre ntHashMap.java:1432)

at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingC oncurrentHashMap.java:66)

at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.j ava:623)

at com.adobe.flash.compiler.internal.scopes.ASProjectScope.addScopeToCom pilationUnitScopeList(ASProjectScope.java:1306)

at com.adobe.flash.compiler.internal.projects.CompilerProject$ScopeMaker Function.apply(CompilerProject.java:106)

at com.adobe.flash.compiler.internal.projects.CompilerProject$ScopeMaker Function.apply(CompilerProject.java:95)

at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment .compute(ComputingConcurrentHashMap.java:155)

... 89 moreRadialNavMenuMediator.as/ESEUM/src/ie/madrobot/eseum/view/mediatorline 22Flex Problem

 

 

Curiously enough, the error seems to be mostly random - whenever it happens, I switch to FDT, do some work there - maybe add a couple classes, do some refactoring, and chances are the error will disappear, just like it appeared - out of nowhere, with no rhyme or reason. It may be renaming a class, it may be a day's work - eventually it does go away.

 

Other things that may make the error disappear is commenting out the offending functions.

 

Apparently FB 4.7 simply hates Vectors, as they are usually causing the exception. In particular a vector's length property.

 

Project uses 1 lib and 1 src folder - no externally linked projects, although a different Flash Builder Pure Actionscript project is used with Flash CC to build a component library.

 

Using AIR SDK 3.8. I am able to get a working air 3.8 package (occasionally) so the SDK is probably setup OK.

 

I've run accross all sorts of odd bugs and quirks of Flash so I'm pretty forgiving - but 4.7 is a trainwreck.

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points