Hi Alex,
I tried using    xmlns:js="library://ns.apache.org/flexjs/express" instead of 
basic, the compiler still hit an exception after a few minutes.
This is done from VS Code + Maven.
I also downloaded reusable_fx source codes (ISearchable), it seems to be built 
on an earlier version of Flash Builder, I tried to build it and got 334 errors 
like "the definition of base class was not found".  So I am not sure I know how 
to build SWC file given so many errors.  If I include the source codes in my 
project folder.
Or, is there a replacement for ISearchable in FlexJS that I can use?
Regards,
Allen

The compiler output was as follows:

MXMLJSC
+flexlib=C:\ApacheFlexJS\frameworks
+configname=flex
--debug=true
--source-map=true
--js-output-type=flexjs
--output=./bin
--targets=JSFlex
src/views/SearchBox.mxml
src/FlexBasic.mxml
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC 
overhead limit exceeded
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at 
org.apache.flex.compiler.internal.units.requests.RequestMaker$Request.get(RequestMaker.java:80)
at 
org.apache.flex.compiler.internal.scopes.ASProjectScope$DefinitionPromise.getActualDefinition(ASProjectScope.java:2056)
at 
org.apache.flex.compiler.internal.scopes.ASProjectScope.replacePromisesWithDefinitions(ASProjectScope.java:344)
at 
org.apache.flex.compiler.internal.scopes.ASProjectScope.getLocalDefinitionSetByName(ASProjectScope.java:414)
at 
org.apache.flex.compiler.internal.scopes.ASScopeBase.getLocalProperty(ASScopeBase.java:265)
at 
org.apache.flex.compiler.internal.scopes.ASScopeBase.getLocalProperty(ASScopeBase.java:242)
at 
org.apache.flex.compiler.internal.scopes.ASScopeBase.getLocalProperty(ASScopeBase.java:217)
at 
org.apache.flex.compiler.internal.scopes.ASProjectScope.findDefinitionByName(ASProjectScope.java:693)
at 
org.apache.flex.compiler.internal.projects.CompilerProject.resolveQNameToDefinition(CompilerProject.java:803)
at 
org.apache.flex.compiler.internal.projects.FlexProject.resolveXMLNameToDefinition(FlexProject.java:1253)
at 
org.apache.flex.compiler.internal.scopes.MXMLFileScope.resolveXMLNameToDefinition(MXMLFileScope.java:450)
at 
org.apache.flex.compiler.internal.scopes.MXMLFileScope.resolveTagToDefinition(MXMLFileScope.java:419)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLClassReferenceNodeBase.processChildTag(MXMLClassReferenceNodeBase.java:467)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.processContentUnit(MXMLNodeBase.java:522)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.initializeFromTag(MXMLNodeBase.java:280)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLPropertySpecifierNode.processChildTag(MXMLPropertySpecifierNode.java:473)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.processContentUnit(MXMLNodeBase.java:522)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.initializeFromTag(MXMLNodeBase.java:280)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLPropertySpecifierNode.initializeFromTag(MXMLPropertySpecifierNode.java:305)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLClassReferenceNodeBase.processChildTag(MXMLClassReferenceNodeBase.java:432)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLClassDefinitionNode.processChildTag(MXMLClassDefinitionNode.java:292)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLDocumentNode.processChildTag(MXMLDocumentNode.java:101)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.processContentUnit(MXMLNodeBase.java:522)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLNodeBase.initializeFromTag(MXMLNodeBase.java:280)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLFileNode.processRootTag(MXMLFileNode.java:271)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLFileNode.processUnits(MXMLFileNode.java:190)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLFileNode.initialize(MXMLFileNode.java:155)
at 
org.apache.flex.compiler.internal.tree.mxml.MXMLTreeBuilder.build(MXMLTreeBuilder.java:314)
at 
org.apache.flex.compiler.internal.units.MXMLCompilationUnit.handleSyntaxTreeRequest(MXMLCompilationUnit.java:104)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase.processSyntaxTreeRequest(CompilationUnitBase.java:839)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase.access$100(CompilationUnitBase.java:109)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase$2$1.call(CompilationUnitBase.java:263)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase$2$1.call(CompilationUnitBase.java:259)
at 
org.apache.flex.compiler.internal.units.requests.RequestMaker$1.call(RequestMaker.java:228)
at 
org.apache.flex.compiler.internal.units.requests.RequestMaker$1.call(RequestMaker.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
at 
org.apache.flex.compiler.internal.parsing.mxml.RawMXMLTokenizer.buildToken(RawMXMLTokenizer.java:399)
at 
org.apache.flex.compiler.internal.parsing.mxml.BaseRawMXMLTokenizer.buildToken(BaseRawMXMLTokenizer.java:133)
at 
org.apache.flex.compiler.internal.parsing.mxml.BaseRawMXMLTokenizer.buildToken(BaseRawMXMLTokenizer.java:146)
at 
org.apache.flex.compiler.internal.parsing.mxml.RawMXMLTokenizer.nextToken(RawMXMLTokenizer.java:786)
at 
org.apache.flex.compiler.internal.parsing.mxml.MXMLTokenizer.nextTokenInternal(MXMLTokenizer.java:209)
at 
org.apache.flex.compiler.internal.parsing.mxml.MXMLTokenizer.nextToken(MXMLTokenizer.java:240)
at 
org.apache.flex.compiler.internal.parsing.mxml.MXMLTokenizer.parseTokens(MXMLTokenizer.java:269)
at 
org.apache.flex.compiler.internal.caches.MXMLDataCache.createEntryValue(MXMLDataCache.java:85)
at 
org.apache.flex.compiler.internal.caches.MXMLDataCache.createEntryValue(MXMLDataCache.java:38)
at 
org.apache.flex.compiler.internal.caches.ConcurrentCacheStoreBase.get(ConcurrentCacheStoreBase.java:69)
at 
org.apache.flex.compiler.internal.mxml.MXMLDataManager.get(MXMLDataManager.java:52)
at 
org.apache.flex.compiler.internal.mxml.MXMLDataManager.get(MXMLDataManager.java:36)
at 
org.apache.flex.compiler.internal.units.MXMLCompilationUnit.getMXMLData(MXMLCompilationUnit.java:281)
at 
org.apache.flex.compiler.internal.units.MXMLCompilationUnit.handleFileScopeRequest(MXMLCompilationUnit.java:168)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase.processFileScopeRequest(CompilationUnitBase.java:864)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase.access$200(CompilationUnitBase.java:109)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase$3$1.call(CompilationUnitBase.java:288)
at 
org.apache.flex.compiler.internal.units.CompilationUnitBase$3$1.call(CompilationUnitBase.java:284)
... 6 more
Unexpected exception 'java.lang.NullPointerException'.


408.789603726 seconds


-----Original Message-----
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Saturday, July 08, 2017 1:19 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

Hi Allen,

You might want to try the Express components by changing:

    xmlns:js="library://ns.apache.org/flexjs/basic"

To:

    xmlns:js="library://ns.apache.org/flexjs/express"

Then the components should have more APIs built-in.

If you hit a null pointer exception, please post the stack trace so we can try 
to see what the cause was.

You may need to grab the source for ISearchable and include it in your project 
so it gets cross-compiled, or build a FlexJS SWC from the ISearchable source.

Good luck,
-Alex



________________________________

Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.

Reply via email to