error compiling http service example

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

error compiling http service example

choirul anam
I am trying to compile HTTP Service example :

https://royale.apache.org/loading-external-data-through-httpservice/
<https://royale.apache.org/loading-external-data-through-httpservice/>  

I just copy paste from there.  
SDK : apache-royale-0.9.6
IDE : Moonshine 1.16.0 Bundle  906

Console log:

Compiling http
: SDK path: D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale Compiler codebase:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale SDK:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: MXMLJSC
:
-sdk-js-lib=D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\Royale\generated-sources
: -load-config+=obj/httpConfig.xml
: -compiler.targets=JSRoyale
: -js-output=D:\xampp\htdocs\royale\http
: 3.767368409 seconds
: D:\xampp\htdocs\royale\http\src\http.mxml(7): col: 5 Error: This tag is
unexpected. It will be ignored.
:
:     <fx:Script>
:     ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(31): col: 38 Error: Call to a
possibly undefined method dataReadyHandler.
:
:                            dataReady="dataReadyHandler(event)"/>
:                                      ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(52): col: 92 Error: Call to a
possibly undefined method getGithubContent.
:
:                 <j:Button text="Retrieve source code from Github"
emphasis="primary" click="getGithubContent(event)"/>


http.zip <http://apache-royale-users.20374.n8.nabble.com/file/t62/http.zip>  

Am i miss something?
Please help

Regards,
Anam





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: error compiling http service example

Carlos Rovira-2
Hi Choirul,

I create this example with Maven and can confirm is building ok (test right now).
Maybe the problem could be you're using ANT or Moonshine to build? I never tried to build those.
Let us know so other could update the example, or even you can try to fix the build.xml (ANT) or the moonshine config and submit a pull request

thanks!

Carlos


El lun., 25 mar. 2019 a las 8:58, choirul anam (<[hidden email]>) escribió:
I am trying to compile HTTP Service example :

https://royale.apache.org/loading-external-data-through-httpservice/
<https://royale.apache.org/loading-external-data-through-httpservice/

I just copy paste from there. 
SDK : apache-royale-0.9.6
IDE : Moonshine 1.16.0 Bundle  906

Console log:

Compiling http
: SDK path: D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale Compiler codebase:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale SDK:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: MXMLJSC
:
-sdk-js-lib=D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\Royale\generated-sources
: -load-config+=obj/httpConfig.xml
: -compiler.targets=JSRoyale
: -js-output=D:\xampp\htdocs\royale\http
: 3.767368409 seconds
: D:\xampp\htdocs\royale\http\src\http.mxml(7): col: 5 Error: This tag is
unexpected. It will be ignored.
:
:     <fx:Script>
:     ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(31): col: 38 Error: Call to a
possibly undefined method dataReadyHandler.
:
:                            dataReady="dataReadyHandler(event)"/>
:                                      ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(52): col: 92 Error: Call to a
possibly undefined method getGithubContent.
:
:                 <j:Button text="Retrieve source code from Github"
emphasis="primary" click="getGithubContent(event)"/>


http.zip <http://apache-royale-users.20374.n8.nabble.com/file/t62/http.zip

Am i miss something?
Please help

Regards,
Anam





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--
Reply | Threaded
Open this post in threaded view
|

Re: error compiling http service example

Piotr Zarzycki
Hi Choirul,

Can you share with us full project which you have setup in Moonshine. Do not attach it here, but rather upload it somewhere if you can and I will look into that. I doubt this is something which is caused by Moonshine. Probably it's the matter of configuration.

Use latest version of Moonshine - it's been released today. 

Thanks,
Piotr


pon., 25 mar 2019 o 15:48 Carlos Rovira <[hidden email]> napisał(a):
Hi Choirul,

I create this example with Maven and can confirm is building ok (test right now).
Maybe the problem could be you're using ANT or Moonshine to build? I never tried to build those.
Let us know so other could update the example, or even you can try to fix the build.xml (ANT) or the moonshine config and submit a pull request

thanks!

Carlos


El lun., 25 mar. 2019 a las 8:58, choirul anam (<[hidden email]>) escribió:
I am trying to compile HTTP Service example :

https://royale.apache.org/loading-external-data-through-httpservice/
<https://royale.apache.org/loading-external-data-through-httpservice/

I just copy paste from there. 
SDK : apache-royale-0.9.6
IDE : Moonshine 1.16.0 Bundle  906

Console log:

Compiling http
: SDK path: D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale Compiler codebase:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale SDK:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: MXMLJSC
:
-sdk-js-lib=D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\Royale\generated-sources
: -load-config+=obj/httpConfig.xml
: -compiler.targets=JSRoyale
: -js-output=D:\xampp\htdocs\royale\http
: 3.767368409 seconds
: D:\xampp\htdocs\royale\http\src\http.mxml(7): col: 5 Error: This tag is
unexpected. It will be ignored.
:
:     <fx:Script>
:     ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(31): col: 38 Error: Call to a
possibly undefined method dataReadyHandler.
:
:                            dataReady="dataReadyHandler(event)"/>
:                                      ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(52): col: 92 Error: Call to a
possibly undefined method getGithubContent.
:
:                 <j:Button text="Retrieve source code from Github"
emphasis="primary" click="getGithubContent(event)"/>


http.zip <http://apache-royale-users.20374.n8.nabble.com/file/t62/http.zip

Am i miss something?
Please help

Regards,
Anam





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: error compiling http service example

Carlos Rovira-2
Hi Piotr, 
the project is this:


I think most of people use to have problems with ANT or Moonshine since I only create MAVEN setup and the other files are copied from other projects and although I try to put right names, are not tested, so if they try to build vía ANT or Moonshine they find a broken build


El lun., 25 mar. 2019 a las 15:54, Piotr Zarzycki (<[hidden email]>) escribió:
Hi Choirul,

Can you share with us full project which you have setup in Moonshine. Do not attach it here, but rather upload it somewhere if you can and I will look into that. I doubt this is something which is caused by Moonshine. Probably it's the matter of configuration.

Use latest version of Moonshine - it's been released today. 

Thanks,
Piotr


pon., 25 mar 2019 o 15:48 Carlos Rovira <[hidden email]> napisał(a):
Hi Choirul,

I create this example with Maven and can confirm is building ok (test right now).
Maybe the problem could be you're using ANT or Moonshine to build? I never tried to build those.
Let us know so other could update the example, or even you can try to fix the build.xml (ANT) or the moonshine config and submit a pull request

thanks!

Carlos


El lun., 25 mar. 2019 a las 8:58, choirul anam (<[hidden email]>) escribió:
I am trying to compile HTTP Service example :

https://royale.apache.org/loading-external-data-through-httpservice/
<https://royale.apache.org/loading-external-data-through-httpservice/

I just copy paste from there. 
SDK : apache-royale-0.9.6
IDE : Moonshine 1.16.0 Bundle  906

Console log:

Compiling http
: SDK path: D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale Compiler codebase:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale SDK:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: MXMLJSC
:
-sdk-js-lib=D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\Royale\generated-sources
: -load-config+=obj/httpConfig.xml
: -compiler.targets=JSRoyale
: -js-output=D:\xampp\htdocs\royale\http
: 3.767368409 seconds
: D:\xampp\htdocs\royale\http\src\http.mxml(7): col: 5 Error: This tag is
unexpected. It will be ignored.
:
:     <fx:Script>
:     ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(31): col: 38 Error: Call to a
possibly undefined method dataReadyHandler.
:
:                            dataReady="dataReadyHandler(event)"/>
:                                      ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(52): col: 92 Error: Call to a
possibly undefined method getGithubContent.
:
:                 <j:Button text="Retrieve source code from Github"
emphasis="primary" click="getGithubContent(event)"/>


http.zip <http://apache-royale-users.20374.n8.nabble.com/file/t62/http.zip

Am i miss something?
Please help

Regards,
Anam





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--
Reply | Threaded
Open this post in threaded view
|

Re: error compiling http service example

Piotr Zarzycki
Choirul,

Try newest release of Moonshine. I was able to build and run that project without the problem with Nightly Build [1]. Let me know what's the results.


Thanks,
Piotr

pon., 25 mar 2019 o 19:49 Carlos Rovira <[hidden email]> napisał(a):
Hi Piotr, 
the project is this:


I think most of people use to have problems with ANT or Moonshine since I only create MAVEN setup and the other files are copied from other projects and although I try to put right names, are not tested, so if they try to build vía ANT or Moonshine they find a broken build


El lun., 25 mar. 2019 a las 15:54, Piotr Zarzycki (<[hidden email]>) escribió:
Hi Choirul,

Can you share with us full project which you have setup in Moonshine. Do not attach it here, but rather upload it somewhere if you can and I will look into that. I doubt this is something which is caused by Moonshine. Probably it's the matter of configuration.

Use latest version of Moonshine - it's been released today. 

Thanks,
Piotr


pon., 25 mar 2019 o 15:48 Carlos Rovira <[hidden email]> napisał(a):
Hi Choirul,

I create this example with Maven and can confirm is building ok (test right now).
Maybe the problem could be you're using ANT or Moonshine to build? I never tried to build those.
Let us know so other could update the example, or even you can try to fix the build.xml (ANT) or the moonshine config and submit a pull request

thanks!

Carlos


El lun., 25 mar. 2019 a las 8:58, choirul anam (<[hidden email]>) escribió:
I am trying to compile HTTP Service example :

https://royale.apache.org/loading-external-data-through-httpservice/
<https://royale.apache.org/loading-external-data-through-httpservice/

I just copy paste from there. 
SDK : apache-royale-0.9.6
IDE : Moonshine 1.16.0 Bundle  906

Console log:

Compiling http
: SDK path: D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale Compiler codebase:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: Using Royale SDK:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
: MXMLJSC
:
-sdk-js-lib=D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\Royale\generated-sources
: -load-config+=obj/httpConfig.xml
: -compiler.targets=JSRoyale
: -js-output=D:\xampp\htdocs\royale\http
: 3.767368409 seconds
: D:\xampp\htdocs\royale\http\src\http.mxml(7): col: 5 Error: This tag is
unexpected. It will be ignored.
:
:     <fx:Script>
:     ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(31): col: 38 Error: Call to a
possibly undefined method dataReadyHandler.
:
:                            dataReady="dataReadyHandler(event)"/>
:                                      ^
:
: D:\xampp\htdocs\royale\http\src\http.mxml(52): col: 92 Error: Call to a
possibly undefined method getGithubContent.
:
:                 <j:Button text="Retrieve source code from Github"
emphasis="primary" click="getGithubContent(event)"/>


http.zip <http://apache-royale-users.20374.n8.nabble.com/file/t62/http.zip

Am i miss something?
Please help

Regards,
Anam





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: error compiling http service example

choirul anam
Piotr,  i already use latest Moonshine IDE 2.0, and use the latest night
build of royale.
In moonshine IDE when i build and run javascript still error:


: Compiling http
: Using Royale Compiler codebase:
"D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs"
: Using Royale SDK:
"D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs"
: MXMLJSC
:
-sdk-js-lib=D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\Royale\generated-sources
: -load-config+=obj/httpConfig.xml
: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
: -html-template=src/main/resources/jewel-example-index-template.html
: -js-dynamic-access-unknown-members=true
: -compiler.targets=JSRoyale
: -js-output=D:\xampp\htdocs\royale\http
: D:\xampp\htdocs\royale\http\src\http.mxml(6): col: 2 Error: This tag is
unexpected. It will be ignored.
:
: <fx:Script>
: ^
:
: 3.769952296 seconds

Using moonshine, when i build with apache maven, an error occure:


: Starting Maven build...
: Maven path: D:\apache-maven-3.6.0
: Maven build directory: D:\xampp\htdocs\royale\http
: Command: D:\apache-maven-3.6.0\bin\mvn.cmd clean install
: [INFO] Scanning for projects...
: [INFO]
------------------------------------------------------------------------
: [INFO] BUILD FAILURE
: [INFO]
------------------------------------------------------------------------
: [INFO] Total time:  0.089 s
: [INFO] Finished at: 2019-03-26T11:02:29+07:00
: [INFO]
------------------------------------------------------------------------
: [ERROR] The goal you specified requires a project to execute but there is
no POM in this directory (D:\xampp\htdocs\royale\http). Please verify you
invoked Maven from the correct directory. -> [Help 1]
: [ERROR]
: [ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
: [ERROR]
: [ERROR] For more information about the errors and possible solutions,
please read the following articles:
: [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
: Maven build has been terminated with exit code: 1


I host my code on github :

https://github.com/ichsananam/royale_http/

Regards,
Choirul



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: error compiling http service example

Piotr Zarzycki
Hi Choirul,

I looked into your project and as I expected you have had problems with configuration, so there is absolutely nothing wrong with Moonshine. I have changed your project to follow examples which we have in repository [1]. Look into them to learn how project should be structured. 

First of all when you go to the project Settings -> Build Options -> Additional compiler options you have three option:

1) This one will load theme - this worked in your example -> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css 
2) This one load default template which you didn't have in your project -html-template=src/main/resources/jewel-example-index-template.html 

Your error, was caused wrong namespace in your mxml file for fx:script, so I corrected it. Try to build project again -> link to zip [2]


unexpected. It will be ignored.

:     <fx:Script>  




Thanks,
Piotr


wt., 26 mar 2019 o 05:04 choirul anam <[hidden email]> napisał(a):
Piotr,  i already use latest Moonshine IDE 2.0, and use the latest night
build of royale.
In moonshine IDE when i build and run javascript still error:


: Compiling http
: Using Royale Compiler codebase:
"D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs"
: Using Royale SDK:
"D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs"
: MXMLJSC
:
-sdk-js-lib=D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\Royale\generated-sources
: -load-config+=obj/httpConfig.xml
: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
: -html-template=src/main/resources/jewel-example-index-template.html
: -js-dynamic-access-unknown-members=true
: -compiler.targets=JSRoyale
: -js-output=D:\xampp\htdocs\royale\http
: D:\xampp\htdocs\royale\http\src\http.mxml(6): col: 2 Error: This tag is
unexpected. It will be ignored.
:
:       <fx:Script>
:       ^
:
: 3.769952296 seconds

Using moonshine, when i build with apache maven, an error occure:


: Starting Maven build...
: Maven path: D:\apache-maven-3.6.0
: Maven build directory: D:\xampp\htdocs\royale\http
: Command: D:\apache-maven-3.6.0\bin\mvn.cmd clean install
: [INFO] Scanning for projects...
: [INFO]
------------------------------------------------------------------------
: [INFO] BUILD FAILURE
: [INFO]
------------------------------------------------------------------------
: [INFO] Total time:  0.089 s
: [INFO] Finished at: 2019-03-26T11:02:29+07:00
: [INFO]
------------------------------------------------------------------------
: [ERROR] The goal you specified requires a project to execute but there is
no POM in this directory (D:\xampp\htdocs\royale\http). Please verify you
invoked Maven from the correct directory. -> [Help 1]
: [ERROR]
: [ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
: [ERROR]
: [ERROR] For more information about the errors and possible solutions,
please read the following articles:
: [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
: Maven build has been terminated with exit code: 1


I host my code on github :

https://github.com/ichsananam/royale_http/

Regards,
Choirul



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki