FlexJS RemoteObject with ColdFusion

classic Classic list List threaded Threaded
38 messages Options
12
Reply | Threaded
Open this post in threaded view
|

FlexJS RemoteObject with ColdFusion

doug777
From the example it's not clear to me how to use this with CF.

Using following as an example, how would this translate into the new js tag.

<mx:RemoteObject id="roSendEmail" destination="ColdFusion"
source="{relativePath}SendEmail">
        <mx:method name="sendmail" result="roSendMailResultHandler(event)"
fault="roFaultHandler(event)"/>
</mx:RemoteObject>

var mailer:Object = {sendto:"[hidden email]", from:"me", subject:"New Info",
html:1, message:message};
this.roSendEmail.sendmail(mailer);

Doug




--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

Alex Harui-2
Hi Doug,

Check out the examples/flexjs/RemoteObjectAMFTest example.  I'm not the
expert on this stuff, but I think you would do something like:

<js:RemoteObject id="roSendEmail" destination="ColdFusion"
source="{relativePath}SendEmail"
result="roSendMailResultHandler(event)

fault="roFaultHandler(event)"/>

And


var mailer:Object = {sendto:"[hidden email]", from:"me", subject:"New
Info",
html:1, message:message};
this.roSendEmail.send("sendmail", [mailer]);

RemoteObject is pretty new.  We haven't implemented the equivalent of
mx:method yet.


Good luck,
-Alex

On 9/13/17, 9:40 PM, "doug777" <[hidden email]> wrote:

>From the example it's not clear to me how to use this with CF.
>
>Using following as an example, how would this translate into the new js
>tag.
>
><mx:RemoteObject id="roSendEmail" destination="ColdFusion"
>source="{relativePath}SendEmail">
> <mx:method name="sendmail" "
>fault="roFaultHandler(event)"/>
></mx:RemoteObject>
>
>var mailer:Object = {sendto:"[hidden email]", from:"me", subject:"New
>Info",
>html:1, message:message};
>this.roSendEmail.sendmail(mailer);
>
>Doug
>
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7C%7Cb6fc3233905442163aca08d
>4fb2abe8a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636409608385326241&
>sdata=d%2FywojZG5o25AQy1mZS9vd43%2FIIIZTkgXM0yuxYukxo%3D&reserved=0

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

doug777
Thanks Alex.

It was the first argument of the send function that I got wrong.

Doug



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

Alex Harui-2
Hi Doug,

So did the send call work with your data?  That's exciting to know!

Thanks,
-Alex

On 9/14/17, 6:48 PM, "doug777" <[hidden email]> wrote:

>Thanks Alex.
>
>It was the first argument of the send function that I got wrong.
>
>Doug
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7C%7Ce7fd66732c244e4944ac08d
>4fbdbd0f0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636410368901102494&
>sdata=D%2FL7Kz5hRgrd9aI5GyZhnqjnT423jp4F6WkZJD9vA6U%3D&reserved=0

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

doug777
Hi Alex,

I'm trying to work out how to get the path between the js-release folder and
CF. In Flash Builder you could set the build path so that the equivalent of
js-release gets built somewhere useful, but I can't find out how to do that
in Moonshine. You can't just copy the folder to the place where I need it to
be and run the html file I guess because there are lots of paths set up in
the files that are now all wrong.

I'll let you know as soon as I can work out how to access CF.

Doug



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

piotrz
Hi Doug,

I'm not sure what are you trying to do. Do you need add some resources to
output build? AFAIK there is an option to include resources in Moonshine's
settings.

Thanks,
Piotr

On Fri, Sep 15, 2017, 06:27 doug777 <[hidden email]> wrote:

> Hi Alex,
>
> I'm trying to work out how to get the path between the js-release folder
> and
> CF. In Flash Builder you could set the build path so that the equivalent of
> js-release gets built somewhere useful, but I can't find out how to do that
> in Moonshine. You can't just copy the folder to the place where I need it
> to
> be and run the html file I guess because there are lots of paths set up in
> the files that are now all wrong.
>
> I'll let you know as soon as I can work out how to access CF.
>
> Doug
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

doug777
This is my simple tester:

<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:js="library://ns.apache.org/flexjs/basic"
        xmlns:local="*"
        pageTitle="HelloWorld" xmlns:ns="library://ns.apache.org/flexjs/html5"
initialize="init()">
                           
        <fx:Declarations>
                <js:RemoteObject id="roSTime" destination="ColdFusion"
source="localhost:8500.mysite.STime"
result="roCheckTestResultHandler(event)" fault="roFaultHandler(event)"/>
               
        </fx:Declarations>
               
        <fx:Script>
               
        </fx:Script>
       
        <js:valuesImpl>
                <js:SimpleCSSValuesImpl />
        </js:valuesImpl>
       
        <js:initialView>
                <js:View width="1200" height="800">
                        <js:Container width="100%" height="100%" >
                                <js:Label id="lbl" text="Hello World" width="200" />
                        </js:Container>
                </js:View>
        </js:initialView>
       
 </js:Application>

When I Build and Run as Javascript, Hello World appears in the browser. But
there are several errors:

WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:104:
WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more
information.
:
: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:104:
WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more
information.

: SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/AccessorDefinition.js:12:
ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
provided yet
: goog.require('org.apache.flex.reflection.TypeDefinition');
: :
: SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/AccessorDefinition.js:13:
ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
not provided yet
: goog.require('org.apache.flex.reflection.VariableDefinition');
: :
: SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/MethodDefinition.js:14:
ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
provided yet
: goog.require('org.apache.flex.reflection.TypeDefinition');
:
: : SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/ParameterDefinition.js:13:
ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
provided yet
: goog.require('org.apache.flex.reflection.TypeDefinition');

: SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/TypeDefinition.js:15:
ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
not provided yet
: goog.require('org.apache.flex.reflection.VariableDefinition');

: SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/AccessorDefinition.js:12:
ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
provided yet
: goog.require('org.apache.flex.reflection.TypeDefinition');

: SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/AccessorDefinition.js:13:
ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
not provided yet
: goog.require('org.apache.flex.reflection.VariableDefinition');

: SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/MethodDefinition.js:14:
ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
provided yet
: goog.require('org.apache.flex.reflection.TypeDefinition');

: SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/ParameterDefinition.js:13:
ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
provided yet
: goog.require('org.apache.flex.reflection.TypeDefinition');

: SEVERE: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/TypeDefinition.js:15:
ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
not provided yet
: goog.require('org.apache.flex.reflection.VariableDefinition');

: WARNING: 5 error(s), 1 warning(s)
: Project Build Successfully
: The project 'Test' has been successfully compiled and optimized.

Im not sure I need to add CF as a resource and not sure how to do that
anyway. Surely it should find CF from its localhost path anyway?

Is there something missing from the Moonshine Build Options settings. Here
is the page :

<http://apache-flex-users.2333346.n4.nabble.com/file/t784/Build_Options.png>



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

piotrz
Doug,

Try to check in the settings where you are pointing path to the source
folder. I don't have capability to check in Moonshine your problem, cause
I'm travelling till the Sunday. If the question will be more urgent you can
try to specify it in our GIT repository as an issue [1].

[1] https://github.com/prominic/Moonshine-IDE/issues

Thanks,
Piotr


2017-09-15 8:30 GMT+02:00 doug777 <[hidden email]>:

> This is my simple tester:
>
> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>         xmlns:js="library://ns.apache.org/flexjs/basic"
>         xmlns:local="*"
>         pageTitle="HelloWorld" xmlns:ns="library://ns.apache.
> org/flexjs/html5"
> initialize="init()">
>
>         <fx:Declarations>
>                 <js:RemoteObject id="roSTime" destination="ColdFusion"
> source="localhost:8500.mysite.STime"
> result="roCheckTestResultHandler(event)"
> fault="roFaultHandler(event)"/>
>
>         </fx:Declarations>
>
>         <fx:Script>
>
>         </fx:Script>
>
>         <js:valuesImpl>
>                 <js:SimpleCSSValuesImpl />
>         </js:valuesImpl>
>
>         <js:initialView>
>                 <js:View width="1200" height="800">
>                         <js:Container width="100%" height="100%" >
>                                 <js:Label id="lbl" text="Hello World"
> width="200" />
>                         </js:Container>
>                 </js:View>
>         </js:initialView>
>
>  </js:Application>
>
> When I Build and Run as Javascript, Hello World appears in the browser. But
> there are several errors:
>
> WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:104:
> WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
> https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for
> more
> information.
> :
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:104:
> WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
> https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for
> more
> information.
>
> : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/AccessorDefinition.js:12:
> ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
> provided yet
> : goog.require('org.apache.flex.reflection.TypeDefinition');
> : :
> : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/AccessorDefinition.js:13:
> ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
> not provided yet
> : goog.require('org.apache.flex.reflection.VariableDefinition');
> : :
> : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/MethodDefinition.js:14:
> ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
> provided yet
> : goog.require('org.apache.flex.reflection.TypeDefinition');
> :
> : : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/
> ParameterDefinition.js:13:
> ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
> provided yet
> : goog.require('org.apache.flex.reflection.TypeDefinition');
>
> : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/TypeDefinition.js:15:
> ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
> not provided yet
> : goog.require('org.apache.flex.reflection.VariableDefinition');
>
> : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/AccessorDefinition.js:12:
> ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
> provided yet
> : goog.require('org.apache.flex.reflection.TypeDefinition');
>
> : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/AccessorDefinition.js:13:
> ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
> not provided yet
> : goog.require('org.apache.flex.reflection.VariableDefinition');
>
> : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/MethodDefinition.js:14:
> ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
> provided yet
> : goog.require('org.apache.flex.reflection.TypeDefinition');
>
> : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/
> ParameterDefinition.js:13:
> ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
> provided yet
> : goog.require('org.apache.flex.reflection.TypeDefinition');
>
> : SEVERE: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/TypeDefinition.js:15:
> ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
> not provided yet
> : goog.require('org.apache.flex.reflection.VariableDefinition');
>
> : WARNING: 5 error(s), 1 warning(s)
> : Project Build Successfully
> : The project 'Test' has been successfully compiled and optimized.
>
> Im not sure I need to add CF as a resource and not sure how to do that
> anyway. Surely it should find CF from its localhost path anyway?
>
> Is there something missing from the Moonshine Build Options settings. Here
> is the page :
>
> <http://apache-flex-users.2333346.n4.nabble.com/file/
> t784/Build_Options.png>
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>



--

Piotr Zarzycki

mobile: +48 880 859 557
skype: zarzycki10

LinkedIn: http://www.linkedin.com/piotrzarzycki
<https://pl.linkedin.com/in/piotr-zarzycki-92a53552>
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

Alex Harui-2
In reply to this post by doug777
Try adding the -remove-circulars compiler option.

HTH,
-Alex

On 9/14/17, 11:30 PM, "doug777" <[hidden email]> wrote:

>This is my simple tester:
>
><js:Application
>xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F
>ns.adobe.com%2Fmxml%2F2009&data=02%7C01%7C%7C855a3c62c8be4582d57708d4fc035
>0a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636410538543837063&sdata=
>UsQqkJJLAF4TSvGhac28RTugz4%2FghQPUcmc06tX%2FAMw%3D&reserved=0"
> xmlns:js="library://ns.apache.org/flexjs/basic"
> xmlns:local="*"
> pageTitle="HelloWorld" xmlns:ns="library://ns.apache.org/flexjs/html5"
>initialize="init()">
>  
> <fx:Declarations>
> <js:RemoteObject id="roSTime" destination="ColdFusion"
>source="localhost:8500.mysite.STime"
>result="roCheckTestResultHandler(event)" fault="roFaultHandler(event)"/>
>
> </fx:Declarations>
>
> <fx:Script>
>
> </fx:Script>
>
> <js:valuesImpl>
> <js:SimpleCSSValuesImpl />
> </js:valuesImpl>
>
> <js:initialView>
> <js:View width="1200" height="800">
> <js:Container width="100%" height="100%" >
> <js:Label id="lbl" text="Hello World" width="200" />
> </js:Container>
> </js:View>
> </js:initialView>
>
> </js:Application>
>
>When I Build and Run as Javascript, Hello World appears in the browser.
>But
>there are several errors:
>
>WARNING: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:104:
>WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co
>m%2Fgoogle%2Fclosure-compiler%2Fwiki%2FBad-Type-Annotation&data=02%7C01%7C
>%7C855a3c62c8be4582d57708d4fc0350a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0
>%7C0%7C636410538543837063&sdata=tiyjOFpq%2Fwu5hE9USxL7lqDSB05grrdGCOD0oB89
>cn0%3D&reserved=0 for more
>information.
>:
>: WARNING: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:104:
>WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co
>m%2Fgoogle%2Fclosure-compiler%2Fwiki%2FBad-Type-Annotation&data=02%7C01%7C
>%7C855a3c62c8be4582d57708d4fc0350a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0
>%7C0%7C636410538543837063&sdata=tiyjOFpq%2Fwu5hE9USxL7lqDSB05grrdGCOD0oB89
>cn0%3D&reserved=0 for more
>information.
>
>: SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/AccessorD
>efinition.js:12:
>ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
>provided yet
>: goog.require('org.apache.flex.reflection.TypeDefinition');
>: :
>: SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/AccessorD
>efinition.js:13:
>ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
>not provided yet
>: goog.require('org.apache.flex.reflection.VariableDefinition');
>: :
>: SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/MethodDef
>inition.js:14:
>ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
>provided yet
>: goog.require('org.apache.flex.reflection.TypeDefinition');
>:
>: : SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/Parameter
>Definition.js:13:
>ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
>provided yet
>: goog.require('org.apache.flex.reflection.TypeDefinition');
>
>: SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/TypeDefin
>ition.js:15:
>ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
>not provided yet
>: goog.require('org.apache.flex.reflection.VariableDefinition');
>
>: SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/AccessorD
>efinition.js:12:
>ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
>provided yet
>: goog.require('org.apache.flex.reflection.TypeDefinition');
>
>: SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/AccessorD
>efinition.js:13:
>ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
>not provided yet
>: goog.require('org.apache.flex.reflection.VariableDefinition');
>
>: SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/MethodDef
>inition.js:14:
>ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
>provided yet
>: goog.require('org.apache.flex.reflection.TypeDefinition');
>
>: SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/Parameter
>Definition.js:13:
>ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace not
>provided yet
>: goog.require('org.apache.flex.reflection.TypeDefinition');
>
>: SEVERE: C:/My
>Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/TypeDefin
>ition.js:15:
>ERROR - required "org.apache.flex.reflection.VariableDefinition" namespace
>not provided yet
>: goog.require('org.apache.flex.reflection.VariableDefinition');
>
>: WARNING: 5 error(s), 1 warning(s)
>: Project Build Successfully
>: The project 'Test' has been successfully compiled and optimized.
>
>Im not sure I need to add CF as a resource and not sure how to do that
>anyway. Surely it should find CF from its localhost path anyway?
>
>Is there something missing from the Moonshine Build Options settings. Here
>is the page :
>
><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl
>ex-users.2333346.n4.nabble.com%2Ffile%2Ft784%2FBuild_Options.png&data=02%7
>C01%7C%7C855a3c62c8be4582d57708d4fc0350a8%7Cfa7b1b5a7b34438794aed2c178dece
>e1%7C0%7C0%7C636410538543837063&sdata=Zy2xYvoHMQ2zUdjcN7DgtZv72kqcqcX2aZzV
>fSBTCVs%3D&reserved=0>
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7C%7C855a3c62c8be4582d57708d
>4fc0350a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636410538543837063&
>sdata=52dxY1gdUNTWEGg6Jz40uVoRr3fBasxlPjpP0o1FCuI%3D&reserved=0

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

piotrz
You have to add those option in "Additional compiler options" .

Thanks,
Piotr

2017-09-15 9:04 GMT+02:00 Alex Harui <[hidden email]>:

> Try adding the -remove-circulars compiler option.
>
> HTH,
> -Alex
>
> On 9/14/17, 11:30 PM, "doug777" <[hidden email]> wrote:
>
> >This is my simple tester:
> >
> ><js:Application
> >xmlns:fx="https://na01.safelinks.protection.outlook.
> com/?url=http%3A%2F%2F
> >ns.adobe.com%2Fmxml%2F2009&data=02%7C01%7C%7C855a3c62c8be4582d57708d4fc03
> 5
> >0a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C636410538543837063&sdata=
> >UsQqkJJLAF4TSvGhac28RTugz4%2FghQPUcmc06tX%2FAMw%3D&reserved=0"
> >       xmlns:js="library://ns.apache.org/flexjs/basic"
> >       xmlns:local="*"
> >       pageTitle="HelloWorld" xmlns:ns="library://ns.apache.
> org/flexjs/html5"
> >initialize="init()">
> >
> >       <fx:Declarations>
> >               <js:RemoteObject id="roSTime" destination="ColdFusion"
> >source="localhost:8500.mysite.STime"
> >result="roCheckTestResultHandler(event)"
>  fault="roFaultHandler(event)"/>
> >
> >       </fx:Declarations>
> >
> >       <fx:Script>
> >
> >       </fx:Script>
> >
> >       <js:valuesImpl>
> >               <js:SimpleCSSValuesImpl />
> >       </js:valuesImpl>
> >
> >       <js:initialView>
> >               <js:View width="1200" height="800">
> >                       <js:Container width="100%" height="100%" >
> >                               <js:Label id="lbl" text="Hello World"
> width="200" />
> >                       </js:Container>
> >               </js:View>
> >       </js:initialView>
> >
> > </js:Application>
> >
> >When I Build and Run as Javascript, Hello World appears in the browser.
> >But
> >there are several errors:
> >
> >WARNING: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:104:
> >WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
> >https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fgithub.co
> >m%2Fgoogle%2Fclosure-compiler%2Fwiki%2FBad-Type-
> Annotation&data=02%7C01%7C
> >%7C855a3c62c8be4582d57708d4fc0350a8%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0
> >%7C0%7C636410538543837063&sdata=tiyjOFpq%2Fwu5hE9USxL7lqDSB05grrdGCOD0o
> B89
> >cn0%3D&reserved=0 for more
> >information.
> >:
> >: WARNING: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:104:
> >WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
> >https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fgithub.co
> >m%2Fgoogle%2Fclosure-compiler%2Fwiki%2FBad-Type-
> Annotation&data=02%7C01%7C
> >%7C855a3c62c8be4582d57708d4fc0350a8%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0
> >%7C0%7C636410538543837063&sdata=tiyjOFpq%2Fwu5hE9USxL7lqDSB05grrdGCOD0o
> B89
> >cn0%3D&reserved=0 for more
> >information.
> >
> >: SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/AccessorD
> >efinition.js:12:
> >ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace
> not
> >provided yet
> >: goog.require('org.apache.flex.reflection.TypeDefinition');
> >: :
> >: SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/AccessorD
> >efinition.js:13:
> >ERROR - required "org.apache.flex.reflection.VariableDefinition"
> namespace
> >not provided yet
> >: goog.require('org.apache.flex.reflection.VariableDefinition');
> >: :
> >: SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/MethodDef
> >inition.js:14:
> >ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace
> not
> >provided yet
> >: goog.require('org.apache.flex.reflection.TypeDefinition');
> >:
> >: : SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/Parameter
> >Definition.js:13:
> >ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace
> not
> >provided yet
> >: goog.require('org.apache.flex.reflection.TypeDefinition');
> >
> >: SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/TypeDefin
> >ition.js:15:
> >ERROR - required "org.apache.flex.reflection.VariableDefinition"
> namespace
> >not provided yet
> >: goog.require('org.apache.flex.reflection.VariableDefinition');
> >
> >: SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/AccessorD
> >efinition.js:12:
> >ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace
> not
> >provided yet
> >: goog.require('org.apache.flex.reflection.TypeDefinition');
> >
> >: SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/AccessorD
> >efinition.js:13:
> >ERROR - required "org.apache.flex.reflection.VariableDefinition"
> namespace
> >not provided yet
> >: goog.require('org.apache.flex.reflection.VariableDefinition');
> >
> >: SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/MethodDef
> >inition.js:14:
> >ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace
> not
> >provided yet
> >: goog.require('org.apache.flex.reflection.TypeDefinition');
> >
> >: SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/Parameter
> >Definition.js:13:
> >ERROR - required "org.apache.flex.reflection.TypeDefinition" namespace
> not
> >provided yet
> >: goog.require('org.apache.flex.reflection.TypeDefinition');
> >
> >: SEVERE: C:/My
> >Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/TypeDefin
> >ition.js:15:
> >ERROR - required "org.apache.flex.reflection.VariableDefinition"
> namespace
> >not provided yet
> >: goog.require('org.apache.flex.reflection.VariableDefinition');
> >
> >: WARNING: 5 error(s), 1 warning(s)
> >: Project Build Successfully
> >: The project 'Test' has been successfully compiled and optimized.
> >
> >Im not sure I need to add CF as a resource and not sure how to do that
> >anyway. Surely it should find CF from its localhost path anyway?
> >
> >Is there something missing from the Moonshine Build Options settings. Here
> >is the page :
> >
> ><https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fapache-fl
> >ex-users.2333346.n4.nabble.com%2Ffile%2Ft784%2FBuild_
> Options.png&data=02%7
> >C01%7C%7C855a3c62c8be4582d57708d4fc0350a8%7Cfa7b1b5a7b34438794aed2c178de
> ce
> >e1%7C0%7C0%7C636410538543837063&sdata=Zy2xYvoHMQ2zUdjcN7DgtZv72kqcqc
> X2aZzV
> >fSBTCVs%3D&reserved=0>
> >
> >
> >
> >--
> >Sent from:
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fapache-fle
> >x-users.2333346.n4.nabble.com%2F&data=02%7C01%7C%
> 7C855a3c62c8be4582d57708d
> >4fc0350a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C636410538543837063&
> >sdata=52dxY1gdUNTWEGg6Jz40uVoRr3fBasxlPjpP0o1FCuI%3D&reserved=0
>
>


--

Piotr Zarzycki

mobile: +48 880 859 557
skype: zarzycki10

LinkedIn: http://www.linkedin.com/piotrzarzycki
<https://pl.linkedin.com/in/piotr-zarzycki-92a53552>
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

doug777
Adding that to Additional Compiler Options causes a whole heap of different
errors and warnings. And the Hello World page does not appear in the
browser.

These are the errors -

WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:93:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:  * @type {org.apache.flex.core.WrappedHTMLElement}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:93:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:  * @type {org.apache.flex.core.WrappedHTMLElement}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:280:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   * @type {org.apache.flex.core.WrappedHTMLElement} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/IRenderedObject.js:27:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
: /**  * @type {org.apache.flex.core.WrappedHTMLElement}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/IViewportModel.js:29:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
: /**  * @type {org.apache.flex.geom.Rectangle}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:575:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:  * @type {org.apache.flex.core.WrappedHTMLElement}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:867:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   var /** @type {org.apache.flex.core.WrappedHTMLElement} */ e =
document.body;

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:895:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   var /** @type {org.apache.flex.core.WrappedHTMLElement} */ p =
this.positioner.parentNode;

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:1008:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   * @type {org.apache.flex.core.WrappedHTMLElement} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:1025:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   * @type {org.apache.flex.core.WrappedHTMLElement} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:98:
WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more
information.
:  * @override

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/beads/models/ViewportModel.js:37:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
:  * @type {org.apache.flex.geom.Rectangle}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/beads/models/ViewportModel.js:44:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
:  * @type {org.apache.flex.geom.Rectangle}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/beads/models/ViewportModel.js:84:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
:   * @type {org.apache.flex.geom.Rectangle} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/beads/models/ViewportModel.js:90:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
:   * @type {org.apache.flex.geom.Rectangle} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/supportClasses/Viewport.js:93:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Size.
:  * @param {org.apache.flex.geom.Size} contentSize

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/net/remoting/amf/AMFBinaryData.js:1213:
WARNING - unreachable code
:   return null;

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/getClassByAlias.js:8:
WARNING - Parse error. duplicate @suppress tag
:  * @suppress {checkTypes|accessControls}

: WARNING: 0 error(s), 17 warning(s), 97.4% typed
: Sep 15, 2017 3:31:07 PM com.google.javascript.jscomp.LoggerErrorManager
println
: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:280:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   * @type {org.apache.flex.core.WrappedHTMLElement} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/IRenderedObject.js:27:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
: /**  * @type {org.apache.flex.core.WrappedHTMLElement}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/IViewportModel.js:29:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
: /**  * @type {org.apache.flex.geom.Rectangle}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:575:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:  * @type {org.apache.flex.core.WrappedHTMLElement}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:867:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   var /** @type {org.apache.flex.core.WrappedHTMLElement} */ e =
document.body;

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:895:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   var /** @type {org.apache.flex.core.WrappedHTMLElement} */ p =
this.positioner.parentNode;

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:1008:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   * @type {org.apache.flex.core.WrappedHTMLElement} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:1025:
WARNING - Type annotation references non-existent type
org.apache.flex.core.WrappedHTMLElement.
:   * @type {org.apache.flex.core.WrappedHTMLElement} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:98:
WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more
information.
:  * @override

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/beads/models/ViewportModel.js:37:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
:  * @type {org.apache.flex.geom.Rectangle}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/beads/models/ViewportModel.js:44:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
:  * @type {org.apache.flex.geom.Rectangle}

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/beads/models/ViewportModel.js:84:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
:   * @type {org.apache.flex.geom.Rectangle} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/beads/models/ViewportModel.js:90:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Rectangle.
:   * @type {org.apache.flex.geom.Rectangle} */

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/supportClasses/Viewport.js:93:
WARNING - Type annotation references non-existent type
org.apache.flex.geom.Size.
:  * @param {org.apache.flex.geom.Size} contentSize

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/net/remoting/amf/AMFBinaryData.js:1213:
WARNING - unreachable code
:   return null;

: WARNING: C:/My
Documents/Moonshine/Test/bin/js-debug/org/apache/flex/reflection/getClassByAlias.js:8:
WARNING - Parse error. duplicate @suppress tag
:  * @suppress {checkTypes|accessControls}
:                                        ^
: : WARNING: 0 error(s), 17 warning(s), 97.4% typed
: Project Build Successfully
: The project 'Test' has been successfully compiled and optimized.
: 13.920425195 seconds

Looks to me like there's something pretty fundamental wrong with the set up.

Doug



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

piotrz
Doug,

Actually most of those warnings are something which were already exists. No
harm with that.
 The question is do you have some error in web browser console ? Try to
make breakpoints there in "roFaultHandler" and refresh app.

Piotr

2017-09-15 9:50 GMT+02:00 doug777 <[hidden email]>:

> Adding that to Additional Compiler Options causes a whole heap of different
> errors and warnings. And the Hello World page does not appear in the
> browser.
>
> These are the errors -
>
> WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/
> HTMLElementWrapper.js:93:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :  * @type {org.apache.flex.core.WrappedHTMLElement}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/
> HTMLElementWrapper.js:93:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :  * @type {org.apache.flex.core.WrappedHTMLElement}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/
> HTMLElementWrapper.js:280:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   * @type {org.apache.flex.core.WrappedHTMLElement} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/
> IRenderedObject.js:27:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> : /**  * @type {org.apache.flex.core.WrappedHTMLElement}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/
> IViewportModel.js:29:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> : /**  * @type {org.apache.flex.geom.Rectangle}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:575:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :  * @type {org.apache.flex.core.WrappedHTMLElement}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:867:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   var /** @type {org.apache.flex.core.WrappedHTMLElement} */ e =
> document.body;
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:895:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   var /** @type {org.apache.flex.core.WrappedHTMLElement} */ p =
> this.positioner.parentNode;
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:1008:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   * @type {org.apache.flex.core.WrappedHTMLElement} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:1025:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   * @type {org.apache.flex.core.WrappedHTMLElement} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:98:
> WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
> https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for
> more
> information.
> :  * @override
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> beads/models/ViewportModel.js:37:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> :  * @type {org.apache.flex.geom.Rectangle}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> beads/models/ViewportModel.js:44:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> :  * @type {org.apache.flex.geom.Rectangle}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> beads/models/ViewportModel.js:84:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> :   * @type {org.apache.flex.geom.Rectangle} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> beads/models/ViewportModel.js:90:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> :   * @type {org.apache.flex.geom.Rectangle} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> supportClasses/Viewport.js:93:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Size.
> :  * @param {org.apache.flex.geom.Size} contentSize
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/net/
> remoting/amf/AMFBinaryData.js:1213:
> WARNING - unreachable code
> :   return null;
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/getClassByAlias.js:8:
> WARNING - Parse error. duplicate @suppress tag
> :  * @suppress {checkTypes|accessControls}
>
> : WARNING: 0 error(s), 17 warning(s), 97.4% typed
> : Sep 15, 2017 3:31:07 PM com.google.javascript.jscomp.LoggerErrorManager
> println
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/
> HTMLElementWrapper.js:280:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   * @type {org.apache.flex.core.WrappedHTMLElement} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/
> IRenderedObject.js:27:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> : /**  * @type {org.apache.flex.core.WrappedHTMLElement}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/
> IViewportModel.js:29:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> : /**  * @type {org.apache.flex.geom.Rectangle}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:575:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :  * @type {org.apache.flex.core.WrappedHTMLElement}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:867:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   var /** @type {org.apache.flex.core.WrappedHTMLElement} */ e =
> document.body;
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:895:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   var /** @type {org.apache.flex.core.WrappedHTMLElement} */ p =
> this.positioner.parentNode;
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:1008:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   * @type {org.apache.flex.core.WrappedHTMLElement} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/core/UIBase.js:1025:
> WARNING - Type annotation references non-existent type
> org.apache.flex.core.WrappedHTMLElement.
> :   * @type {org.apache.flex.core.WrappedHTMLElement} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/Alert.js:98:
> WARNING - Bad type annotation. extra @override/@inheritDoc tag. See
> https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for
> more
> information.
> :  * @override
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> beads/models/ViewportModel.js:37:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> :  * @type {org.apache.flex.geom.Rectangle}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> beads/models/ViewportModel.js:44:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> :  * @type {org.apache.flex.geom.Rectangle}
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> beads/models/ViewportModel.js:84:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> :   * @type {org.apache.flex.geom.Rectangle} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> beads/models/ViewportModel.js:90:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Rectangle.
> :   * @type {org.apache.flex.geom.Rectangle} */
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/html/
> supportClasses/Viewport.js:93:
> WARNING - Type annotation references non-existent type
> org.apache.flex.geom.Size.
> :  * @param {org.apache.flex.geom.Size} contentSize
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/net/
> remoting/amf/AMFBinaryData.js:1213:
> WARNING - unreachable code
> :   return null;
>
> : WARNING: C:/My
> Documents/Moonshine/Test/bin/js-debug/org/apache/flex/
> reflection/getClassByAlias.js:8:
> WARNING - Parse error. duplicate @suppress tag
> :  * @suppress {checkTypes|accessControls}
> :                                        ^
> : : WARNING: 0 error(s), 17 warning(s), 97.4% typed
> : Project Build Successfully
> : The project 'Test' has been successfully compiled and optimized.
> : 13.920425195 seconds
>
> Looks to me like there's something pretty fundamental wrong with the set
> up.
>
> Doug
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>



--

Piotr Zarzycki

mobile: +48 880 859 557
skype: zarzycki10

LinkedIn: http://www.linkedin.com/piotrzarzycki
<https://pl.linkedin.com/in/piotr-zarzycki-92a53552>
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

doug777
In the Firefox web console I see this :

destination fault handler Object { code: -1004, message: "Invalid response
type.", detail: "Invalid XMLHttpRequest response sta…", data: null }
Language.js:238:7

Doug



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

Harbs
You probably have minification renaming problems.

I have not tried RemoteObject, so it’s possible there are problems there, but...

Check if you have untyped objects and/or object literals.

For untyped objects, you should use myObj[“myProp”] rather than myObj.myProp.

For object literals you need to quote the object keys:

var myObj = {
        “name”:”Foo”,
        “age”:5
}
rather than:

var myObj = {
        name:”Foo”,
        age:5
}


HTH,
Harbs

> On Sep 15, 2017, at 11:28 AM, doug777 <[hidden email]> wrote:
>
> In the Firefox web console I see this :
>
> destination fault handler Object { code: -1004, message: "Invalid response
> type.", detail: "Invalid XMLHttpRequest response sta…", data: null }
> Language.js:238:7
>
> Doug
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

piotrz
Hi Harbs,

I just did quick look into RemoteObject class and I see that there is JS
library injected for AMF. If this is an outer script - can it be influenced
by renaming?

Thanks,
Piotr

On Fri, Sep 15, 2017, 13:59 Harbs <[hidden email]> wrote:

> You probably have minification renaming problems.
>
> I have not tried RemoteObject, so it’s possible there are problems there,
> but...
>
> Check if you have untyped objects and/or object literals.
>
> For untyped objects, you should use myObj[“myProp”] rather than
> myObj.myProp.
>
> For object literals you need to quote the object keys:
>
> var myObj = {
>         “name”:”Foo”,
>         “age”:5
> }
> rather than:
>
> var myObj = {
>         name:”Foo”,
>         age:5
> }
>
>
> HTH,
> Harbs
>
> > On Sep 15, 2017, at 11:28 AM, doug777 <[hidden email]> wrote:
> >
> > In the Firefox web console I see this :
> >
> > destination fault handler Object { code: -1004, message: "Invalid
> response
> > type.", detail: "Invalid XMLHttpRequest response sta…", data: null }
> > Language.js:238:7
> >
> > Doug
> >
> >
> >
> > --
> > Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>
>
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

Harbs
Yes. All references to the outer script properties must be by using bracket notation unless we have externs for that.

Harbs

> On Sep 15, 2017, at 5:52 PM, Piotr Zarzycki <[hidden email]> wrote:
>
> Hi Harbs,
>
> I just did quick look into RemoteObject class and I see that there is JS
> library injected for AMF. If this is an outer script - can it be influenced
> by renaming?
>
> Thanks,
> Piotr
>
> On Fri, Sep 15, 2017, 13:59 Harbs <[hidden email]> wrote:
>
>> You probably have minification renaming problems.
>>
>> I have not tried RemoteObject, so it’s possible there are problems there,
>> but...
>>
>> Check if you have untyped objects and/or object literals.
>>
>> For untyped objects, you should use myObj[“myProp”] rather than
>> myObj.myProp.
>>
>> For object literals you need to quote the object keys:
>>
>> var myObj = {
>>        “name”:”Foo”,
>>        “age”:5
>> }
>> rather than:
>>
>> var myObj = {
>>        name:”Foo”,
>>        age:5
>> }
>>
>>
>> HTH,
>> Harbs
>>
>>> On Sep 15, 2017, at 11:28 AM, doug777 <[hidden email]> wrote:
>>>
>>> In the Firefox web console I see this :
>>>
>>> destination fault handler Object { code: -1004, message: "Invalid
>> response
>>> type.", detail: "Invalid XMLHttpRequest response sta…", data: null }
>>> Language.js:238:7
>>>
>>> Doug
>>>
>>>
>>>
>>> --
>>> Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

Alex Harui-2
Actually, that <inject_html> shouldn't be there any more.  We have back
ported amfjs to ActionScript.

But it is true that passing regular objects probably won't survive
minification unless you use obj["propName"] or better yet, define a data
type class (ValueObject).

One way to see if it is minification related is to run the version in
bin/js-debug instead of bin/js-release.  If the js-debug version works
then you can be pretty sure it is minification related.

Otherwise, maybe we need to know more about the runtime environment.
Which OS and browser is being used, and things like that.

Thanks,
-Alex

On 9/15/17, 8:22 AM, "Harbs" <[hidden email]> wrote:

>Yes. All references to the outer script properties must be by using
>bracket notation unless we have externs for that.
>
>Harbs
>
>> On Sep 15, 2017, at 5:52 PM, Piotr Zarzycki <[hidden email]>
>>wrote:
>>
>> Hi Harbs,
>>
>> I just did quick look into RemoteObject class and I see that there is JS
>> library injected for AMF. If this is an outer script - can it be
>>influenced
>> by renaming?
>>
>> Thanks,
>> Piotr
>>
>> On Fri, Sep 15, 2017, 13:59 Harbs <[hidden email]> wrote:
>>
>>> You probably have minification renaming problems.
>>>
>>> I have not tried RemoteObject, so it’s possible there are problems
>>>there,
>>> but...
>>>
>>> Check if you have untyped objects and/or object literals.
>>>
>>> For untyped objects, you should use myObj[“myProp”] rather than
>>> myObj.myProp.
>>>
>>> For object literals you need to quote the object keys:
>>>
>>> var myObj = {
>>>        “name”:”Foo”,
>>>        “age”:5
>>> }
>>> rather than:
>>>
>>> var myObj = {
>>>        name:”Foo”,
>>>        age:5
>>> }
>>>
>>>
>>> HTH,
>>> Harbs
>>>
>>>> On Sep 15, 2017, at 11:28 AM, doug777 <[hidden email]> wrote:
>>>>
>>>> In the Firefox web console I see this :
>>>>
>>>> destination fault handler Object { code: -1004, message: "Invalid
>>> response
>>>> type.", detail: "Invalid XMLHttpRequest response sta…", data: null }
>>>> Language.js:238:7
>>>>
>>>> Doug
>>>>
>>>>
>>>>
>>>> --
>>>> Sent from:
>>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-
>>>>flex-users.2333346.n4.nabble.com%2F&data=02%7C01%7C%7Cd5f274df195447338
>>>>5ad08d4fc4da369%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6364108577
>>>>62696957&sdata=ZV4X7gVUIVh2R4Y8RAQiAcvARiat8h6p%2BVTcK4SQpIU%3D&reserve
>>>>d=0
>>>
>>>
>

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

Harbs
I was thinking about this, and I’m wondering how well minified typed classes will actually survive. Even if symbols are exported, the internal names are very often minified.

Has anyone tested that minified classes are actually serialized correctly?

Harbs

> On Sep 15, 2017, at 6:32 PM, Alex Harui <[hidden email]> wrote:
>
> Actually, that <inject_html> shouldn't be there any more.  We have back
> ported amfjs to ActionScript.
>
> But it is true that passing regular objects probably won't survive
> minification unless you use obj["propName"] or better yet, define a data
> type class (ValueObject).
>
> One way to see if it is minification related is to run the version in
> bin/js-debug instead of bin/js-release.  If the js-debug version works
> then you can be pretty sure it is minification related.
>
> Otherwise, maybe we need to know more about the runtime environment.
> Which OS and browser is being used, and things like that.
>
> Thanks,
> -Alex
>
> On 9/15/17, 8:22 AM, "Harbs" <[hidden email] <mailto:[hidden email]>> wrote:
>
>> Yes. All references to the outer script properties must be by using
>> bracket notation unless we have externs for that.
>>
>> Harbs
>>
>>> On Sep 15, 2017, at 5:52 PM, Piotr Zarzycki <[hidden email]>
>>> wrote:
>>>
>>> Hi Harbs,
>>>
>>> I just did quick look into RemoteObject class and I see that there is JS
>>> library injected for AMF. If this is an outer script - can it be
>>> influenced
>>> by renaming?
>>>
>>> Thanks,
>>> Piotr
>>>
>>> On Fri, Sep 15, 2017, 13:59 Harbs <[hidden email]> wrote:
>>>
>>>> You probably have minification renaming problems.
>>>>
>>>> I have not tried RemoteObject, so it’s possible there are problems
>>>> there,
>>>> but...
>>>>
>>>> Check if you have untyped objects and/or object literals.
>>>>
>>>> For untyped objects, you should use myObj[“myProp”] rather than
>>>> myObj.myProp.
>>>>
>>>> For object literals you need to quote the object keys:
>>>>
>>>> var myObj = {
>>>>       “name”:”Foo”,
>>>>       “age”:5
>>>> }
>>>> rather than:
>>>>
>>>> var myObj = {
>>>>       name:”Foo”,
>>>>       age:5
>>>> }
>>>>
>>>>
>>>> HTH,
>>>> Harbs
>>>>
>>>>> On Sep 15, 2017, at 11:28 AM, doug777 <[hidden email]> wrote:
>>>>>
>>>>> In the Firefox web console I see this :
>>>>>
>>>>> destination fault handler Object { code: -1004, message: "Invalid
>>>> response
>>>>> type.", detail: "Invalid XMLHttpRequest response sta…", data: null }
>>>>> Language.js:238:7
>>>>>
>>>>> Doug
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sent from:
>>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache- <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache->
>>>>> flex-users.2333346.n4.nabble.com <http://flex-users.2333346.n4.nabble.com/>%2F&data=02%7C01%7C%7Cd5f274df195447338
>>>>> 5ad08d4fc4da369%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6364108577
>>>>> 62696957&sdata=ZV4X7gVUIVh2R4Y8RAQiAcvARiat8h6p%2BVTcK4SQpIU%3D&reserve
>>>>> d=0

Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

doug777
Unfortunately on rebooting the computer and opening Moonshine, I now get an
error if I try any of the Build options: Invalid SDK - Please configure a
Flex SDK instead.

The sdk is obviously okay, the mouse-over pop-ups appear correctly and so do
the suggestion lists as you type in the Test.mxml file.

I've tried removing the sdk then saving and then changing back to nightly
build. All works as expected but the build options all return the fault no
matter what the situation is with the sdk.

Project>Clean doesn't seem to do anything - you have to close the IDE and
re-open to get the new sdk setting to take effect.

The build.xml file contains the line  <echo>SDK : ${FLEX_HOME}</echo>

Where are these path variables defined in Win10 64-bit?

Doug



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: FlexJS RemoteObject with ColdFusion

piotrz
Hi Doug,

There are two places where you setup SDK.
1) Right click on the opened project and if I correct remember MXMLC
Compiler Plugin
2) Choose from menu File and Settings - that would be main settings and set
there sdk

Once you set in both places try to build. I don't have access to PC right
now.

FLEX_HOME is an environment variable but it shouldn't be bother by that
cause Moonshine tace care of that.

Let me know whether setup in both places help.

Piotr

On Sun, Sep 17, 2017, 06:24 doug777 <[hidden email]> wrote:

> Unfortunately on rebooting the computer and opening Moonshine, I now get an
> error if I try any of the Build options: Invalid SDK - Please configure a
> Flex SDK instead.
>
> The sdk is obviously okay, the mouse-over pop-ups appear correctly and so
> do
> the suggestion lists as you type in the Test.mxml file.
>
> I've tried removing the sdk then saving and then changing back to nightly
> build. All works as expected but the build options all return the fault no
> matter what the situation is with the sdk.
>
> Project>Clean doesn't seem to do anything - you have to close the IDE and
> re-open to get the new sdk setting to take effect.
>
> The build.xml file contains the line  <echo>SDK : ${FLEX_HOME}</echo>
>
> Where are these path variables defined in Win10 64-bit?
>
> Doug
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>
12