<font size=2 face="sans-serif">Some staring on maporaclespatial.c:</font>
<br><font size=2 face="sans-serif">---------------------</font>
<br><font size=2 face="sans-serif">There are two global static variables
in maporaclestapital: </font>
<br><font size=2 face="sans-serif">static OCIType &nbsp;*ordinates_tdo
= NULL;</font>
<br><font size=2 face="sans-serif">static OCIArray *ordinates;</font>
<br>
<br><font size=2 face="sans-serif">But as far as I understood mapserver-code
should be threadsave.</font>
<br><font size=2 face="sans-serif">---------------------</font>
<br><font size=2 face="sans-serif">In line 2011 ordinates is allocated
with OCIObjectNew.</font>
<br><font size=2 face="sans-serif">There's now corresponding OCIObjectFree.</font>
<br><font size=2 face="sans-serif">Similar problem on allocation of ordinates_tdo?</font>
<br>
<br><font size=2 face="sans-serif">---------------------</font>
<br><font size=2 face="sans-serif">Actually I don't think, that this solves
my current problem...</font>
<br>
<br><font size=2 face="sans-serif">Benedikt</font>
<br>
<br><tt><font size=2>Jim Klassen &lt;klassen.js@gmail.com&gt; schrieb am
26.05.2010 16:38:00:<br>
<br>
&gt; Jim Klassen &lt;klassen.js@gmail.com&gt; </font></tt>
<br><tt><font size=2>&gt; 26.05.2010 16:46</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; An</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; &quot;umn-ms@hydrotec.de&quot; &lt;umn-ms@hydrotec.de&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Kopie</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; &quot;mapserver-users@lists.osgeo.org&quot; &lt;mapserver-users@lists.osgeo.org&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Thema</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Re: [mapserver-users] Re: msOracleSpatialLayerWhichShapes(): <br>
&gt; OracleSpatial error</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; One thing that I find particularly strange about these errors <br>
&gt; (ORA-0600) is that when you look them up they say &quot;internal error
- <br>
&gt; call Oracle&quot;. So while MapServer is probably doing something
<br>
&gt; strange, the database is still failing in an unexpected way. I would<br>
&gt; expect it to return something from the OCI library or a more <br>
&gt; specific db error like invalid handle or invalid statement or <br>
&gt; something similar.</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Jim K<br>
</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; <br>
&gt; On May 26, 2010, at 6:22 AM, umn-ms@hydrotec.de wrote:<br>
</font></tt>
<br><tt><font size=2>&gt; Hi <br>
&gt; <br>
&gt; I'm facing similar/also strange problems. <br>
&gt; <br>
&gt; I use <br>
&gt; * mapserver 5.6.3, <br>
&gt; * Linux-Redhat &nbsp;(Version ?) <br>
&gt; * 64-Bit <br>
&gt; * Oracle 11g on the DB-client <br>
&gt; * Sun-Java 1.6 <br>
&gt; <br>
&gt; When creating some maps with a selection I get: <br>
&gt; java.lang.UnknownError: msOracleSpatialLayerWhichShapes(): <br>
&gt; OracleSpatial error. Error: ORA-00600: Interner Fehlercode, <br>
&gt; Argumente: [kokeaai5], [18], [2], [], [], [], [], [], [], [], [],
[] <br>
&gt; &nbsp;. Query statement: SELECT GEWAESSER_ID, NAME, GEWAESSER_ID,
<br>
&gt; DARSTELLUNGSSTUFE, shape FROM (select WWI.GEWAESSER.NAME, <br>
&gt; WWI.GEWAESSER.SHAPE, <br>
&gt; WWI.GEWAESSER.GEWAESSER_ID,WWI.GEWAESSER.DARSTELLUNGSSTUFE FROM <br>
&gt; WWI.GEWAESSER) WHERE SDO_FILTER( shape, MDSYS.SDO_GEOMETRY(2003, <br>
&gt; :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates <br>
&gt; ),'querytype=window') = 'TRUE' . Check your data statement. <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at edu.umn.gis.mapscript.mapscriptJNI.layerObj_queryByRect<br>
&gt; (Native Method) <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at edu.umn.gis.mapscript.layerObj.queryByRect(layerObj.java:513)
<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at de.hydrotec.ims.umn.MapMetaInfoImpl.configureSelection<br>
&gt; (MapMetaInfoImpl.java:216) <br>
&gt; <br>
&gt; * Problem occurs in most cases after making three selections <br>
&gt; * Problem occurs on a 11g and a 10g databaseserver. <br>
&gt; * What's *really* strange: A record in the queried table GEWAESSER
<br>
&gt; is corrupted! <br>
&gt; &nbsp; &nbsp;Even though the mapserver-user has no UPDATE-GRANTS.
<br>
&gt; * No problems with mapserver 5.4.2. (This is my fallback for the <br>
&gt; current project...) <br>
&gt; <br>
&gt; Sorry for not being more specific. <br>
&gt; But it's not easy to describe this strange behaviour. Never found
<br>
&gt; something like this. <br>
&gt; <br>
&gt; I saw, that maporaclespatial in the SVN-trunk has some important fixes.
<br>
&gt; <br>
&gt; Question: <br>
&gt; * Can I use the most current maporaclespatial from the trunk? Will
<br>
&gt; it be compatible with the rest of <br>
&gt; &nbsp; &nbsp;mapserver5.6.3? <br>
&gt; * Is there any hope, that this may help? <br>
&gt; <br>
&gt; Benedikt <br>
&gt; <br>
&gt; mapserver-users-bounces@lists.osgeo.org schrieb am 26.05.2010 00:00:48:<br>
&gt; <br>
&gt; &gt; Agostino &lt;acsviluppo@yahoo.it&gt; <br>
&gt; &gt; Gesendet von: mapserver-users-bounces@lists.osgeo.org<br>
&gt; &gt; <br>
&gt; &gt; 26.05.2010 00:01 <br>
&gt; &gt; <br>
&gt; &gt; An <br>
&gt; &gt; <br>
&gt; &gt; mapserver-users@lists.osgeo.org <br>
&gt; &gt; <br>
&gt; &gt; Kopie <br>
&gt; &gt; <br>
&gt; &gt; Thema <br>
&gt; &gt; <br>
&gt; &gt; [mapserver-users] Re: msOracleSpatialLayerWhichShapes(): OracleSpatial
error<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Thank you Tamas. <br>
&gt; &gt; I think that the new 5.6 functions does not work properly with
oracle<br>
&gt; &gt; spatial. <br>
&gt; &gt; Also with the last build from </font></tt><a href=http://vbkto.dyndns.org/sdk/><tt><font size=2>http://vbkto.dyndns.org/sdk/</font></tt></a><tt><font size=2>
i have error.<br>
&gt; &gt; <br>
&gt; &gt; The following code works:<br>
&gt; &gt; layerObj lo = map.getLayer(i);<br>
&gt; &gt; ...<br>
&gt; &gt; res = lo.queryByAttributes(map, null, strQuery.ToString(),<br>
&gt; &gt; mapscript.MS_MULTIPLE);<br>
&gt; &gt; ...<br>
&gt; &gt; resultCacheObj results = lo.getResults();<br>
&gt; &gt; int numres = results.numresults;<br>
&gt; &gt; for (int j = 0; j &lt; numres; j++)<br>
&gt; &gt; {<br>
&gt; &gt; &nbsp; &nbsp; int shapeInd = results.getResult(j).shapeindex;<br>
&gt; &gt; &nbsp; &nbsp; shapeObj shp = lo.getFeature(shapeInd, -1);<br>
&gt; &gt; &nbsp; &nbsp; layerObj loSel = GetSelectionLayer(map, lo.type);<br>
&gt; &gt; &nbsp; &nbsp; shp.draw(map, loSel, img);<br>
&gt; &gt; }<br>
&gt; &gt; <br>
&gt; &gt; but if i write this using new functions:<br>
&gt; &gt; <br>
&gt; &gt; layerObj lo = map.getLayer(i);<br>
&gt; &gt; ...<br>
&gt; &gt; res = lo.queryByAttributes(map, null, strQuery.ToString(),<br>
&gt; &gt; mapscript.MS_MULTIPLE);<br>
&gt; &gt; ...<br>
&gt; &gt; int numres = lo.getNumResults();<br>
&gt; &gt; for (int j = 0; j &lt; numres; j++)<br>
&gt; &gt; {<br>
&gt; &gt; &nbsp; &nbsp; resultCacheMemberObj reso = lo.getResult(j);<br>
&gt; &gt; &nbsp; &nbsp; shapeObj shp = new shapeObj((int)lo.type);<br>
&gt; &gt; &nbsp; &nbsp; lo.resultsGetShape(shp, reso.shapeindex, reso.tileindex);<br>
&gt; &gt; &nbsp; &nbsp; layerObj loSel = GetSelectionLayer(map, lo.type);<br>
&gt; &gt; &nbsp; &nbsp; shp.draw(map, loSel, img);<br>
&gt; &gt; }<br>
&gt; &gt; <br>
&gt; &gt; i have the exception <br>
&gt; &gt; msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error:
ORA-00600: <br>
&gt; &gt; codice di errore interno, argomenti: [17182], [0x2581CE802],
[], <br>
&gt; [], [], [], <br>
&gt; &gt; [], [] <br>
&gt; &gt; after call drawmap().<br>
&gt; &gt; <br>
&gt; &gt; Agostino.<br>
&gt; &gt; -- <br>
&gt; &gt; View this message in context: </font></tt><a href="http://osgeo-org/"><tt><font size=2>http://osgeo-org</font></tt></a><tt><font size=2>.<br>
&gt; &gt; 1803224.n2.nabble.com/msOracleSpatialLayerWhichShapes-OracleSpatial-<br>
&gt; &gt; error-tp5048929p5100718.html<br>
&gt; &gt; Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; mapserver-users mailing list<br>
&gt; &gt; mapserver-users@lists.osgeo.org<br>
&gt; &gt; </font></tt><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"><tt><font size=2>http://lists.osgeo.org/mailman/listinfo/mapserver-users</font></tt></a>
<br><tt><font size=2>&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; mapserver-users@lists.osgeo.org<br>
&gt; </font></tt><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"><tt><font size=2>http://lists.osgeo.org/mailman/listinfo/mapserver-users</font></tt></a>