Flex 2 Compatibility?  Seeing StreamingAMFChannel compile error

I have seen postings such as <br />http://tjordahl.blogspot.com/2008/03/blazeds-and-flex-2-compatibility.html<br />suggesting that BlazeDS is compatible with the latest versions of Flex 2 SDK.<br /><br />My experience shows that this may not be completely true.<br /><br />In Flex Builder 3, I have created a project using Flex 2.0.1 Hotfix 3 SDK.<br />This points to:<br />C:\Program Files\Adobe\Flex Builder 3\sdks\2.0.1<br />which is build 180927.<br /><br />I have code like this:<br /><br />public function sendRequest(): void {<br />        var ro:RemoteObject = new RemoteObject();<br />        ro.addEventListener(ResultEvent.RESULT, resultHandler);<br />        ro.addEventListener(FaultEvent.FAULT, faultHandler);                  <br />                  <br />             <br />     if (_channelId != null && _channelUrl != null)<br />        {<br />   var cs:ChannelSet = new ChannelSet();<br />                    <br />   var myChannel:AMFChannel = new AMFChannel(_channelId, _channelUrl);<br />   myChannel.pollingEnabled = true;<br />   myChannel.pollingInterval = 8000;<br />   cs.addChannel(myChannel);<br />   ro.channelSet = cs;<br />        }<br />               <br /><br />   ro.destination = "myService";<br />   ro.channelSet = cs;<br />                                   <br />   ro.myOperation();               <br />}<br /><br />When compiling this I get the following error message:<br /><br />Channel definition, mx.messaging.channels.StreamingAMFChannel, can not be found.<br /><br />Even when I comment out the above code referencing AMFChannel, the compile error still occurs (even when doing a "clean" build).<br /><br />Here are the relevant compiler settings:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><actionScriptProperties mainApplicationPath="client.mxml" version="3"><br /><compiler additionalCompilerArguments="-services &quot;C:\tomcat_blazeDS\webapps\myservice\WEB-INF\flex\services-config.xml&quot;<br />  -locale en_US" copyDependentFiles="true" enableModuleDebug="true" flexSDK="Flex 2.0.1 Hotfix 3" generateAccessible="false"<br />   htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.28" htmlPlayerVersionCheck="true" <br />   outputFolderLocation="C:/tomcat_blazeDS/webapps/myservice/swf" outputFolderPath="bin-debug" sourceFolderPath="src" <br />   strict="true" useApolloConfig="false" verifyDigests="true" warn="true"><br /><compilerSourcePath/><br /><libraryPath defaultLinkType="1"><br /><libraryPathEntry kind="4" path=""><br /><modifiedEntries><br /><libraryPathEntry kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" useDefaultLinkType="true"><br /><crossDomainRsls><br /><crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="framework_3.0.0.477.swz"/><br /><crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="framework_3.0.0.477.swf"/><br /></crossDomainRsls><br /></libraryPathEntry><br /></modifiedEntries><br /></libraryPathEntry><br /><libraryPathEntry kind="1" linkType="1" path="libs"/><br /><libraryPathEntry kind="3" linkType="1" path="myCore.swc" useDefaultLinkType="false"/><br /></libraryPath><br /><sourceAttachmentPath/><br /></compiler><br /><applications><br /><application path="client.mxml"/><br /></applications><br /><modules/><br /><buildCSSFiles/><br /></actionScriptProperties><br /><br />Any comments on whether this should work, and is supported?  If this is expected to work, I would also appreciate some ideas on work-arounds.<br /><br />Thank you,<br />David

David,
Even when you comment out the channel (actually all channels) that has the
reference to mx.messaging.channels.StreamingAMFChannel this still doesn't
work?
Are you sure that FlexBuilder is pointing at the right services-config.xml
file when it compiles the MXML? It can't point at a BlazeDS 'default'
config.
It sounds like the problem is that the Flex2 libraries in the swf are trying
to load that channel class which is new for Flex3 and it isn't there.
Removing any and all references to this class in the config files used to
compile the swf should fix it.
Let us knwo if that isn't it.
Tom Jordahl

Similar Messages

  • How do I see javac compiler errors during JSP precompile?

              I played with all the options that "weblogic.jspc"
              supports. I couldn't get the javac compiler errors to
              show up when there is a problem with the generated
              Java file.
              Interestingly the same JSP when compiled automatically
              by the weblogic server, the javac errors show up in
              the output.
              Any tricks? or ideas?
              thanks
              

              In WL 5.1, earlier service packs would sometimes not show the errors. Get sp6 or later.
              mike
              "Mahesh Vellanki" <[email protected]> wrote:
              >
              >
              >I played with all the options that "weblogic.jspc"
              >supports. I couldn't get the javac compiler errors to
              >show up when there is a problem with the generated
              >Java file.
              >
              >Interestingly the same JSP when compiled automatically
              >by the weblogic server, the javac errors show up in
              >the output.
              >
              >Any tricks? or ideas?
              >
              >thanks
              >
              

  • Flex 4.1 SDK compilation error=3

    I just downloaded SDK 4.1 and tried to compile my application but I'm getting the following error:
    C:\projects\MyProject\build.xml:119:Execute failed: java.io.IOException:CreateProcess: "C:\Program Files\Adobe\Adobe Flash Builder Plug-in Beta 2\sdks\4.1\bin\mxmlc.exe" -strict=true -show-actionscript-warnings=true -keep-generated-actionscript=false -use-network=true -target-player=10.0.0 -source-path=C:\projects\MyProject-Flex/ui/trunk/src -library-path+=C:\projects\MyProject -Flex/ui/trunk/libs -output=C:\apache-tomcat-5.5.25/webapps/MyProject/Main.swf C:\projects\MyProject-Flex/ui/trunk/src/Main.mxml error=3
    Line 119 in build.xml is the starting of the following:
            <exec executable="${FLEX_HOME}/bin/mxmlc.exe">
                <arg line="-strict=true" />
                <arg line="-show-actionscript-warnings=true" />
                <arg line="-keep-generated-actionscript=false" />
                <arg line="-use-network=true" />
                <arg line="-target-player=10.0.0" />
                <arg line="-source-path=${sourceDirUI}" />
                <arg line="-library-path+=${FLEX_BASE_DIR}/ui/trunk/libs" />
                <arg line="-output=${webDirUI}/Main.swf" />
                <arg line="${sourceDirUI}/Main.mxml" />
            </exec>
    Any idea what's going on and what error=3 stands for?
    The same ant build.xml has been working with sdk 4.1.0.15735
    Thanks.

    @Jason Villmer,
    I believe the issue you're describing is http://bugs.adobe.com/jira/browse/SDK-26940.
    There is a workaround listed in the bug report which should work (based on my testing), or you could probably set the direction and layoutDirection styles globally using a Style block.
    Peter

  • How to see JSP compilation errors - Tomcat 4.1.18- JDK 1.4

    Hi There,
    I'm kind of new to JSP world, so once in while I forget to put a ; or I put a variable name wrong (I usualy use Eclipse to do my coding in JAVA, but the existing plugins for JSP development are still in their early stages, so there's isn't any plugin that indicates errors on JSP before deploying them).
    When I try to see a JSP, if it has an error (compilation-time error), I get this message:
    <--->
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    <--->
    This doesn't help me a lot to fix the problem, I would like to, at least, see from what line the error came from.
    Help anyone?
    Thank You
    Pinho

    This kind of errors often come from syntax error in
    the jsp page.
    Tomcat is not very friendly with this kind of errors.
    A trick is to open the java file under the 'work'
    directory and checkIsn't there any way to show the error on a page, just like a run-time error?
    Maybe changing some log setting?

  • Newbie:  jsp compile error w/ tomcat 5.0.19

    Hello there, this is my first time try to write something in jsp/ servlets, and i encounter a minor installation problem:
    using mdk linux with j2sdk1.4.2 (locate at /usr/local/), tomcat is also locate at /usr/local.
    I am able to see HelloServlet.java, and HelloWorld.html at http://localhost:8080/servlet/HelloServlet
    and http://localhost:8080/testing/HelloWorld.html
    but i'm unable to see HelloWorld.jsp at http://localhost:880/HellowWorld.jsp (my HelloWorld.html and HellowWorld.jsp are locate at the same dir)
    here's are the things i added in my /etc/profile so far:
    CATALINA_HOME="/usr/local/Tomcat"
    export CATALINA_HOME
    JAVA_HOME="/usr/local/j2sdk1.4.2"
    export JAVA_HOME
    JavaPath="/usr/local/j2sdk1.4.2/bin"
    export JavaPath
    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    export PKG_CONFIG_PATH
    CLASSPATH=$CLASSPATH:/usr/local/Tomcat/common/lib/servlet-api.jar:/usr/local/Tomcat/
    common/lib/jsp-api.jar:/home/allen/programming/j2ee/:./
    export CLASSPATH
    when do java -verison, i see:
    [root@localhost local]# java -version
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
    when start tomcat, i got:
    [root@localhost bin]# ./startup.sh
    Using CATALINA_BASE: /usr/local/Tomcat
    Using CATALINA_HOME: /usr/local/Tomcat
    Using CATALINA_TMPDIR: /usr/local/Tomcat/temp
    Using JAVA_HOME: /usr/local/j2sdk1.4.2
    i thought i did everything that was told, yet i can't see jsp page on my browser, while i can see servlets and html,
    thank you for your time in advance ^_^

    sorry, it was a typo, yea...it was for http://localhost:8080/testing/Hello.jsp
    this morning, i copied "tool.jar" from j2sdk1.4.2 to my /usr/local/tomcat/common/lib, restarted, fire it up again using "./catalina.sh" just to see where the problems came from, and here's where the compile error occue:
    Compile failed; see the compiler error output for details.
            at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
            at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
            at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:387)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
            at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
            at java.lang.Thread.run(Thread.java:534)
    Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Env: Compile: javaFileName=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java
        classpath=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/shared/classes/:/usr/local/jakarta-tomcat-5.0.19/common/classes/:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar:/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
        cp=/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/Tomcat/bin/commons-logging-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/shared/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/common/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar
        cp=/usr/local/j2sdk1.4.2/lib/tools.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
        work dir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        extension dir=/usr/local/j2sdk1.4.2/jre/lib/ext
        srcDir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        include=org/apache/jsp/testing/Hello_jsp.java
    Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Error compiling file: /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java     [javac] Compiling 1 source file
        [javac] /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_/org/apache/jsp/testing/Hello_jsp.java:48: cannot resolve symbol
        [javac] symbol  : class Data
        [javac] location: package util
        [javac]       out.print( new java.util.Data() );
        [javac]                               ^
        [javac] 1 error
    Mar 16, 2005 7:32:34 AM org.apache.jasper.compiler.Compiler generateClass
    looking over the compiler error, it seems to me tomcat is able to recongize /usr/local/j2sdk1.4 's location. which i assume it implied JAVA_HOME and CLASSPATH are setup correctly.
    Dunno why it just won't display jsp pages and kept saying compiler error...
    thank you for helping

  • "asant build" for bookstore1 example in j2ee tutorial gives "compile error"

    Hello everybody,
    I am trying to run "asant build" command to build package for bookstore1 example given in j2ee tutorials.
    I installed my j2ee tutorial 1.4 in "c:\java\j2eetutorial14" and my example is in "c:\java\j2eetutorial\examples\web\bookstore1".
    My j2ee SDK with appliation server is installed in C:\sun\appserver.
    When i run the "asant build" command in "c:\java\j2eetutorial\examples\web\bookstore1" directory i get compile error with last few lines as follows.
    [javac] location: class servlets.ShowCartServlet
    [javac] } catch (BookNotFoundException ex) {
    [javac] ^
    [javac] C:\Java\j2eetutorial14\examples\web\bookstore1\src\servlets\ShowCartServlet.jav
    :136: cannot resolve symbol
    [javac] symbol : class ShoppingCartItem
    [javac] location: class servlets.ShowCartServlet
    [javac] ShoppingCartItem item = (ShoppingCartItem) i.next();
    [javac] ^
    [javac] C:\Java\j2eetutorial14\examples\web\bookstore1\src\servlets\ShowCartServlet.jav
    :136: cannot resolve symbol
    [javac] symbol : class ShoppingCartItem
    [javac] location: class servlets.ShowCartServlet
    [javac] ShoppingCartItem item = (ShoppingCartItem) i.next();
    [javac] ^
    [javac] C:\Java\j2eetutorial14\examples\web\bookstore1\src\servlets\ShowCartServlet.jav
    :137: cannot resolve symbol
    [javac] symbol : class BookDetails
    [javac] location: class servlets.ShowCartServlet
    [javac] bd = (BookDetails) item.getItem();
    [javac] ^
    [javac] 69 errors
    BUILD FAILED
    file:C:/Java/j2eetutorial14/examples/web/bookstore1/build.xml:68: Compile failed; see the compiler error output for details.
    Total time: 2 seconds
    Can some one please help me.
    thanks

    When i run the "asant build" command in
    "c:\java\j2eetutorial\examples\web\bookstore1"
    directory i get compile error with last few lines as
    follows.Did you package the bookstore common files as described in Chapter 3? My guess is that you didn't include bookstore.jar from <INSTALL>/j2eetutorial14/examples/build/web/bookstore/dist/.
    -Ian Evans
    Sun Microsystems
    J2EE Tutorial team

  • Avitek medical records tutorial-- compilation errors

    I have downloaded and extracted the zip file to medrec_tutorial. when i try to run mybuild.xml i get 100 compilation errors as - cannot resolve symbol--
    Can anyone tell me what is the solution to this problem. Thanks

    I am getting the same errors. Please let me know if anyone has found a solution.
    thanks,
    -Won
    Here is a sampling of some of the errors:
    [wlcompile] symbol : class PatientWS
    [wlcompile] location: class com.bea.medrec.controller.PhysicianClientUtils
    [wlcompile] PatientWS patientWS = null;
    [wlcompile] ^
    [wlcompile] C:\medrec_tutorial\src\physicianEar\physSessionEjbs\com\bea\medrec\c
    ontroller\PhysicianClientUtils.java:168: cannot resolve symbol
    [wlcompile] symbol : class PatientWS
    [wlcompile] location: class com.bea.medrec.controller.PhysicianClientUtils
    [wlcompile] patientWS = new PatientWS();
    [wlcompile] ^
    [wlcompile] C:\medrec_tutorial\src\physicianEar\physSessionEjbs\com\bea\medrec\c
    ontroller\PhysicianClientUtils.java:192: cannot resolve symbol
    [wlcompile] symbol : class Prescription
    [wlcompile] location: class com.bea.medrec.controller.PhysicianClientUtils
    [wlcompile] Prescription rX = null;
    [wlcompile] ^
    [wlcompile] C:\medrec_tutorial\src\physicianEar\physSessionEjbs\com\bea\medrec\c
    ontroller\PhysicianClientUtils.java:195: cannot resolve symbol
    [wlcompile] symbol : class Prescription
    [wlcompile] location: class com.bea.medrec.controller.PhysicianClientUtils
    [wlcompile] rX = new Prescription(pRxWS.getPatientId(),
    [wlcompile] ^
    [wlcompile] C:\medrec_tutorial\src\physicianEar\physSessionEjbs\com\bea\medrec\c
    ontroller\PhysicianClientUtils.java:217: cannot resolve symbol
    [wlcompile] symbol : class PrescriptionWS
    [wlcompile] location: class com.bea.medrec.controller.PhysicianClientUtils
    [wlcompile] PrescriptionWS rXWS = null;
    [wlcompile] ^
    [wlcompile] C:\medrec_tutorial\src\physicianEar\physSessionEjbs\com\bea\medrec\c
    ontroller\PhysicianClientUtils.java:220: cannot resolve symbol
    [wlcompile] symbol : class PrescriptionWS
    [wlcompile] location: class com.bea.medrec.controller.PhysicianClientUtils
    [wlcompile] rXWS = new PrescriptionWS();
    [wlcompile] ^
    [wlcompile] C:\medrec_tutorial\src\physicianEar\physSessionEjbs\com\bea\medrec\c
    ontroller\PhysicianClientUtils.java:262: cannot resolve symbol
    [wlcompile] symbol : class PrescriptionWS
    [wlcompile] location: class com.bea.medrec.controller.PhysicianClientUtils
    [wlcompile] PrescriptionWS[] rxWS = null;
    [wlcompile] ^
    [wlcompile] 100 errors
    BUILD FAILED
    file:C:/medrec_tutorial/src/physicianEar/mybuild.xml:4: Compile failed; see the
    compiler error output for details.

  • View Compilation Errors in Embedded Java Activity

    Hi,
    Is there any way to see the compilation errors in the Embedded Java Activity in the BPEL.
    Thanks,
    Ajay

    Hi,
    Exceptions are automatically converted to BPEL faults and thrown back in BPEL.
    But to see some errors , one can use try catch block with audit trail entry in catch block like :
    try {
    catch (Exception e){
    addAuditTrailEntry(e);
    I have not used this so not sure if this will work.
    HTH,
    Ketan

  • Stuck on Compiler Error in Flex Builder

    Greetings all.
    I have my first Flex app calling a Java backend, and the connection works fine.  I have a method "getContinents()" in Java, which returns a List of Continent objects.  Each Continent object has two variables, "name" and "description".  "Name" is a two-letter abbreviation (NA for North America, SA for South America, etc; you get the idea) and "Description" is the spelled-out description (like "North America").  I have an ActionScript class which mimics the Java class.
    In Flex, I have a DataGrid which has, as its dataProvider, a Bindable ArrayCollection.  When the data comes back into Flex, I put it in the aforementioned Bindable ArrayCollection.  That works great.  The list of Continents appears in the DataGrid, as expected.
    The issue is the DropDownList.  I want to see the same thing happen in the DropDownList.  I want to see the Description in the DropDownList, and when one is chosen, based on the selection, I want to go back to the server to get the list of Countries in that selected Continent.  But I can't get this to happen because I can't get past a compiler error on the DropDownList:
    -1067: Implicit coercion of a value of type String to an unrelated type mx.collections:IList.
    DropDownList is defined like this:
        <s:DropDownList x="270" y="220" id="continentDropdown" width="112">
                                        dataProvider="{continentArray}"
                                        labelField="description"
                                        valueField="name"
                                        change="continentChanged(event)">
        </s:DropDownList>
    Data is returned to Flex in this result handler:
                protected function continentsRO_resultHandler(event:ResultEvent):void
                {    log.info("Returned in result handler") ;
                    continentArray=event.result as ArrayCollection ;
    When I create a ComboBox instead of a DropDownList, I get the same compiler error.  When I change the ComboBox from a Spark ComboBox to an MX ComboBox, I don't get the compiler error, but the ComboBox never has any data in it.
    Would anyone be able to tell me what it is that I am doing wrong here?
    Thanks very much in advance!!!

    I would try this:
    continentArray = new ArrayCollection(event.result as Array);
    And if that does not work then ensure event.result is not just a string.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Flex compilation error

    Hi All,
    I am getting flex compilation error when i deploy the models which were developed in older version7.0, now it is 7.01.I am getting the following error in 7.01 version.
    Flex2Compiler.Build: Error in executing a process for Flex compilation: /usr/sap/BWD/DVEBMGS30/j2ee/cluster/server0/GUIMachine_Business_Packages/[KCRXK59]MyModels.SMIScoreCard/FLEX_COMPILATION_FOLDER/AAD583.mxml
    Does the older version models doesnot deploy in new versions?
    Thanks
    Srinivas K

    Hello Srinivas,
    Currently i am also facing the same issue , Can you let us know were you able to solve the problem u encountered , if yes how?
    Thanks and Regards,
    Ronniee

  • Flex compilation error 1004

    Compilation is ok, but the deployment is giving this error messages:
    Error in executing a process for Flex compilation, Error 1004: Operator '%' must be followed by an operand
          (D:usrsapJ2EJC01j2eeclusterserverGUIMachine_Business_PackagesTest_59674FLEX_COMPILATION_FOLEDRAAD8G.mxml:154)
    Error 1004: Operator '%' must be followed by an operand
          (D:usrsapJ2EJC01j2eeclusterserverGUIMachine_Business_PackagesTest_59674FLEX_COMPILATION_FOLEDRAAD8G.mxml:154)
    Error 1004: Operator '%' must be followed by an operand
          (D:usrsapJ2EJC01j2eeclusterserverGUIMachine_Business_PackagesTest_59674FLEX_COMPILATION_FOLEDRAAD8G.mxml:154)
    Error 1033: ')' expected
          (D:usrsapJ2EJC01j2eeclusterserverGUIMachine_Business_PackagesTest_59674FLEX_COMPILATION_FOLEDRAAD8G.mxml:154)
    Error 1033: ')' expected
          (D:usrsapJ2EJC01j2eeclusterserverGUIMachine_Business_PackagesTest_59674FLEX_COMPILATION_FOLEDRAAD8G.mxml:154)
    Failed to compile AAD8G.mxml
    I do not succeed in finding the cause of this error

    Compilation is ok, but the deployment is giving this error messages:
    Error in compiling Flex application: Error 1004: Operator '=' must be followed by an operand
          (/usr/sap/NW7/DVEBMGS00/j2ee/cluster/server0/GUIMachine_Business_Packages/Poc_59929/FLEX_COMPILATION_FOLDER/AADHE1_P.mxml:374)
    Error 1142: The class 'vc.custom.SkinAssetDependency' could not be loaded.
          (/usr/sap/NW7/DVEBMGS00/j2ee/cluster/server0/GUIMachine_Business_Packages/Poc__59929/FLEX_COMPILATION_FOLDER/AADHDR.mxml)
    Failed to compile AADHDR.mxml
    Edited by: Rafael Ovidio on Feb 15, 2008 10:28 AM

  • Flex compilation error: line exceeds 32k span

    Hi All,
    I am trying to execute my application being developed in VC7.0 (nw04s sneak preview version) using tabbed layers. I have 3 layers and has the following UI components
    1 tab/layer: input form
    2 tab/layer: table control
    3 tab/layer: table control
    Following is the error from the source Viewer window
    <b>com.myComp.myProduct.8J.Empdetailsview</b>
    Error in executing a process for Flex compilation, Error: Branch between 8421 and 41193 around line 0 exceeds 32K span. If possible, please refactor this component.
          (E:\usr\sap\J2E\JC01\j2ee\cluster\server0\GUIMachine_Business_Packages\empModel_18608\FLEX_COMPILATION_FOLEDR\AAD8J-generated.as:2188)
    Error: Branch between 8421 and 41193 around line 0 exceeds 32K span.
    Failed to compile AAD8J.mxml
    PS: Initially I had a table and chart controls in my second layer (no 3rd layer then) and got the same error however, after removing the chart contrl, the app begun to run.
    Now I added a 3rd layer which has one table contrl only and now the app is not working. I also have eventing between my layers..
    Please help
    Thanks
    Sathish

    Hi
    The 32k issue id pretty hard to get rid of once it starts, instead of using the 3rd layer, try and create a nested iview, you can also try and use a nested iview for each layer, this is a bit more complicated to do but does seem to workaround the 32k problem.
    Jarrod

  • Flex compilation error after adding an additional output port to a query

    Hello,
    I need to add an additional output port to a query in order to dynamically filter some results. Our version of VC 7.0 (SP16) doesn't support filter components with access to store data.
    Just when we add an extra output port to the query and deploy it we run into a flex compilation error.
    Has somebody come along with that?
    Kind regards
    Stefan

    Hi
    Why exactly you want another output port. With same output port you can drag multiple filters & restrict the output.
    Creation of second output port is not required.
    If first way is not suitable in your case, then you add that query twice (or multiple times) & pass the same input parameters.
    If still it is not serving the purpose then please elaborate your requirement as what dynamic filter you want.
    Regards
    Sandeep

  • Compile error during Flex Deployment of a Webservice

    Hello,
    We are using the Visual Composer (7.0 SP9) to display the data from a home made Web Service. This is the complete display of a simple table without input.
    We tested the Web Service with the "Test Dat Service" option and within the Web Service Navigator of the J2EE Engine. This all worked fine.
    When we try to deploy the application with Flash/Flex it fails, but when we try to deploy it with WebDynpro, the table is displayed correctly.
    The following error is created during the compilation:
    Error in compiling Flex application: Error 1049: Expected a field name after '.' operator.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:300)
    Error 1205: The statement '' is incomplete.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:300)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:302)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:303)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:304)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:305)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:307)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:310)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:337)
    Error 1049: Expected a field name after '.' operator.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:355)
    Error 1205: The statement '' is incomplete.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:355)
    Error 1140: ActionScript 2.0 class scripts may only define class or interface constructs.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:337)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:376)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:394)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:408)
    Error 1029: Unexpected '}' encountered
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:417)
    Failed to compile AAD25B.mxml
    Does anybody know what the problem could be?
    Thanks in advance,
    Edwin Oldenburg

    Hi Edwin,
    have you access to the AAD25B.mxml file and take a look at the lines where the errors occurs?
    Maybe you get further particulars about the errors.
    But I think, this is an error in VC, but I'm not sure.
    Best Regards,
    Marcel

  • Flex compilation error code 2830

    Hi All ,
      When using  Layer Iviews with Navigation Control as  LINK TREE in my VC model .
       Compile error with message as below ,
    Error in compiling Flex application: /usr/sap/EPD/JC03/j2ee/cluster/server0/GUIMachine_Business_Packages/Liquidity_June_27_13818/FLEX_COMPILATION_FOLDER/AAD7EI.mxml(2830):  Error: Call to a possibly undefined method buildLinkTree.
       buildLinkTree();
    Appreciate if anyone can help me in resolution .
    Thanks
    Ravi

    Hello Ravi ,
    Could you manage to get a solution to your problem , Since i am also facing the same,
    If yes could you share as to how did u approach the problem?
    Thanks and Regards,
    Ronniee

Maybe you are looking for