[OpenLayers-Users] Update: Interesting Firebug exception report

Greg Ederer greg at ergonosis.com
Thu Oct 23 00:02:38 EDT 2008


It is curious.  I'll try to carve out some time to figure this out.

Cheers,

Greg

Eric Lemoine wrote:
> This is an interesting one. Please keep the list informed on what
> you'll find out. Thanks. Eric
>
> 2008/10/23, Greg Ederer <greg at ergonosis.com>:
>   
>> Hi Zac,
>>
>> Try removing OpenLayers.Event.stop(evt) at the end of your event handler
>> method body.  This seems to have fixed the problem (though, I have no idea
>> why).  I may go digging into the sources to figure it out.  Please let me
>> know if this works for you.
>>
>> Anyone have a clue?
>>
>> Cheers,
>>
>> Greg
>>
>> Zac Spitzer wrote:
>>     
>>> I am also seeing exactly the same problem, first click error,
>>> subsequent ones work
>>>
>>> On Thu, Oct 23, 2008 at 11:26 AM, Greg Ederer <greg at ergonosis.com> wrote:
>>>
>>>       
>>>> Here's line 224 expanded:
>>>>
>>>> var factory=null;
>>>> if(typeof GearsFactory!='undefined')
>>>> {
>>>>   factory=new GearsFactory();
>>>> }
>>>> else
>>>> {
>>>>   try
>>>>   {
>>>>     factory=new ActiveXObject('Gears.Factory');
>>>>     if(factory.getBuildInfo().indexOf('ie_mobile')!=-1)
>>>>     {
>>>>       factory.privateSetGlobalObject(this);
>>>>     }
>>>>   }
>>>>   catch(e)
>>>>   {
>>>>     if((typeof
>>>> navigator.mimeTypes!='undefined')&&navigator.mimeTypes["application/x-googlegears"]){
>>>>       factory=document.createElement("object");
>>>>       factory.style.display="none";
>>>>       factory.width=0;
>>>>       factory.height=0;
>>>>       factory.type="application/x-googlegears";
>>>>       document.documentElement.appendChild(factory);
>>>>     }
>>>>   }
>>>> }
>>>>
>>>> I'm not using Gears.  Not sure what's causing this.
>>>>
>>>> Greg
>>>>
>>>> Greg Ederer wrote:
>>>>
>>>> The exception is traceable to OpenLayers.js (2.7) line 224:
>>>>
>>>> var factory=null;if(typeof GearsFactory!='undefined'){factory=new
>>>> GearsFactory();}else{try{factory=new
>>>> ActiveXObject('Gears.Factory');if(factory.getBuildInfo().indexOf('ie_mobile')!=-1){factory.privateSetGlobalObject(this);}}catch(e){if((typeof
>>>> navigator.mimeTypes!='undefined')&&navigator.mimeTypes["application/x-googlegears"]){factory=document.createElement("object");factory.style.display="none";factory.width=0;factory.height=0;factory.type="application/x-googlegears";document.documentElement.appendChild(factory);}}}
>>>>
>>>> Any ideas?
>>>>
>>>> Cheers,
>>>>
>>>> Greg
>>>>
>>>> Greg Ederer wrote:
>>>>
>>>> Huh.  I fixed the URL, and I still get the exception on the first click.
>>>>
>>>> Greg Ederer wrote:
>>>>
>>>> I solved this.  Bad wms URL.
>>>>
>>>> Cheers,
>>>>
>>>> Greg
>>>>
>>>>
>>>> Greg Ederer wrote:
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I got the following exception:
>>>>
>>>> uncaught exception: [Exception... "Illegal operation on WrappedNative
>>>> prototype object"  nsresult: "0x8057000c
>>>> (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)"  location: "JS frame ::
>>>> http://localhost:8080/EWX/scripts/OpenLayers-2.7/OpenLayers.js ::
>>>> anonymous :: line 440"  data: no]
>>>> http://localhost:8080/EWX/scripts/OpenLayers-2.7/OpenLayers.js
>>>> Line 224
>>>>
>>>> when executing the following code:
>>>>
>>>> OpenLayers.loadURL(this.map.parentFrame.wmsUrl, params, this,
>>>> this.launchTimeSeries, this.launchTimeSeries);
>>>>
>>>> I only get the exception the first few times this method is called
>>>> (within an OpenLayers.Control.Click click handler).
>>>> this.launchTimeSeries does get called even when I get the exception.
>>>>
>>>> Any thoughts?
>>>>
>>>> Cheers,
>>>>
>>>> Greg
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> | E R G O N O S I S
>>>> | Greg Ederer
>>>> | Lead Developer
>>>> | greg at ergonosis.com
>>>> | 360.774.6848
>>>> |
>>>>
>>>> ________________________________
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at openlayers.org
>>>> http://openlayers.org/mailman/listinfo/users
>>>>
>>>>
>>>> --
>>>> | E R G O N O S I S
>>>> | Greg Ederer
>>>> | Lead Developer
>>>> | greg at ergonosis.com
>>>> | 360.774.6848
>>>> |
>>>>
>>>> ________________________________
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at openlayers.org
>>>> http://openlayers.org/mailman/listinfo/users
>>>>
>>>>
>>>> --
>>>> | E R G O N O S I S
>>>> | Greg Ederer
>>>> | Lead Developer
>>>> | greg at ergonosis.com
>>>> | 360.774.6848
>>>> |
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at openlayers.org
>>>> http://openlayers.org/mailman/listinfo/users
>>>>
>>>>
>>>>
>>>>         
>>>
>>>       
>>
>> --
>> | E R G O N O S I S
>> | Greg Ederer
>> | Lead Developer
>> | greg at ergonosis.com
>> | 360.774.6848
>> |
>>     


-- 
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg at ergonosis.com
| 360.774.6848
|




More information about the Users mailing list