Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
"exclude":[
"qx.test.*",
"qx.dev.*",
"qx.bom.Vml",
"${APPLICATION}.test.*",
"${APPLICATION}.simulation.*"
],
31.07.2012, в 13:30, Daniel Wagner написал(а):
> All right, the problem is caused by your include list, specifically this
> entry:
>
> "qx.*"
>
> This causes all qx class code to be loaded and evaluated *before* the
> DOM is ready. Several qx classes have "defer" functions that are called
> as soon as the class is defined, and some of them, including qx.bom.Vml,
> will try to add elements to the DOM, causing the exception you're seeing.
>
> So the question is, why are you including the entire framework in your
> "build" job? You really should leave it up to the Generator to sort out
> your dependencies, and use #require hints for the rare cases where it
> can't recognize a dependency.
>
> On 07/31/2012 10:33 AM, totty wrote:
>> *All the code is here:*
>> https://github.com/totty90/production01_server/tree/master/node_modules/production/client/production
>>
>> *Now without any optimization the error persists and the line is this:*
>> ,getVml:function(){var
>> bv=document.createElement(b);document.body.appendChild(bv);bv.innerHTML=D;bv.firstChild.style.behavior=bl;var
>> bw=typeof bv.firstChild.adj==s;document.body.removeChild(bv);return bw;}
>>
>> *Error:*
>> Uncaught TypeError: Cannot call method 'appendChild' of null
>> production.js:3294
>>
>> *Configuration:*
>> ,"build" :
>> {
>> "include": [
>> "${APPLICATION}.*",
>> "qx.*"
>> ]
>> ,"exclude": [
>> "qx.test.*",
>> "${APPLICATION}.test.*",
>> "${APPLICATION}.simulation.*"
>> ]
>> ,"compile-options": {
>> "code" :{
>> "format": true
>> ,"optimize": []
>> }
>> }
>> }
>>
>>
>> Yes, it seems to be the getVml:
>>
>> But how I do what you said?
>>
In a widget context, this sort of problem is usually solved by wrapping
the code that calls appendChild in an "appear" listener to make sure it
>> i>>isn't executed until the widget's DOM elements are created.
>>
>>
>>
>> --
>> View this message in context:
>> http://qooxdoo.678.n2.nabble.com/Application-doesn-t-work-when-I-build-I-can-t-figure-out-what-is-the-problem-tp7580829p7580838.html
>> Sent from the qooxdoo mailing list archive at Nabble.com.
>>
>> --
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> ___
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
YES, MY PROBLEM!! Thanks for finding it out! Now it's fixed -- View this message in context: http://qooxdoo.678.n2.nabble.com/Application-doesn-t-work-when-I-build-I-can-t-figure-out-what-is-the-problem-tp7580829p7580841.html Sent from the qooxdoo mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
All right, the problem is caused by your include list, specifically this
entry:
"qx.*"
This causes all qx class code to be loaded and evaluated *before* the
DOM is ready. Several qx classes have "defer" functions that are called
as soon as the class is defined, and some of them, including qx.bom.Vml,
will try to add elements to the DOM, causing the exception you're seeing.
So the question is, why are you including the entire framework in your
"build" job? You really should leave it up to the Generator to sort out
your dependencies, and use #require hints for the rare cases where it
can't recognize a dependency.
On 07/31/2012 10:33 AM, totty wrote:
> *All the code is here:*
> https://github.com/totty90/production01_server/tree/master/node_modules/production/client/production
>
> *Now without any optimization the error persists and the line is this:*
> ,getVml:function(){var
> bv=document.createElement(b);document.body.appendChild(bv);bv.innerHTML=D;bv.firstChild.style.behavior=bl;var
> bw=typeof bv.firstChild.adj==s;document.body.removeChild(bv);return bw;}
>
> *Error:*
> Uncaught TypeError: Cannot call method 'appendChild' of null
> production.js:3294
>
> *Configuration:*
> ,"build" :
> {
>"include": [
> "${APPLICATION}.*",
> "qx.*"
> ]
> ,"exclude": [
> "qx.test.*",
> "${APPLICATION}.test.*",
> "${APPLICATION}.simulation.*"
> ]
> ,"compile-options": {
> "code" :{
>"format": true
> ,"optimize": []
> }
> }
> }
>
>
> Yes, it seems to be the getVml:
>
> But how I do what you said?
>
>>> In a widget context, this sort of problem is usually solved by wrapping
>>> the code that calls appendChild in an "appear" listener to make sure it
> i>>isn't executed until the widget's DOM elements are created.
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Application-doesn-t-work-when-I-build-I-can-t-figure-out-what-is-the-problem-tp7580829p7580838.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
*All the code is here:*
https://github.com/totty90/production01_server/tree/master/node_modules/production/client/production
*Now without any optimization the error persists and the line is this:*
,getVml:function(){var
bv=document.createElement(b);document.body.appendChild(bv);bv.innerHTML=D;bv.firstChild.style.behavior=bl;var
bw=typeof bv.firstChild.adj==s;document.body.removeChild(bv);return bw;}
*Error:*
Uncaught TypeError: Cannot call method 'appendChild' of null
production.js:3294
*Configuration:*
,"build" :
{
"include": [
"${APPLICATION}.*",
"qx.*"
]
,"exclude": [
"qx.test.*",
"${APPLICATION}.test.*",
"${APPLICATION}.simulation.*"
]
,"compile-options": {
"code" :{
"format": true
,"optimize": []
}
}
}
Yes, it seems to be the getVml:
But how I do what you said?
>>In a widget context, this sort of problem is usually solved by wrapping
>>the code that calls appendChild in an "appear" listener to make sure it
i>>isn't executed until the widget's DOM elements are created.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Application-doesn-t-work-when-I-build-I-can-t-figure-out-what-is-the-problem-tp7580829p7580838.html
Sent from the qooxdoo mailing list archive at Nabble.com.
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
Hi, On 07/30/2012 06:30 PM, totty wrote: > *The error thrown is:* > Uncaught TypeError: Cannot call method 'appendChild' of null > production.js:203 > qx.Bootstrap.define.statics.getVml production.js:203 What does getVml do? The error message is caused by trying to append a DOM element to a parent that doesn't exist. It's possible that this is a timing issue that isn't apparent in the source version because it takes longer to load so the parent element is created before getVml does its thing. In a widget context, this sort of problem is usually solved by wrapping the code that calls appendChild in an "appear" listener to make sure it isn't executed until the widget's DOM elements are created. Regards, Daniel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
Then try to experiment with the optimizations, to see if this changes
something. Add the key
build-script/compile-options/code : {
format : true,
=optimize : []
}
to your config.json, and then add step-by-step the optimizations to the
"optimize" array (s. the list of possible values [1]), to see if it works
without optimizations and with which optimization it might break.
T.
[1]
http://manual.qooxdoo.org/2.0.x/pages/tool/generator_config_ref.html#compile-options
> when I run the generate.pt with the hybrid source it works all right, no
> error and the app is perfectly running.
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Application-doesn-t-work-when-I-build-I-can-t-figure-out-what-is-the-problem-tp7580829p7580833.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
when I run the generate.pt with the hybrid source it works all right, no error and the app is perfectly running. -- View this message in context: http://qooxdoo.678.n2.nabble.com/Application-doesn-t-work-when-I-build-I-can-t-figure-out-what-is-the-problem-tp7580829p7580833.html Sent from the qooxdoo mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
So what is happening in the source version? > It's a very very long line with code. This is the generated code by > qooxdoo > and is not supposed to be changed. > > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/Application-doesn-t-work-when-I-build-I-can-t-figure-out-what-is-the-problem-tp7580829p7580831.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > -- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > ___ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
It's a very very long line with code. This is the generated code by qooxdoo and is not supposed to be changed. -- View this message in context: http://qooxdoo.678.n2.nabble.com/Application-doesn-t-work-when-I-build-I-can-t-figure-out-what-is-the-problem-tp7580829p7580831.html Sent from the qooxdoo mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] Application doesn't work when I build. I can't figure out what is the problem
I think the problem is in your application at "production.js" on line 203.
Greetz Christopher
Am 30.07.2012 um 18:30 schrieb totty:
> *The error thrown is:*
> Uncaught TypeError: Cannot call method 'appendChild' of null
> production.js:203
> qx.Bootstrap.define.statics.getVml production.js:203
> qx.Bootstrap.define.statics.get production.js:203
> qx.Class.define.defer production.js:203
> qx.Bootstrap.define.statics.define production.js:203
> b production.js:203
> (anonymous function) production.js:203
>
>
>
> *My custom jobs:*
> "jobs" :
> {
>"source-hybrid" :
>{
> "include" :
> [
>"${APPLICATION}.*",
>"qx.*"
> ],
> "exclude" :
> [
>"qx.test.*",
>"${APPLICATION}.test.*",
>"${APPLICATION}.simulation.*"
> ]
>}
>,"build" :
>{
> "include" :
> [
>"${APPLICATION}.*",
>"qx.*"
> ]
> , "exclude" :
> [
>"qx.test.*",
>"${APPLICATION}.test.*",
>"${APPLICATION}.simulation.*"
> ]
>}
>
>
> *let (I don't really know what is it, but it might be important):*
> "let" :
> {
> "APPLICATION" : "production",
> "QOOXDOO_PATH" :
> "../../../../../about_projects/third_party/qooxdoo/qooxdoo-2.0-sdk",
> "QXTHEME" : "production.theme.Theme",
> "API_INCLUDE" : ["${APPLICATION}.*"],
> // "API_EXCLUDE" : ["qx.test.*", "${APPLICATION}.theme.*",
> "${APPLICATION}.test.*", "${APPLICATION}.simulation.*"],
> "LOCALES" : [ "en" ],
> "CACHE": "/qxcache/qx${QOOXDOO_VERSION}/",
> "ROOT" : "."
> },
>
> Any help, is appreciated ;)
> thanks
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Application-doesn-t-work-when-I-build-I-can-t-figure-out-what-is-the-problem-tp7580829.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
