Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-10-12 Thread Serkan Taş

Hi Harbs,

Today I after updating the repo, I can say that I can not see the 
exception in my console anymore. Still the layout is awful but no 
exception at all :)


I am going to work on to figure out what is going with layout.

If you and/or Alex like to have a look to the application, I can prepare 
the virtual server for you for the live application but I need a time 
interval  to start the virtual server on google cloud.


Thanks,
Serkan

2.10.2019 10:33 tarihinde Harbs yazdı:

The problem appears to be on line 44.

“non-simple” MXML entires should be an array, but your case is an 
empty array.


I’ve seen this happen when the wrong type is used in the MXML. What 
are you specifying for the itemRenderer? Is it a string instead of a 
reference?


I’ve created an issue that we should catch these errors at 
compile-time, but someone has to work on that… ;-)

https://github.com/apache/royale-compiler/issues/96

HTH,
Harbs

On Sep 23, 2019, at 12:27 PM, Serkan Taş 
> wrote:


I tried removing "excludeFrom" but failed with the same error Harbs.

Here is the debug view of the step which throws exception :



data array content :






23.09.2019 10:33 tarihinde Harbs yazdı:
A likely cause of the problem is the “excludeFrom” piece. Definitely 
try to narrow that down.


I’ve bumped into issues using “includeIn” in the past, and there’s 
likely still bugs related to states. I generally use state.visible 
instead of includeIn.


HTH,
Harbs

On Sep 23, 2019, at 8:45 AM, Serkan Taş 
> wrote:


Thanks Alex, just to be sure, can you see the images attached ?

23.09.2019 08:40 tarihinde Alex Harui yazdı:
You’ll have to catch the exception in the debugger and find out 
what “cls” is supposed to be. That section of code could be run 
quite often when setting up an MXML-based UI.
The MXMLDataInterpreter is interpreting a data array from some .JS 
file representing an MXML file, and initializeStrandBasedObject is 
trying to initialize some component and probably calls 
generateMXMLObject to create some object that initializes some 
property. You’ll have to figure out what was in the data arrays 
and what went wrong. You should find that generateMXMLObject is 
passed a data array that is part of a different array passed to 
initializedStrandBasedObject.  Knowing what class that 
strandBasedObject is may help you figure out what part of what 
MXML is having a problem.

HTH,
-Alex









Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-10-02 Thread Harbs
The problem appears to be on line 44.

“non-simple” MXML entires should be an array, but your case is an empty array.

I’ve seen this happen when the wrong type is used in the MXML. What are you 
specifying for the itemRenderer? Is it a string instead of a reference?

I’ve created an issue that we should catch these errors at compile-time, but 
someone has to work on that… ;-)
https://github.com/apache/royale-compiler/issues/96 


HTH,
Harbs

> On Sep 23, 2019, at 12:27 PM, Serkan Taş  
> wrote:
> 
> I tried removing "excludeFrom" but failed with the same error Harbs.
> 
> Here is the debug view of the step which throws exception :
> 
> 
> 
> data array content :
> 
> 
> 
> 
> 
> 
> 23.09.2019 10:33 tarihinde Harbs yazdı:
>> A likely cause of the problem is the “excludeFrom” piece. Definitely try to 
>> narrow that down.
>> 
>> I’ve bumped into issues using “includeIn” in the past, and there’s likely 
>> still bugs related to states. I generally use state.visible instead of 
>> includeIn.
>> 
>> HTH,
>> Harbs
>> 
>>> On Sep 23, 2019, at 8:45 AM, Serkan Taş >> > wrote:
>>> 
>>> Thanks Alex, just to be sure, can you see the images attached ?
>>> 
>>> 23.09.2019 08:40 tarihinde Alex Harui yazdı:
 You’ll have to catch the exception in the debugger and find out what “cls” 
 is supposed to be.  That section of code could be run quite often when 
 setting up an MXML-based UI.
  
 The MXMLDataInterpreter is interpreting a data array from some .JS file 
 representing an MXML file, and initializeStrandBasedObject is trying to 
 initialize some component and probably calls generateMXMLObject to create 
 some object that initializes some property.  You’ll have to figure out 
 what was in the data arrays and what went wrong.  You should find that 
 generateMXMLObject is passed a data array that is part of a different 
 array passed to initializedStrandBasedObject.  Knowing what class that 
 strandBasedObject is may help you figure out what part of what MXML is 
 having a problem.
  
 HTH,
 -Alex
  
  
> 



Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-10-01 Thread serkan . tas



Ok Alex, I am going to work on finding a server to host my application  
and than let you know.


Thanks,
Serkan

Alıntı Alex Harui :

If you can host a test case on a server, we can try to run it in our  
debuggers and then it doesn’t have to be quite as simple.


-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Monday, September 30, 2019 at 12:27 PM
To: "users@royale.apache.org" 
Subject: Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a  
constructor


Hi Alex,

It is related with TabBar. I am going to work on simplify the case  
for specifically of TabBar.


If we talk about the original problem;

I can use debugger, believe me, for over 20 years I use some kind :)  
Only the language is not js mostly.


Maybe it is better to leave this one for later, because it is very  
complex - advanced grid -  and deeply nested in the layout of my  
project.


Thanks,
Serkan
30.09.2019 19:57 tarihinde Alex Harui yazdı:
Not sure about your latest error.  If the TabBar buttons end up  
being Royale Basic components instead of MXRoyale components you  
will get problems like this, but we’ve also seen that the code was  
already set up like this but some sizing thing didn’t get triggered  
in our tests.


Regarding your original problem, did you try using the debugger as I  
suggested?  Learning how to use the debugger is worth it, IMO.   
Modern cars have fault codes for a reason.  It is far faster and  
cheaper to check a fault code and replace the right part than to  
guess as what part to replace.  Same for a debugger.  It can help  
you find the part to replace with far less guessing.


-Alex

From: Serkan Taş  
<mailto:serkan@likyateknoloji.com>
Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org>  
<mailto:users@royale.apache.org>

Date: Sunday, September 29, 2019 at 6:27 AM
To: "users@royale.apache.org"<mailto:users@royale.apache.org>  
<mailto:users@royale.apache.org>
Subject: Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a  
constructor


As I mentioned in the preceding  mail, I could not solve the error.
I am trying to get deeper by disabling inner components.

Now, I am getting an error

[cid:image001.png@01D577D9.3261B390]

for component

child = mx.controls.listClasses.ListItemRenderer

at the line 2724 of UIComponenet.js that the method is  
"getExplicitOrMeasuredWidth()" undefined.


[cid:image002.png@01D577D9.3261B390]

This may be a misuse or bug ?

Thanks,
Serkan
23.09.2019 12:27 tarihinde Serkan Taş yazdı:
I tried removing "excludeFrom" but failed with the same error Harbs.

Here is the debug view of the step which throws exception :

[cid:image003.png@01D577D9.3261B390]

data array content :
[cid:image004.png@01D577D9.3261B390]

[cid:image005.png@01D577D9.3261B390]
[cid:image006.png@01D577D9.3261B390]

[cid:image007.png@01D577D9.3261B390]
23.09.2019 10:33 tarihinde Harbs yazdı:
A likely cause of the problem is the “excludeFrom” piece. Definitely  
try to narrow that down.


I’ve bumped into issues using “includeIn” in the past, and there’s  
likely still bugs related to states. I generally use state.visible  
instead of includeIn.


HTH,
Harbs

On Sep 23, 2019, at 8:45 AM, Serkan Taş  
mailto:serkan@likyateknoloji.com>>  
wrote:


Thanks Alex, just to be sure, can you see the images attached ?


23.09.2019 08:40 tarihinde Alex Harui yazdı:
You’ll have to catch the exception in the debugger and find out what  
“cls” is supposed to be.  That section of code could be run quite  
often when setting up an MXML-based UI.


The MXMLDataInterpreter is interpreting a data array from some .JS  
file representing an MXML file, and initializeStrandBasedObject is  
trying to initialize some component and probably calls  
generateMXMLObject to create some object that initializes some  
property.  You’ll have to figure out what was in the data arrays and  
what went wrong.  You should find that generateMXMLObject is passed  
a data array that is part of a different array passed to  
initializedStrandBasedObject.  Knowing what class that  
strandBasedObject is may help you figure out what part of what MXML  
is having a problem.


HTH,
-Alex



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are int

Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-09-23 Thread Serkan Taş

I tried removing "excludeFrom" but failed with the same error Harbs.

Here is the debug view of the step which throws exception :



data array content :





23.09.2019 10:33 tarihinde Harbs yazdı:
A likely cause of the problem is the “excludeFrom” piece. Definitely 
try to narrow that down.


I’ve bumped into issues using “includeIn” in the past, and there’s 
likely still bugs related to states. I generally use state.visible 
instead of includeIn.


HTH,
Harbs

On Sep 23, 2019, at 8:45 AM, Serkan Taş 
> wrote:


Thanks Alex, just to be sure, can you see the images attached ?

23.09.2019 08:40 tarihinde Alex Harui yazdı:
You’ll have to catch the exception in the debugger and find out what 
“cls” is supposed to be.  That section of code could be run quite 
often when setting up an MXML-based UI.
The MXMLDataInterpreter is interpreting a data array from some .JS 
file representing an MXML file, and initializeStrandBasedObject is 
trying to initialize some component and probably calls 
generateMXMLObject to create some object that initializes some 
property.  You’ll have to figure out what was in the data arrays and 
what went wrong.  You should find that generateMXMLObject is passed 
a data array that is part of a different array passed to 
initializedStrandBasedObject.  Knowing what class that 
strandBasedObject is may help you figure out what part of what MXML 
is having a problem.

HTH,
-Alex





Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-09-22 Thread Alex Harui
Yes, that’s how I knew what the call stack was.

-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Sunday, September 22, 2019 at 10:46 PM
To: "users@royale.apache.org" 
Subject: Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

Thanks Alex, just to be sure, can you see the images attached ?
23.09.2019 08:40 tarihinde Alex Harui yazdı:
You’ll have to catch the exception in the debugger and find out what “cls” is 
supposed to be.  That section of code could be run quite often when setting up 
an MXML-based UI.

The MXMLDataInterpreter is interpreting a data array from some .JS file 
representing an MXML file, and initializeStrandBasedObject is trying to 
initialize some component and probably calls generateMXMLObject to create some 
object that initializes some property.  You’ll have to figure out what was in 
the data arrays and what went wrong.  You should find that generateMXMLObject 
is passed a data array that is part of a different array passed to 
initializedStrandBasedObject.  Knowing what class that strandBasedObject is may 
help you figure out what part of what MXML is having a problem.

HTH,
-Alex



From: Serkan Taş 
<mailto:serkan@likyateknoloji.com>
Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> 
<mailto:users@royale.apache.org>
Date: Sunday, September 22, 2019 at 10:24 PM
To: "users@royale.apache.org"<mailto:users@royale.apache.org> 
<mailto:users@royale.apache.org>
Subject: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

Hi,

I am getting the error below.


[cid:image001.png@01D57198.2D718640]

Here is the code piece while debugging (cls is undefined and throwing 
exception) :


[cid:image002.png@01D57198.2D718640]

Call stack :

[cid:image003.png@01D57198.2D718640]


When I comment the line(in red) below, not throw exception :


























Thanks,
Serkan






Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-09-22 Thread Serkan Taş

Thanks Alex, just to be sure, can you see the images attached ?

23.09.2019 08:40 tarihinde Alex Harui yazdı:


You’ll have to catch the exception in the debugger and find out what 
“cls” is supposed to be.  That section of code could be run quite 
often when setting up an MXML-based UI.


The MXMLDataInterpreter is interpreting a data array from some .JS 
file representing an MXML file, and initializeStrandBasedObject is 
trying to initialize some component and probably calls 
generateMXMLObject to create some object that initializes some 
property.  You’ll have to figure out what was in the data arrays and 
what went wrong.  You should find that generateMXMLObject is passed a 
data array that is part of a different array passed to 
initializedStrandBasedObject.  Knowing what class that 
strandBasedObject is may help you figure out what part of what MXML is 
having a problem.


HTH,

-Alex

*From: *Serkan Taş 
*Reply-To: *"users@royale.apache.org" 
*Date: *Sunday, September 22, 2019 at 10:24 PM
*To: *"users@royale.apache.org" 
*Subject: *EventDispatcher.js:73 Uncaught TypeError: cls is not a 
constructor


Hi,

I am getting the error below.




Here is the code piece while debugging (cls is undefined and throwing 
exception) :





Call stack :




When I comment the line(in red) below, not throw exception :

excludeFrom="loggedOutState, dummyState">


        
            paddingRight="0" paddingLeft="0" paddingTop="10" paddingBottom="10" />

        

        right="10" top="0" bottom="0" visible="false" includeInLayout="false"/>


        
            
                paddingRight="0" paddingLeft="0" paddingTop="10" paddingBottom="10" />

            
            
            height="55" visible="false" includeInLayout="false">
                color="0xFF2D00" width="100%" />

            
            
            

            
*excludeFrom="anaSayfaState, jobDetailState, loggedOutState, 
dummyState" id="jobListDetail"/>*
            

        

    

Thanks,
Serkan





Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-09-22 Thread Alex Harui
You’ll have to catch the exception in the debugger and find out what “cls” is 
supposed to be.  That section of code could be run quite often when setting up 
an MXML-based UI.

The MXMLDataInterpreter is interpreting a data array from some .JS file 
representing an MXML file, and initializeStrandBasedObject is trying to 
initialize some component and probably calls generateMXMLObject to create some 
object that initializes some property.  You’ll have to figure out what was in 
the data arrays and what went wrong.  You should find that generateMXMLObject 
is passed a data array that is part of a different array passed to 
initializedStrandBasedObject.  Knowing what class that strandBasedObject is may 
help you figure out what part of what MXML is having a problem.

HTH,
-Alex



From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Sunday, September 22, 2019 at 10:24 PM
To: "users@royale.apache.org" 
Subject: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

Hi,

I am getting the error below.


[cid:image001.png@01D57196.B75EE3E0]

Here is the code piece while debugging (cls is undefined and throwing 
exception) :


[cid:image002.png@01D57196.B75EE3E0]

Call stack :

[cid:image003.png@01D57196.B75EE3E0]


When I comment the line(in red) below, not throw exception :


























Thanks,
Serkan



EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-09-22 Thread Serkan Taş

Hi,

I am getting the error below.




Here is the code piece while debugging (cls is undefined and throwing 
exception) :





Call stack :




When I comment the line(in red) below, not throw exception :

excludeFrom="loggedOutState, dummyState">


        
            paddingRight="0" paddingLeft="0" paddingTop="10" paddingBottom="10" />

        

        top="0" bottom="0" visible="false" includeInLayout="false"/>


        
            
                paddingRight="0" paddingLeft="0" paddingTop="10" paddingBottom="10" />

            
            
            height="55" visible="false" includeInLayout="false">
                color="0xFF2D00" width="100%" />

            
            
            

            
**
            

        

    

Thanks,
Serkan