Re: [flexcoders] VerifyError: Error #1053: Illegal override of FlexModuleFactory in mx.core.FlexModuleFactory at global$init()

2009-10-07 Thread Dima Gutzeit
Is this a new restriction that was introduced in 3.4.0.9271 ? I never had this 
problem when changing the SDK version before. 
Its kind of hard to make sure all the 3rd party SWC are updated to the specific 
SDK version ...

Regards,
Dima Gutzeit.


From: Alex Harui 
Sent: Wednesday, October 07, 2009 6:30 PM
To: flexcoders@yahoogroups.com 
Subject: RE: [flexcoders] VerifyError: Error #1053: Illegal override of 
FlexModuleFactory in mx.core.FlexModuleFactory at global$init()


  
Are you using 3rd party SWCs?   All SWCs must be on the same version and must 
match the compiler version.  If you are using RSLs, the RSLs must be the 
correct version.  CSS SWFs and Resource Modules have the same restriction.  The 
console should show that SWFs are being loaded.



Alex Harui

Flex SDK Developer

Adobe Systems Inc.

Blog: http://blogs.adobe.com/aharui



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dima Gutzeit
Sent: Wednesday, October 07, 2009 8:45 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] VerifyError: Error #1053: Illegal override of 
FlexModuleFactory in mx.core.FlexModuleFactory at global$init()



  

The problem is that I do not load any modules  Using datavisualization 
loads a module behind the scenes ?



Thanks in advance.



Regards,

Dima Gutzeit.



From: Alex Harui 

Sent: Wednesday, October 07, 2009 5:39 PM

To: flexcoders@yahoogroups.com 

Subject: RE: [flexcoders] VerifyError: Error #1053: Illegal override of 
FlexModuleFactory in mx.core.FlexModuleFactory at global$init()



  

Both the module and app that loads it must be on the same version of the SDK.

Alex Harui

Flex SDK Developer

Adobe Systems Inc.

Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dima Gutzeit
Sent: Wednesday, October 07, 2009 1:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] VerifyError: Error #1053: Illegal override of 
FlexModuleFactory in mx.core.FlexModuleFactory at global$init()

  

Hi,

I have a flex project that compiles and runs fine on all SDKs up to 3.4.0.6955.

When I try use any SDK version higher than that (3.4.0.9271, 3.4.1.10084) the 
project compiles but fails with the following when I try to run it:

VerifyError: Error #1053: Illegal override of FlexModuleFactory in 
mx.core.FlexModuleFactory

 at global$init()

It very frustrating ...

Does anyone has any clue ?

Thanks in advance.

Regards,

Dima Gutzeit.

P.S. - I am not loading any modules in my project.





Re: [flexcoders] VerifyError: Error #1053: Illegal override of FlexModuleFactory in mx.core.FlexModuleFactory at global$init()

2009-10-07 Thread Dima Gutzeit
The problem is that I do not load any modules  Using datavisualization 
loads a module behind the scenes ?

Thanks in advance.

Regards,
Dima Gutzeit.


From: Alex Harui 
Sent: Wednesday, October 07, 2009 5:39 PM
To: flexcoders@yahoogroups.com 
Subject: RE: [flexcoders] VerifyError: Error #1053: Illegal override of 
FlexModuleFactory in mx.core.FlexModuleFactory at global$init()


  
Both the module and app that loads it must be on the same version of the SDK.



Alex Harui

Flex SDK Developer

Adobe Systems Inc.

Blog: http://blogs.adobe.com/aharui



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dima Gutzeit
Sent: Wednesday, October 07, 2009 1:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] VerifyError: Error #1053: Illegal override of 
FlexModuleFactory in mx.core.FlexModuleFactory at global$init()



  

Hi,



I have a flex project that compiles and runs fine on all SDKs up to 3.4.0.6955.

When I try use any SDK version higher than that (3.4.0.9271, 3.4.1.10084) the 
project compiles but fails with the following when I try to run it:



VerifyError: Error #1053: Illegal override of FlexModuleFactory in 
mx.core.FlexModuleFactory

 at global$init()



It very frustrating ...



Does anyone has any clue ?





Thanks in advance.



Regards,

Dima Gutzeit.



P.S. - I am not loading any modules in my project.





[flexcoders] VerifyError: Error #1053: Illegal override of FlexModuleFactory in mx.core.FlexModuleFactory at global$init()

2009-10-07 Thread Dima Gutzeit
Hi,

I have a flex project that compiles and runs fine on all SDKs up to 3.4.0.6955.
When I try use any SDK version higher than that (3.4.0.9271, 3.4.1.10084) the 
project compiles but fails with the following when I try to run it:

VerifyError: Error #1053: Illegal override of FlexModuleFactory in 
mx.core.FlexModuleFactory
 at global$init()

It very frustrating ...

Does anyone has any clue ?


Thanks in advance.

Regards,
Dima Gutzeit.

P.S. - I am not loading any modules in my project.

[flexcoders] Java - Air communication via BlazeDS

2008-04-29 Thread Dima Gutzeit
Hi to all Flex fans,

I have one question i need to explore.

I have a Java desktop application. What I need is to communicate with it 
from AIR application.

I know about the artemis project - not supported anymore and its rebirth 
in form of merapi which sources/binaries are not yet available and when 
they will it will private alpha (did not know there are versions like 
that :-)  ).

What if I will integrate a simple http server that is available in JDK, 
can I use the BlazeDS (or part of it) as the server side inside my Java 
application and communicate with it from my AIR application ? What I 
need is bidirectional communication between AIR and Java application, 
kind of message broker but without the burden of J2EE server or even 
Tomcat server, but only with the use of simple http server ?

Can anyone help ?

Regards,
Dima Gutzeit.


[flexcoders] Flex Scheduling Framework event creation

2007-03-22 Thread Dima Gutzeit
Can the scheduling framework to be used for creating events by select and drag 
over some date ?

Thanks in advance.

Regards,
Dima Gutzeit.

Re: [flexcoders] Flex Scheduling Framework Recurrent events

2007-03-21 Thread Dima Gutzeit
 From what I've seen, there are only simple scheduling objects that I 
can put into the dataProvider, that contain start date, end date and 
thats it.
No "advanced" objects with recurrency or anything ...

Ofcourse I can break each recurrent rule into separate "simple chunks" 
and display it, few years in advance, but it does not look like an 
elegant solution.

Or I can extend the scheduler framework . Or maybe someone has done 
it already ?

Thanks.

Ralf Bokelberg wrote:
>
> Not that i'm aware of. The framework only diplays, what is in the 
> dataProvider.
> So what you have to do, is to put it into the dataProvider.
> Cheers
> Ralf.
>
> On 3/21/07, * Dima Gutzeit* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Does anyone know what is Flex Scheduling Framework  support for
> recurring events ?
>  
> For example if I have event that should happen every Tuesday 10:00
> - 12:00, every second week, can I schedule it in the framework ?
>  
> Thanks in advance.
>  
> Regards,
> Dima Gutzeit.
>
>
>
>
> -- 
> Ralf Bokelberg <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>
> Flex & Flash Consultant based in Cologne/Germany
> Phone +49 (0) 221 530 15 35
>  


[flexcoders] Flex Scheduling Framework Recurrent events

2007-03-21 Thread Dima Gutzeit
Does anyone know what is Flex Scheduling Framework  support for recurring 
events ?

For example if I have event that should happen every Tuesday 10:00 - 12:00, 
every second week, can I schedule it in the framework ?

Thanks in advance.

Regards,
Dima Gutzeit.

Re: [flexcoders] Flex WebServices and JAX-WS 2.0 WSDL.BadElement Error

2007-03-13 Thread Dima Gutzeit
Hi,

I am working with JAX-WS 2.1 and the issue that Flex can not "congest" is 
curcular "xsd:import" where a imports b and b includes a. It gets into loop and 
dies :-) Maybe that is your problem.

If that is the case you can optimize your namespaces not to include too much 
separate files.

HIH.

Regards,
Dima Gutzeit.

BTW - The problem is supposed to be fixed in Flex SDK 2.5 Beta 2, which is not 
yet released.

  - Original Message - 
  From: klotzw 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, March 12, 2007 8:16 PM
  Subject: [flexcoders] Flex WebServices and JAX-WS 2.0 WSDL.BadElement Error


  Hello All,

  The company I work for decided it wished to create applications using
  EJB 3.0 using Glassfish as the application server. They originally
  wished me to use AJAX to create the UI, but I convinced them to allow
  me to use Flex and Actionscript instead. I'm currently running into a
  problem when accessing my JAX-WS webservice. I receive a
  WSDL.BadElement Error when I tried to use the web service the first
  time. The odd thing is the error is only happening when I use the
  Cairngorm 2.1 and 2.2 Beta frameworks. If I use the MXML Webservices
  I do not see the issue. I may still exist, but I do not recieve the
  pop-up box within the web browser. 

  The error seems to have to do with my WSDL file containing xsd:import,
  but I have no control of this since JAX-WS 2.0 will only generate WSDL
  files with xsd:import within the WSDL file.

  Has anyone else used JAX-WS 2.0 experienced this issue or know how to
  resolve the issue.

  Thank you,
  William

  Here's the error when I run my application. If I choose to continue I
  am able to login and call web service API's without the error until
  re-run the application.

  [WSDLError faultString="Element http://dpgdomain.com:logon not
  resolvable" faultCode="WSDL.BadElement" faultDetail="null"]
  at
  
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::parseMessage()
  at mx.rpc.soap::WSDLOperation/parseMessages()
  at
  
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
  at
  
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokeAllPending()
  at mx.rpc.soap::WebService/::unEnqueueCalls()
  at
  
mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()
  at
  
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.rpc.soap::WSDLParser/dispatchEvent()
  at mx.rpc.soap::WSDLParser/::parseCompleted()
  at
  
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()
  at
  
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
  
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
  at
  
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
  at mx.rpc::Responder/result()
  at mx.rpc::AsyncRequest/acknowledge()
  at ::DirectHTTPMessageResponder/completeHandler()
  at
  
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at flash.net::URLLoader/flash.net:URLLoader::onComplete()

  Here's my Services.mxml file declaring the WebService API's.

  
  http://www.adobe.com/2006/mxml"; 
  xmlns:cairngorm="http://www.adobe.com/2006/cairngorm";>

  http://localhost:8080/UserManagementWebService/UserManagement?wsdl";
  useProxy="false"
  showBusyCursor="true"
  result="event.token.resultHandler( event );"
  fault="event.token.faultHandler( event );">

  

  

  
   
  

  If I create a test Application without Cairngorm the application works
  without receiving the WSDL.BadElement Error.

  
  http://www.adobe.com/2006/mxml";>

  http://localhost:8080/UserManagementWebServiceBeanService/UserManagementWebServiceBean?wsdl";
  useProxy="false"
  showBusyCursor="true"
  fault="Alert.show(event.fault.faultString), 'Error'"
  result="logonResult(event)" >
  
  

  



   

Re: [flexcoders] FDS/Hibernate - LazyInitializationException when writing AMF output

2007-02-16 Thread Dima Gutzeit
Hi,

You have to initialize the collections before AMF serializes them. The 
problem occurs since you closing Hibernate session without first 
initializing the arrays, and since you are using lazy initialization the 
problem arise.

You have two options :

1. Use lazy=false
2. Better one, is calling /Hibernate.initialize(your_array_reference);/ 
before you close the Hibernate session.

Regards,
Dima Gutzeit.

parkerwhirlow wrote:
>
> Hi again =)
>
> I've just started getting this exception inconsistently... sometimes
> it happens 3 times in a row, other times I can go all afternoon
> without getting it. Once the exception occurs, it will occur every
> time the client loads until FDS is restarted.
>
> Note this occurs on multiple collections. I tried setting the
> "offending" collection to lazy=false (in Hibernate), and the exception
> occurred on a different collection. I can't set every one of my
> collections to lazy=false. Especially since at this point, they HAVE
> to be lazy for the updateItem via hierarchical values to almost work.
>
> I also noticed that the collection does not necessarily need to have
> any items in it. (And possibly is caused specifically by NOT having
> any items in it, I can't tell for sure). The collection referenced in
> the exception below has no values, and there's another collection in
> that same class with values that doesn't seem to cause the exception.
>
> See below the hibernate mapping, and exception output when this
> occurs. (Note there are no FDS managed associations for this collection)
>
> Thanks for any insight you have as to what is causing this.
>
> PW
> _
>
> 
> 
> 
> 
>  inverse="false"
> cascade="all-delete-orphan" >
> 
> 
> 
> 
> 
> ...
> 
>
> 10:19:42,093 WARN ProxyWarnLog - Narrowing proxy to class
> config.test.Adult - this operation breaks ==
> 10:19:44,687 ERROR LazyInitializationException - failed to lazily
> initialize a collection of role: config.test.Adult.children, no
> session or session was closed
> org.hibernate.LazyInitializationException: failed to lazily initialize
> a collection of role: config.test.Adult.children, no session or
> session was closed
> at
> org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
> at
> org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.j
> ava:350)
> at
> org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97)
> at
> org.hibernate.collection.PersistentSet.size(PersistentSet.java:139)
> at java.util.ArrayList.(ArrayList.java:133)
> at
> flex.messaging.io.ArrayCollection.(ArrayCollection.java:44)
> at
> flex.messaging.io.amf.Amf3Output.writeArrayCollection(Amf3Output.java:407)
> at
> flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:147)
> at
> flex.messaging.io.amf.Amf3Output.writeObjectProperty(Amf3Output.java:215)
> at
> flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:495)
> at
> flex.messaging.io.amf.Amf3Output.writeCustomObject(Amf3Output.java:467)
> at
> flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:165)
> at
> flex.messaging.io.amf.Amf3Output.writeObjectArray(Amf3Output.java:730)
> at
> flex.messaging.io.amf.Amf3Output.writeAMFArray(Amf3Output.java:386)
> at
> flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:151)
> at
> flex.messaging.io.ArrayCollection.writeExternal(ArrayCollection.java:97)
> at
> flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:485)
> at
> flex.messaging.io.amf.Amf3Output.writeArrayCollection(Amf3Output.java:414)
> at
> flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:147)
> at
> flex.messaging.io.amf.Amf3Output.writeObjectProperty(Amf3Output.java:215)
> at
> flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:495)
> at
> flex.messaging.io.amf.Amf3Output.writeCustomObject(Amf3Output.java:467)
> at
> flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:165)
> at
> flex.messaging.io.amf.Amf3Output.writeObjectArray(Amf3Output.java:730)
> at
> flex.messaging.io.amf.Amf3Output.writeAMFArray(Amf3Output.java:386)
> at
> flex.messaging.io.amf.Amf3Output.writeObject(Amf3Output.java:151)
> at
> flex.messaging.io.ArrayCollection.writeExternal(ArrayCollection.java:97)
> at
> flex.messaging.io.amf.Amf3Output.writePropertyProxy(Amf3Output.java:485)
> at
> flex.messaging.io.amf.Amf3Output.writeArrayCollection(Amf3Output.java:414)
> at
> flex.messaging.io.amf.Amf3Output.writeObject(Am

Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-01-29 Thread Dima Gutzeit
In case of webservices, you can see some generic fault, but not the cause that 
is being sent with the web fault.


  - Original Message - 
  From: Charles Havranek 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, January 29, 2007 4:07 PM
  Subject: [flexcoders] Re:Do I *REALLY* need Flex Data Services for 
WebServices?


  Greg,  

  Without Flex Data Services, I do get the basic error code & message , but 
have to look at server logs to see stack traces.



   

[flexcoders] mx:Label rendering

2007-01-29 Thread Dima Gutzeit
Hi,

I have the following wied behavior :

I have a canvas with several items on it, including several labels. The canvas 
behavior is just like a window, it can be minimized and then restored.
The problems is that after minizing the canvas (Zoom with Move effects), 
removing the child, then readding the child and restoring the window (once 
again Zoom and Move), I can see only part of the writing on the labels, like 
"Xyz...".

If the label is on the button, then the label "fixes" itself on mouse over, but 
this does not occur on plain label.

Can anyone shed some light on this behavior ?

Regards,
Dima Gutzeit.

P.S. - I've tried calling "validateNow()" at the end of effects, it did not 
help.

Re: [flexcoders] Webservices request serialization issues.

2007-01-13 Thread Dima Gutzeit
I am using JAXWS webservices framework. I am positive that the java side 
is ok, since I can see the produced schema and WSDL and I see the 
contents of the requests Flex is dispatching.

Do you know by any chance how Flex SOAP impl. handles inheritance ? 
(extended types in schema). I do not see it supports the xsi:type 
approach, and I do not see that it uses any other way, so basically by 
looking on the SOAP requests produced by Flex you can not tell what the 
implementation of a class is being sent, if the reference is to a base 
class.

Furthermore I think that Flex has a bug, and it sends the contents of a 
derived object ONLY if the base class has not properties at all.

Regards,
Dima Gutzeit.

[EMAIL PROTECTED] wrote:
> What java webservice technology are you using?  We've had issues with 
> weblogic webservices not serializing or deserializing base class proprerties 
> on the java side, we've also had some fun with apache's axis, have you 
> confirmed the java side is well tested before trying to consume those 
> services from flex ?
>
> Grant
>
> - Original Message -
> From: Dima Gutzeit [EMAIL PROTECTED]
> To: flexcoders@yahoogroups.com
> Sent: 1/12/07 10:01 PM
> Subject: [flexcoders] Webservices request serialization issues.
>
>   
>> Hi,
>>
>> I am using Flex 2.0.1 based application to communicate with web services 
>> written in Java (JAXWS). 
>> System should send requests using complex objects with nested structure and 
>> it does it ok.
>>
>> The problem appears when I have inheritance in the object graph.
>>
>> I have base class X , two derived classes, Y and Z, and two more YA and ZA.
>> x -> y -> ya
>>
>> x -> z -> za
>>
>> X contains common fields such as ID and NAME.
>>
>> Object that I send contains reference to the base class X, but the instance 
>> of the objects is YA or ZA.
>>
>> When the request is being sent, I can see only the common properties taken 
>> from X, and none of the impl specific fields, although wsdl/schema defines 
>> those.
>>
>> When I change the reference type to Y or Z I get the same behavior, so the 
>> only way is to define reference to YA and ZA directly, which is not a nice 
>> way to go.
>>
>> Now the funny part that the situation is being solved if I move the common 
>> fields from x to y and z (duplicate the fields), and leave the X class empty 
>> !!!
>> But this approach stops working if I use array of objects, and not only one.
>>
>> Can anyone shed some light of the serialization logic in case of inheritance?
>>
>> One more thing, what is the way Flex deals with inheritance when reference 
>> is not the final impl, but to the base class ??? Other WS entities would use 
>> techniques such as "xsi:type" definitions in the dispatched XML ...
>>
>> For now I am solving it by adding field to each derived class, with the 
>> actual class name, catch it on the server side, and add xsi:type manually, 
>> but this way is not the one I would like to stick with 
>>
>> Thanks in advance.
>>
>> Regards,
>> Dima Gutzeit.
>> 
>
>
>   


[flexcoders] IExternalizable and WebServices

2007-01-13 Thread Dima Gutzeit
Hi,

I am using Flex application to communicate with remote web services.
If I will implement IExternalizable in my AS objects, will it affect the 
serialization to XML (SOAP) or is it only used when coupled with 
dataservices ?

If not, is there anything with the same functionality for webservices use ?

Thanks in advance.
Regards,
Dima Gutzeit.


[flexcoders] Webservices request serialization issues.

2007-01-12 Thread Dima Gutzeit
Hi,

I am using Flex 2.0.1 based application to communicate with web services 
written in Java (JAXWS). 
System should send requests using complex objects with nested structure and it 
does it ok.

The problem appears when I have inheritance in the object graph.

I have base class X , two derived classes, Y and Z, and two more YA and ZA.
x -> y -> ya

x -> z -> za

X contains common fields such as ID and NAME.

Object that I send contains reference to the base class X, but the instance of 
the objects is YA or ZA.

When the request is being sent, I can see only the common properties taken from 
X, and none of the impl specific fields, although wsdl/schema defines those.

When I change the reference type to Y or Z I get the same behavior, so the only 
way is to define reference to YA and ZA directly, which is not a nice way to go.

Now the funny part that the situation is being solved if I move the common 
fields from x to y and z (duplicate the fields), and leave the X class empty !!!
But this approach stops working if I use array of objects, and not only one.

Can anyone shed some light of the serialization logic in case of inheritance?

One more thing, what is the way Flex deals with inheritance when reference is 
not the final impl, but to the base class ??? Other WS entities would use 
techniques such as "xsi:type" definitions in the dispatched XML ...

For now I am solving it by adding field to each derived class, with the actual 
class name, catch it on the server side, and add xsi:type manually, but this 
way is not the one I would like to stick with 

Thanks in advance.

Regards,
Dima Gutzeit.