Understanding class "fingerprints" with SWC files

I'm sorry for a very poorly structured question. I just run out of English... I hope one of you guess what's the problem and can provide better words to describe it!
I'm having hard time understanding how classes from SWC files are handled when the app is complied with Flash Builder. We have about 50 SWC files, all compiled from corresponding FLA files. Their libraries contain elements that have AS3 linkages and in the end, there are plenty of classes involved. The classes are packaged in SWC files and Flash Builder finds them just fine. Some AS3 linkages have the same name, which is OK, because they are essentially the same library elements and we don't want to have duplicates in the app. Also plenty of AS3 linkages have same base classes, which means plenty of SWC files carry those base class definitions too, but only one is really needed.
Sometimes everything works, sometimes something breaks. It almost seems like the moon phase affects whether the end result works or not... Sometimes recompiling SWC files helps with one problem, but breaks something else. This leads me to guess, that Flash Builder selects the available classes based on the date of the SWC files? If more than one SWC files have the same class definition, Flash Builder selects the newest?
The error we encounter, is "AS3 Error #1034: Type Coercion failed:", which is related to having one of these shared AS3 linkages (let's say SharedClass) on the timeline of a MovieClip. This means it is *not* created with the new keyword! So if SharedClass is defined in SWC1 and SWC2, maybe Flash Builder decides to use the one from SWC1. This means that elements from SWC2 that use SharedClass will use SWC1's definition of it. But for some reason this doesn't always work as it should. It helped, when I changed how AS3 references the instances declared on the timeline: "var mySharedClassObject:SharedClass" --> "var mySharedClassObject:*" but I don't understand why...
This leads me to believe, that the SharedClass in SWC1 and SWC2 have different "fingerprints" which makes the class casting break in some situations. When I use "new" keyword, everything works, because it doesn't matter which definition will be used. But when the class is created on the timeline, it may require exact fingerprint of that class?
Most of those cases are easily cleaned, but I'm also running into problems with some classes that have only one definition! If the AS3 linkage of SWC1 has the same base class, than AS3 linkage of SWC2, we run into the same problem. This is because both SWC1 and SWC2 contain the definition of the base class and maybe they have different fingerprints, even though our base classes are just AS3 files (no linkages).
Does this make any sense?
Anyone know a way to see the class name collisions and potential problems?

If different SWC are using exactly the same class, there’s no problem. If more than one is using the same named class, and the two or more copies are different, they it’s down to the order they get compiled, and that can vary.
Make sure that everywhere that a class has the same name, it’s identical to the other ones. Remember that MovieClips become classes too, so if you have a shared library item named “title”, and it’s different for each SWC because the graphic instead the MovieClip is different, then you’ll get big problems.
One easy solution is to put the classes into a dedicated folder, like:
src/com/yourname/game1/Title.as
and:
src/com/yourname/game2/Title.as
instead of:
src/com/yourname/games/Title.as
You will end up with a lot of identical things in memory, but they have a different path, and won’t clash with each other.
Another thing to know, if you use GetDefinitionByName(“class1”), the main document class needs to know about those classes. This will solve that problem:
public var namedClasses:Array = [class1,class2,class3];
Then when the compiler is doing its thing, it doesn’t go into shock when an embedded SWC is creating an instance of a class from the shared name.
So, make sure things are truly identical, or make sure they have a different path.

Similar Messages

  • Help with .txt files importing / showing

    I am working cs4. / as 3.0
    I need some help understanding placing text with .txt files.
    I have a txt & css file in my site folder.
    Do I need to add a line to my script to locate the files in
    my site folder?
    Any help would be appreciated. thanks
    Here is what I have so far.
    var fileTxt:String;
    var myTextLoader:URLLoader = new URLLoader();
    var cssLoader:URLLoader = new URLLoader();
    myTextLoader.addEventListener(Event.COMPLETE, onloaded);
    myTextLoader.load(new URLRequest("textInfo.txt"));
    function onLoaded(e:Event):void {
    fileTxt=myTextLoader.data;
    callCss();
    function callCss():void {
    var cssRequest:URLRequest=new URLRequest("stylesSite.css");
    cssLoader.addEventListener(Event.COMPLETE, onCss);
    cssLoader.load(cssRequest);
    function onCss(e:Event):void {
    var css:StyleSheet = new StyleSheet();
    css.parseCSS(cssLoader.data);
    infoText.styleSheet=css;
    infoText.wordWrap=true;
    infoText.htmlText=fileTxt;
    infoScroll.update();

    Thanks for the information. Am I missing something or you forgot to actually post a question?
    What are the problems you have? What have you tried and how did not it work?
    Mike

  • Problem with using swc files in Flash Player 10

    I have two Actionscript projects in Flex. One is using Flash Player 9 the other is using 10.  Both projects use the fl classes specifically FLVPlayback.
    In the Flash Player 10 project I am using the recently released version 2.5.  Both players use individual controls instead of a complete skin swf.  So the code goes something like video_player.playPauseButton = playPauseBtn.  All the swc files are imported through properties-ActionScript Build Path-Library path-add swc.  This all works great in both projects exept in the Flash Player 10 project the volumeBar swc does not load properly.  In the debug variables for a break point at the function below in FLVPlayback.as the variables handleLeftMargin, handleRightMargin, handleLinkageID and handleY are missing even though they are all in the original fla used to compile the swc.  I have tried compiling swc in both Flash CS3 and 4.  I have tried moving the Actionscript inside the fla files but nothing changes. This leads me to believe it is a bug in the Flash Player 10 or the version 10 playerglobal.swc since this part of FLVPlayback.as is identical in versions 2 and 2.5. The result is that only the volume bar renders but no handle. Debugging all through fl.video.UIManager.as handle_mc remains null?
           public function set volumeBar(s:Sprite):void {
                uiMgr.setControl(UIManager.VOLUME_BAR, s);
    In the Actionscript 9 project all the variables are accounted for so the volume bar and handle render and work fine.

    Further info for anyone who can help!
    I am opening a session from a server via the following sql
    statement:-
    http://servername/virtualdirectoryname?sql=SELECT
    * FROM table1 for XML auto&root=root"
    I only get the popup window when trying it out from our
    webserver?
    The server is MS SQLServer
    The virtualdirectory is created with access set as Windows,
    and always log on set as "myusername" + "mypassword"
    So I thought (hoped) I could pass the "myusername" +
    "mypassword"
    bits into the above sql statement (maybe appended at the
    end?)
    If I type the above sql statement into a browser it works
    perfectly with the xml returned in a web page,
    also as I state above, when I run it from within my flash
    prog on my local machine it runs OK and returns the results into
    the text area specified within the flash prog.
    BUT - When I upload my flash prog to the webserver and try it
    from there, I get a windows popup asking me for username + password
    + domainname.
    any ideas please?

  • How do I import SWC files created with Flex info Flash CS4?

    I've created very nice UI component using Flex 3 and I have exported it into a SWC file.
    How can I import it into Flash CS4 to use it there?

    Hmm... if you happen to be familiar with C#, then you may probably know about the problem of P/Invoke (this is a command that lets you access Windows API through C# code, which will apparently prevent it from functioning on other OSs).
    What happens with Flex framework is somewhat similar to this. I.e. it relies to much on the features of Flex compiler and the components of the framework create a lot of cross-dependencies, which makes them barely usable outside the framework.
    So, if you have time and doing this just as a matter of learning, I'd suggest you start an AS project in Flex builder and advance with it compiling it both with Flex and Flash to see if there are any differences (basically, once you see it doesn't compile / doesn't behave as you'd expect in Flash, you'll know you used something that is specific to Flex). These would be mostly meta tags, like [Bindable] for example.
    And, if you need any tutorials on how to code in pure AS, then, well, there are really to many So that you can even choose what's appropriate / goes better with your learning habits.
    If you like video lessons, there're tons of them at gotoandlearn.com, if you prefer reading documentation, here you go: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/class-summary.html
    if you prefer forums / written tuts, then, kirupa.com, actionscript.org, flashkit.com as well as Adobe forums will provide you with a lot of information.

  • How to create java classes when multiple xsd files with same root element

    Hi,
    I got below error
    12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. 'resultClass' is already defined
    12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. (related to above error) the first definition appears here
    12/08/09 16:26:38 BST: Build errors for viafrance; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.1:generate': Mojo execution failed.
    I tried genarate java classes from multiple xsd files, but getting above error, here in .xsd file i have the <xe: element="resultClass"> in all .xsd files.
    So I removed all .xsd files accept one, now genarated java classes correctly. but i want to genarte the java classes with diffrent names with out changing .xsd
    Can you please tell me any one how to resolve this one......
    regards
    prasad.nadendla

    Gregory:
    If you want to upload several Java classes in one script the solution is .sql file, for example:
    set define ?
    create or replace and compile java source named "my.Sleep" as
    package my;
    import java.lang.Thread;
    public class Sleep {
    public static void main(String []args) throws java.lang.InterruptedException {
    if (args != null && args.length>0) {
    int s = Integer.parseInt(args[0]);
    Thread.sleep(s*1000);
    } else
    Thread.sleep(1000);
    create or replace and compile java source named "my.App" as
    package my;
    public class App {
    public static void main(String []args) throws java.lang.InterruptedException {
    System.out.println(args[0]);
    exit
    Then the .sql file can be parsed using the SQLPlus, JDeveloper or SQLDeveloper tools.
    HTH, Marcelo.

  • [svn] 3638: Changing the build order of swc file update with dita xml files .

    Revision: 3638
    Author: [email protected]
    Date: 2008-10-14 16:49:56 -0700 (Tue, 14 Oct 2008)
    Log Message:
    Changing the build order of swc file update with dita xml files.
    By default this would now happen during the checkintests target - so "ant clean main" shouldn't get affected.
    To opt out use -Dno.doc=true
    QA: No
    Doc: No
    Tests: checkintests
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/build.xml
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    flex/sdk/trunk/frameworks/projects/flex/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/build.xml

    Revision: 3638
    Author: [email protected]
    Date: 2008-10-14 16:49:56 -0700 (Tue, 14 Oct 2008)
    Log Message:
    Changing the build order of swc file update with dita xml files.
    By default this would now happen during the checkintests target - so "ant clean main" shouldn't get affected.
    To opt out use -Dno.doc=true
    QA: No
    Doc: No
    Tests: checkintests
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/build.xml
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    flex/sdk/trunk/frameworks/projects/flex/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/build.xml

  • Dynamic Class Instantiation with getDefinitionByName

    Ok so I am trying to follow the following example in
    instantiating a class dynamically:
    http://nondocs.blogspot.com/2007/04/flexhowtoinstantiate-class-from-class.html
    My AS3 code looks like this:
    var myClassName:String = event.templateName;
    //Alert.show(getDefinitionByName(myClassName).toString());
    try {
    var ClassReference:Class = getDefinitionByName(myClassName)
    as Class;
    var myInstanceObject:* = new ClassReference();
    } catch( e:Error ) {
    Alert.show("Could not instantiate the class " + myClassName
    + ". Please ensure that the class name is a valid name and that the
    Actionscript 3 class or MXML file exists within the project
    parameters.");
    return;
    However I get an error: ReferenceError: Error #1065: Variable
    OrderEdit is not defined.
    The problem is that my class is located in an altogether
    different project directory from the the calling main project (I
    include this project with these classes I am trying to dynamically
    instantiate in the project source path).
    Every example I have seen so far involves some sort of hard
    coding. I am builidng a plugin/component that I intend to use in
    various places in my site and have any general hard code is
    UNACCEPTABLE. How can I make this process COMPLETELY HARD CODE
    FREE??
    Thanks a ton!

    I am also facing the same problem, I have imported swc (flash
    created) to flex library path (Flex project >> properties
    >> Flex build path >> Library path >> add swc)
    These swc files are icons for my applications with some
    scripts (written in flash, I am using UIMovieClip). So I want to
    make it dynamic.
    I write a xml with these component name and want to create a
    object and then add that object to my canvas according to xml data.
    if I code like this:
    var myIcon:IconA = new IconA()
    canvas.addChild(myIcon); //canvas is instance of Canvas
    then its working, but if I code like
    var myDynClass:Class = getDefinitionByName("IconA") as Class
    var myIcon:* = new myDynClass()
    canvas.addChild(myIcon); //canvas is instance of Canvas
    Then its showing me same error
    Error
    Error #1065: Variable IconA is not defined.
    So, I have seen your reply but didn't get it, how can I fix
    this problem using modules. or any other way...
    Thanks,

  • How to import swc file in flexBuilder2 ???

    hi i am a flash programmer  trying to make flex faceebook connect app, but flex is not importing swc file. I paste the swc file in
    Flex SDK 2\frameworks\libs but flex is still not flex is not using swc files classes... what I do next???.... or I miss some step to import swc??
    thanks for help buddy

    1)Put swc inside the libs folder.
    2)Right mouse click on your project. 
    3)Go to properties. 
    4)Click on Flex Build path in the Properties window. 
    5)Click on Library Path tab. 
    6)Remove the libs folder if there is any. 
    7)Click on the 'Add SWC' button and browse the path of the swc from location of your project. 
    And click ok. you will get this. 
    with Regards,
    Shardul Singh Bartwal

  • Flash limitations, Invisible Compiler Errors, swc files...

    This question is for expert users of Flash CS4/CS5 and actionscript.   Please do not comment or offer suggestions if you have no experience  with these errors or their causes.
    ===================================================
    Question:
    =======
    Publishing  an extremely complex file can sometimes result in a blank swf being  created, and no compiler errors being shown even though some may exist.   Are there any suggested methods for dealing with this?
    =======
    Details:
    =======
    Those who have written flash files with large actionscript components  will be familiar with needing to set the JAVA_TOOL_OPTIONS evinronment  variable in order to prevent the Flash compiler from crashing due to  memory limits.  The majority of the files in question require this as a  bare minimum in order to be compiled at all.
    The project in question involves several main "launcher" components,  in addition to hundreds of "modules".  The modules themselves are being  developed in a distributed manner by several programmers.  Each module  can be executed as a standalone swf, for testing and production  purposes.  Each module has a companion swc file which holds its assets  and exports them.  All of the modules make use of a shared custom code  library that sits on top of actionscript.
    The launcher program also uses the shared library code, and runs the  modules  (never more than one at a time, and clearing previously loaded ones  before loading a new one) inside of itself.  The launcher contains a  reference file(the class names typed in an include file, referencing all  of the available exported assets from the swcs) that makes all the  necessary assets available to the modules, such that any module can be  run at any time.
    ===========
    The Error:
    ===========
    Seemingly random in occurence, every now and then a file will  "compile blank".  Essentially, the compile time is very short, the swf  pops up as a blank white box, and there is absolutely nothing listed in  the "Compiler Errors" tab, nor in the output tab.  Sometimes closing  flash and relaunching it will bring the Compiler Error messages back,  though usually not.  More often opening the file on another computer in a  different copy of flash and compiling it again will show the errors.   The original computer will still not show anything, but the other  computer can be used to fix the error, and then the file will start  reporting errors again properly.
    However, sometimes, the file will "compile blank" on all computers,  and all copies of flash.  Then the only resort to find the hidden errors  and fix them, is to comment out the entire file, and slowly uncomment  out sections one at a time.  In this manner, the area where the hidden  errors are occuring can be determined, and the error found manually.
    Obviously this is an extremely frustrating situation, but one that can be "worked around".
    However, there are two more serious incarnations of this which cannot be as easily side stepped.
    1.) Sometimes certain computers/copies of flash will "compile blank" a  file that doesnt actually have errors in it.  The same file will  compile and work perfectly on one machine, and not on another.
    2.) The most severe of all...The two more complex components compile fine in cs4, but always "compile blank"  on cs5, no matter what.  The module files all compile much faster on  cs5 and work great.  However, the shared code library and the launcher  program cannot be compiled in cs5, though they compile fine in cs4.   Both compile blank every single time on cs5, with no errors reported.
    --Just as a side note here are the compile times on two different  types of computers, for cs4 and cs5, for the three types of compiled  files:
    =====================
    CS4 Compile time averages:
    =====================
    Dual Core - Pentium 4:
            Module File = 1-4 minutes
            Shared Code Library = 10+ minutes
            Launcher Program = Unusable
    6 Core AMD w 16 GBs of RAM:
             Module File = less than 10 seconds
             Shared Code Library = approx. 1 minute
             Launcher Program = 15-25 minutes
    =====================
    CS5 Compile time averages:
    =====================
    Dual Core - Pentium 4:
            Module File = less than 20 seconds
            Shared Code Library = 2-4 minutes
            Launcher Program = Compiles blank
    6 Core AMD w 16 GBs of RAM:
             Module File = less than 10 seconds
             Shared Code Library = less than 30 seconds
             Launcher Program = Compiles blank
    ========================================
    Summary:
    ========================================
    1.) Large and complex files in cs4 or cs5 can sometimes false compile, showing a blank swf, and no errors.
    2.) Large interlinked projects containing many swcs that can compile on cs4 always compile blank on cs5
    The issues involved "appear" to deal with interlinked swcs and swfs, memory, and compiler messages.
    The best solution i can think of would be some sort of verbose mode  setting, where the cs4/cs5 compilers can be set to trace all the actions  they are taking, either to a log file, or to the screen.  Rather than  simply giving a summary of the results, a real-time display of what is  occuring might lead to the actual bugs/issues.
    Eisley79

    For the future people who come searching this forum and find my thread.
    http://kb2.adobe.com/cps/405/kb405257.html
    Above is a link to adobe's official version of admitting this situation exists(and its true for cs5 as well).
    If you are reading this, and simply have a single large file that won't compile.  Attempt their solutions suggested.  Also, click the link in the comments by the user refering to a blog that helped him.
    That will explain the JAVA_TOOL_OPTIONS memory issue (which you can find many explanations on google as well).
    If however, you are working with a large number of separate swf's that load each other, and share assets and are getting the REAL problem, neither adobe's solutions, nor the JAVA_TOOL_OPTIONS will correct the problem for you.  My best suggestion to you is, have one SWF launch the next one, and break your project into pieces.  Whatever the parent SWF needed to have, can be either copied into all the children SWFs, or into several "brother" SWFs which share the loaded children SWFs, (and can actually be successfully compiled).  Then as you move from brother to brother, they can be made to appear as if they were actually ONE file, loading the children, instead of several launching each other, and sharing the loading duties.
    and as far as adobe is concerned, if i told you what i thought of you, i would get this post deleted...and myself banned.
    Anyone considering doing Enterprise level projects in Flash, DONT.  I wanted to use JAVA, but my company went with flash.  I am stuck working around it constantly, and would have been better off coding foundation classes to mimic whatever functionality we needed from flash into java.
    Maybe when actionscript 4 comes along, it will magically bring with it true object oriented programming, and Adobe will spend the time and money to make a real working compiler.  Somehow i doubt it.

  • WebLogic 9.2 - Replacing  apache_xbean.jar with the file xmlbeans-2.4.0.jar

    Hello All,
    I am a newbie in the forum.
    I have been using WebLogic9.2 for a while, but in my new company there was a unique request to replace the following files in WebLogic 9.2 installation.
    The development team wants to replace the:
    Original Jar:  bea\weblogic92\common\lib\apache_xbean.jar [This file comes along with the WebLogic 9.2 installation]
    with this file.
    Replaced Jar: bea\weblogic92\common\lib\xmlbeans-2.4.0.jar [This file has to be downloaded from apache.org website]
    The reason the developers want these file to be replaced is they are trying to generate xlsx reports from database and the new file works ok for them after replacing it with the old file.
    CAN WE REPLACE THE ORIGINAL FILE WITH THE NEW ONE.
    I am not sure of the consequences this would have on WebLogic performance and security.
    Can some one throw light on this.
    Regards,
    Kumar

    Hello Jaysen,
    As per your suggestions, I asked the developers to try the procedure....
    THEY SENT ME THIS HUGE ERROR LOG....DONT KNOW IF THIS IS ANY OF YOUR PAIN TO UNDERSTAND...CAN YOU HELP!
    ==================================================
    The following is the error trace:
    ERROR ContextLoader - Context initialization failed
    java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:40)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:338)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:375)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:83)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1591)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2734)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:892)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:641)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:229)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:565)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
    at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:128)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    [Loaded weblogic.logging.ThrowableInfo from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints.
    java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    Truncated. see log file for complete stacktrace
    >
    [Loaded javax.management.RuntimeErrorException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded javax.management.RuntimeMBeanException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded java.lang.reflect.InvocationTargetException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded java.lang.reflect.UndeclaredThrowableException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded weblogic.application.ModuleException from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.application.utils.StateChangeException from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.utils.NestedThrowable$Util from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.application.utils.ExceptionUtils from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.servlet.internal.session.MemorySessionContext$SessionCleanupAction from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor136 from __JVM_DefineClass__]
    [Loaded javax.naming.ContextNotEmptyException from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded weblogic.application.internal.flow.ModuleStateDriver$DestroyStateChange from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Error> <Deployer> <BEA-149265> <Failure occured in the execution of deployment request with ID '1280899305658' for task '1'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:894)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. see log file for complete stacktrace
    java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    Truncated. see log file for complete stacktrace
    >
    [Loaded weblogic.deploy.container.NonFatalDeploymentException from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application '_auto_generated_ear_'.>
    [Loaded weblogic.deploy.service.internal.DeploymentService$6 from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.deploy.service.internal.DeploymentServiceLogger from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.deploy.service.RequiresRestartFailureDescription from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.management.ApplicationException from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating start task for application '_auto_generated_ear_'.>
    <Aug 4, 2010 10:51:46 AM GMT+05:30> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:894)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. see log file for complete stacktrace
    java.lang.LinkageError: Class org/xml/sax/InputSource violates loader constraints
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    Truncated. see log file for complete stacktrace
    >
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor137 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor138 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor139 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor140 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor141 from __JVM_DefineClass__]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor142 from __JVM_DefineClass__]
    [Loaded javax.management.openmbean.CompositeDataSupport from C:\bea\JDK150~1\jre\lib\rt.jar]
    [Loaded sun.reflect.GeneratedSerializationConstructorAccessor143 from __JVM_DefineClass__]
    [Loaded weblogic.store.internal.UpdateRequest from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.transaction.internal.ServerTransactionManagerImpl$MigratedTLog from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    [Loaded weblogic.health.HealthLogger from file:/C:/bea/weblogic92/server/lib/weblogic.jar]
    ===============================
    Thanks for your time in advance!
    Kumar

  • Creating AS3 code for C++ classes converted with Alchemy (a là Box2D)

    So I've a collection of C++ classes which I now have converting fine with Alchemy to a swc file and can call the exposed functions fine from my AS3 code.
    What I'd really like to do is recreate stuff like Box2D's b2Vec.as class,
    public class b2Vec2 extends b2Base {
        public function b2Vec2(p:int) {
            _ptr = p;
        public function get v2():V2 {
            return new V2(x, y);
        public function set v2(v:V2):void {
            x = v.x;
            y = v.y;
        public function get x():Number { return mem._mrf(_ptr + 0); }
        public function set x(v:Number):void { mem._mwf(_ptr + 0, v); }
        public function get y():Number { return mem._mrf(_ptr + 4); }
        public function set y(v:Number):void { mem._mwf(_ptr + 4, v); }
    This is a simple example, but shows what I'd like to do.  On the C side of things, b2Vec2 is a struct,
    /// A 2D column vector.
    struct b2Vec2
        /// Default constructor does nothing (for performance).
        b2Vec2() {}
        float32 x, y;
    So, for this struct, it's easy to calculate that the first variable of a b2Vec2 object is a float, which will be the value in x and can be read via Alchemy's MemUser classes _mrf (read a fload from a point in memory) with _mrf(pointerAddress) and you can read in the second float with _mrf(pointerAddress + 4).
    My question is, if you're not a C++ expert (me), is there any way to get the definition of a class, as in the addresses of all the variables within and what they are?  So, for the b2Vec2 one, I'd imaging it'd be something like, float32 x 0 float34 y 4 ...
    The reason I'm asking is because one of the classes in particular has loads of variables and to try and get each and every one's information so I can access it directly from the AS3 code would be lots of work and I'm going to assume I'll introduce plenty of human error to it.

    Hi,
    I am facing the similar issue. Can you please tell me how you solved this problem in more details?
    which sample code and how u can find that in SE24 and where to copy that code.
    Thanks in advance..
    vamsi.

  • Flex project into a single SWC file!!

    please help me with this problem:
    i created an image gallery using actionscript 3.0 classes in Flash CS4...in one of the classes, i used a mask Movieclip to mask the thumbnails in the gallery...this mask movieclip is a rectangle Movieclip symbol in the library that is exported for actionscript...
    in order to run my application in Flex 3, i did the following:
    a. i placed the classes in a folder called "com"
    b. i placed my assets (the images) in folder called "images"
    placed both "com" & "images" folders in the "src" folder of my Flex project
    c. i exported the mask movieclip symbol from the Flash library as a SWC file, and placed the SWC file in the "lib" folder of my Flex project
    d. i dragged my custom component (image gallery) onto the stage
    e. in the main MXML application file, i went to "Design Mode" and found my custom component under the "Custom" folder..i dragged the component on the stage
    and my gallery worked fine!
    now the problem happened when i tried to compile the WHOLE Flex project as a SINGLE SWC file...in order to compile the whole Flex project as a SINGLE SWC file, i did the following:
    1. i created a new Flex Library Project
    2. i placed my classes folder ("com") and my images folder ("images") in the "src" directory of the Flex library project
    3. i went to Project --> Properties --> Flex Library Build Path -->
    - on the "Classes" tab, i checked the ("com") folder which contains all of the classes
    - on the "Assets" tab, i checked the ("images") folder which contains all of the images
    - on the "Library Path" tab, i clicked the "Add SWC" button, browsed to my mask movieclip SWC file (that i created earlier from the mask movieclip symbol in the library in Flash CS4) and selected it
    I then pressed Ok,and now a SWC file that represents my project was created in the "bin" directory of my Flex library project
    4. I created a new Flex project, and in the "lib" folder i placed the SWC file that was created in the Flex Library project...in the main MXML application file, i went to "Design Mode" and found my custom component under the "Custom" folder..i dragged the component on the stage
    BUT NOTHING DISPLAYS!!
    so obviously there's a problem in "condensing" the whole project as single SWC file
    could someone please help me!!
    thanx a lot

    I am also facing same problem, when i am including librabry in  application not able to see any image...............can you tell me the solution.................................thanks

  • GUI to set file, other class to read it, file null error

    Perhaps not the most informative subject for this problem. I have a GUI in which a file chooser is used to select a file to be read. Another class reads in this file, and goes on to process it. My main class sets up the GUI and then goes on to process the files in the second class.
    I am having trouble, I believe, with timing. The main class sets up the GUI, it runs perfectly, and then I catch a problem (that will evolve into an error), where the file I am supposed to process is null, because I have not had a chance to use the file chooser in the GUI. I haven't had any luck finding a solution online, although if there is one (or another tutorial I missed), please feel free to pass the link(s) along. I am posting the relevant code below.
    Thanks,
    Danielle
    public Main()
         * @param args the command line arguments
        public static void main(String[] args)
             javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        System.out.println("About to run create GUI method");
                        MGui app = new MGui();
                        System.out.println("declared a new MGui....");
                        app.createAndShowGUI();
            /**Starting to get file choices and moving them into GPR Handler:
              GprHandler gpr = new GprHandler();
         //~ System.out.println("should be perfect????");
         //  }//end if
        }// end main(String[] args)
    }// end class MainThe GUI uses the following code for the file chooser:
    private class enterFile2Action implements ActionListener
         public void actionPerformed(ActionEvent evt)
              JFileChooser chooser = new JFileChooser();
              int rVal = chooser.showOpenDialog(enterFile1);
              if(rVal == JFileChooser.APPROVE_OPTION)
                   inputFile2 = chooser.getSelectedFile();
                   PrintWriter outputStream;
                   file2Name = inputFile2.getName();
                   enterLabel2.setText(file2Name);
    }Finally, the GprHandler class processes the file- reading it and such. The only relevant method, however is below.
       /** taking in files*/
        public boolean readFiles()
             boolean nullFiles = true;
             System.out.println("into method readFiles()");
         if (MGui.get1Name() != null)
              System.out.println("name isn't null");
              file1Name = MGui.get1Name();
              file1 = new File(file1Name);
         if (MGui.get2Name() != null)
              file2Name = MGui.get2Name();
              file2 = new File(file2Name);
              nullFiles = false;
         }//end if
         if (nullFiles)
              System.out.println("one or more files is undeclared");
              return false;
         }//end if
         else
            try{
             file1Reader = new FileReader(file1);
                file2Reader = new FileReader(file2);
         }//end try
            catch (FileNotFoundException e)
             System.out.println("file not found exception");
              return false;
            }     //end catch
         }//end else
         return true;
        }

    No, you're quite right. I want the GprHandler to
    start when I've got something there for it to start
    with. I never thought to call it from the
    actionPerformed though. I think I've been listening
    to too many lectures on some prof's definition of a
    "proper main class".
    I think I understand what you're suggesting: I
    should simply remove the GprHandler part from my main
    class and place it instead in the actionPerformed
    methods, once the files are actually named/chosen.
    Did I get that right?
    Qualified yes. Does GPRHandler implement Runnable? I mean you don't want to do the processing in the swing event thread. So what you should do is in the actionPerformed create the Handler (with the file or whatever other bits it needs) and then start it.
    Then it can process merrily along in a seperate thread.

  • Acsessing sub movieclips from swc file

    i'm trying to bild a map of my country, i created a map on flash cs3, then selected all of them and converted to a movieclip  named as 'turkey'. after that i gived a diffrend name for all of my city graphics in 'turkey' and converted them to movie clip, like in image shown.
    i exported 'turkey' as 'turkiye.swc'. Created new flex project and on libary tab instaled my swc file. i can show my map with those codes:
    Harita.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*" xmlns:harita="*">
    <mx:Canvas height="100%" width="100%">
      <mx:HBox top="10" left="10"  horizontalAlign="center" verticalAlign="middle"><harita:turkiye  id="hede"/></mx:HBox>
    </mx:Canvas>
    </mx:Application>
    turkiye.as
    package {
    import mx.core.UIComponent;
    public class turkiye extends UIComponent {
      private var harita:MovieClip;
      public function turkiye() {
       harita = new turkey();
       addChild(harita);
    my problem is this: how can acsess my citys? i want to add event listeners to my citys named as il01, il02... but "harita.il01.addEventListener" not working, i can acsees them with
    var istanbul:il34 = new il34;
    istanbul.addEventListener(MouseEvent.MOUSE_OVER, function():void{ Alert.show('found')});
    but event not working, if i add it as child to 'harita', i'ts working but shown one more istanbul in my map at 0,0
    i can't find my citys in "turkey()", where is my wrong?Best Regards and sory for my english

    We also have a similar problem.

  • [help needed] Javadoc problem with many files

    Hi,
    I have an Ant script generating my javadoc every night. I have about 5700 java files making about 42MB of data.
    It worked fine for two years until two weeks ago, where the script stopped with the following message :
    <<
    [... big snip...]
    [javadoc] C:\Temp\Java\blablabla.java:58: cannot resolve symbol
    [...snip...]
    [javadoc] public HtmlComponent getCell(
    [javadoc] ^
    [javadoc] 100 errors
    [javadoc] 1 warning
    BUILD SUCCESSFUL
    Total time: 1 minute 40 seconds
    >>
    If I execute the javadoc generation on a smaller set of java source files, I still have a lot (100 displayed) of error messages like the one above (which generaly don't stop javadoc), but the generation continues :
    <<
    [...big snip...]
    [javadoc] C:\Temp\Java\xxx.java:12: cannot resolve symbol
    [...snip...]
    [javadoc] public SelectionNoop(Fig fig) {
    [javadoc] ^
    [javadoc] Standard Doclet version 1.4.2_08
    [javadoc] Generating C:\temp\JavadocNewSI\constant-values.html...
    [javadoc] Building tree for all the packages and classes...
    [javadoc] Generating C:\temp\JavadocNewSI\com\zz\common\job\common\class-use\ManagerDelegate.html...
    [...big snip...]
    [javadoc] Generating C:\temp\JavadocNewSI\stylesheet.css...
    [javadoc] 6251 warnings
    BUILD SUCCESSFUL
    Total time: 23 minutes 33 seconds
    >>
    I don't understand what's going on. It is not a memory problem since it issues an intelligible message.
    I also managed to generate javadoc for several subsets, so it can't be a problem with one file or folder crashing javadoc.
    Any help welcome,
    Tug

    Well, it seems that the cause was indeed an empty java file...
    The generation fails if the empty java file is the set AND a refering file is in the set. If only one of these conditions are missing, then javadoc goes on...
    What I don't understand is that the empty file used to be here since may 2005 and the referring class is unchanged since 2004... it never bugged javadoc before.
    Creepy...
    Tug

Maybe you are looking for

  • A/R Down Payments to Draw Error due to partially credited

    Thank you in advance for your help - here is my question: I have started with a Sales Order of $20,000. I then made an A/R Down Payment Invoice for $5,000.  When payment came in, it was in the amount of $4,980 so I credited this amount towards the A/

  • Column shifted during Local file download in ALV Grid

    Dear Experts, I have an ALV grid editable report program. The program is developed to maintain custom table data. The table data will be maintained using this report.  User can edit the data and can save it. In this report there are some columns whic

  • Backing up Ipod touch

    I have not been able to do a backup on my Ipod touch 4th generation since installing the new update....my Iphone 4 is fine but not the ipod. Any ideas on how to fix would be greatly appreciated.

  • What's the fastest OS for my mom's iMac? (2.4 GHz Core 2 Duo, 3 GB RAM)

    She's currently running 10.6.8 with 400GB of free space and it seems very slow. (I've run Repair Permissions in Disk Repair.)

  • LDAP address book search slow

    Hi, I am using the LDAP server on Mac OS X Server 10.4 to store our corporate address book which is updated from a php based admin. The amount of contacts is around 700 now and searchs from Apple Addressbook are taking nearly 10 seconds. Is there a w