On Thu, Apr 18, 2013 at 10:14 AM, Tobias Koller (GERMO GmbH)
<t...@germo.de>wrote:
> No i can’t see any error in my source-version…but I will check first if
> I access private members outside the classes..
>
Another way you can sometimes figure this out, is to add the following to
the "let" section of your config.json:
// "OPTIMIZE" : [ "basecalls", "comments", "privates", "strings",
"variables", "variants", "whitespace" ],
"OPTIMIZE" : [ "basecalls", "comments", "privates", "strings",
"variables", "variants" ],
The first, commented-out line, is the complete set of optimizations. If you
remove only whitespace optimization, as shown in the non-commented line,
you'll still get the error you're seeing, but the code will not be crammed
onto a single line, so looking at the code, you can often figure out where
the error is coming from, and what variable it's actually trying to work
with. You can also then set breakpoints in the code, and look at the stack
backtrace.
Derrell
> ****
>
> ** **
>
> ** **
>
> *Von:* thron7 [mailto:thomas.herchenroe...@1und1.de]
> *Gesendet:* Donnerstag, 18. April 2013 16:07
> *An:* qooxdoo Development
> *Betreff:* Re: [qooxdoo-devel] TypeError: bp is null****
>
> ** **
>
> This code is from qx.event.Manager. As you can clearly see you should have
> gotten a corresponding error message in the source version.
>
> T.****
>
> On 04/18/2013 03:55 PM, Tobias Koller (GERMO GmbH) wrote:****
>
> I deactivated the optimization via OPTIMIZE: [] because bp is nonsense ;)*
> ***
>
> ****
>
> And got this output now:****
>
> The error is in this line:****
>
> var targetKey = target.$$hash ||
> qx.core.ObjectRegistry.toHashCode(target);****
>
> ****
>
> ****
>
> TypeError: target is null****
>
> ****
>
> ****
>
> //hier die Ausgabe****
>
> addListener : function(target, type, listener, self, capture)****
>
> {****
>
> if (qx.core.Environment.get("qx.debug"))****
>
> {****
>
> var msg = "Failed to add event listener for type '"+ type +"'" +**
> **
>
> " to the target '" + target.classname + "': ";****
>
> ****
>
> qx.core.Assert.assertObject(target, msg + "Invalid Target.");****
>
> qx.core.Assert.assertString(type, msg + "Invalid event type.");***
> *
>
> qx.core.Assert.assertFunction(listener, msg + "Invalid callback
> function");****
>
> ****
>
> if (capture !== undefined) {****
>
> qx.core.Assert.assertBoolean(capture, "Invalid capture flag.");*
> ***
>
> }****
>
> }****
>
> ****
>
> var targetKey = target.$$hash ||
> qx.core.ObjectRegistry.toHashCode(target);****
>
> var targetMap = this.__listeners[targetKey];****
>
> ****
>
> if (!targetMap) {****
>
> targetMap = this.__listeners[targetKey] = {};****
>
> }****
>
> ****
>
> var entryKey = type + (capture ? "|capture" : "|bubble");****
>
> var entryList = targetMap[entryKey];****
>
> ****
>
> if (!entryList) {****
>
> entryList = targetMap[entryKey] = [];****
>
> }****
>
> ****
>
> // This is the first event listener for this type and target****
>
> // Inform the event handler about the new event****
>
> // they perform the event registration at DOM level if needed****
>
> if (entryList.length === 0) {****
>
> this.__registerAtHandler(target, type, capture);****
>
> }****
>
> ****
>
> // Append listener to list****
>
> var unique = (qx.event.Manager.__lastUnique++) + "";****
>
> var entry =****
>
> {****
>
> handler : listener,****
>
> context : self,****
>
> unique : unique****
>
> };****
>
> ****
>
> entryList.push(entry);****
>
> ****
>
> return entryKey + "|" + unique;****
>
> },****
>
> ****
>
> ****
>
> ****
>
> ****
>
> Mit freundlichen Grüßen
> GERMO GmbH****
>
> ****
>
> Tobias Koller
> Softwareentwickler****
>
> ****
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> GERMO GmbH
> Wettbachstraße 18
> 71063 Sindelfingen****
>
> ****
>
> http://www.germo.de****
>
> ****
>
> Tel. 07031 9522-144
> Fax 07031 9522-222****
>
> ****
>
> Geschäftsführer: Theo Röder, Andreas Röder
> Hauptsitz: Hofackerstr. 60, 73660 Urbach
> Handelsregister: Amtsgericht Stuttgart, HRB-Nr.: 280255, Ust.-IdNr.
> DE146624394
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ****
>
> ****
>
> *Von:* Tobias Koller (GERMO GmbH) [mailto:t...@germo.de <t...@germo.de>]
> *Gesendet:* Donnerstag, 18. April 2013 15:37
> *An:* qooxdoo-devel@lists.sourceforge.net
> *Betreff:* [qooxdoo-devel] TypeError: bp is null****
>
> ****
>
> Hi,****
>
> ****
>
> I have a problem with the build-version of my application.****
>
> My source-Version works without problems.****
>
> ****
>
> But when I create the build-version (generate.py build)****
>
> I get this error when I open the application in any browser:****
>
> ****
>
> TypeError: bp is null****
>
> ****
>
> Can you help me with this?****
>
> ****
>
> Qx: 2.1.1****
>
> ****
>
> Thanks****
>
> tobi****
>
> ****
>
> ****
>
> ****
>
>
>
>
> ****
>
> ------------------------------------------------------------------------------****
>
> Precog is a next-generation analytics platform capable of advanced****
>
> analytics on semi-structured data. The platform includes APIs for building****
>
> apps and a phenomenal toolset for data science. Developers can use****
>
> our toolset for easy data analysis & visualization. Get a free account!****
>
> http://www2.precog.com/precogplatform/slashdotnewsletter****
>
>
>
>
> ****
>
> _______________________________________________****
>
> qooxdoo-devel mailing list****
>
> qooxdoo-devel@lists.sourceforge.net****
>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel****
>
> ** **
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel