Possible bug in ArcSDE 10.1 Java API

765
4
05-26-2013 08:31 PM
by Anonymous User
Not applicable
Original User: gtaylor

It looks like the SeQuery calculateLayerExtent method is broken in the ArcSDE 10.1 Java API.

The same code using the 10.0 or 9.3.x versions of the Java .jar files opperated correctly, but when switching to the 10.1 libraries the following exception is thrown when calling the calculateLayerExtent method:

java.lang.ClassCastException: com.esri.sde.sdk.client.SeEnvelope cannot be cast to com.esri.sde.sdk.client.SeExtent
at com.esri.sde.sdk.client.SeQuery.calculateLayerExtent(Unknown Source)
at test.arcsde.QueryThread.performTest(QueryThread.java:35)
at test.arcsde.TestThread.run(TestThread.java:52)


Some code that produces the error is:

     SeSqlConstruct sqlCons = new SeSqlConstruct();
     sqlCons.setTables(new String[] { layer });

     SeQueryInfo queryInfo = new SeQueryInfo();
     queryInfo.setColumns(new String[] { column });
     queryInfo.setConstruct(sqlCons);

     SeQuery query = new SeQuery(connection);

     Object extent = query.calculateLayerExtent(queryInfo); // throws exception

Has the way the API is supposed to be used changed in a way that I'm unaware of or has this been broken?

Thanks.
0 Kudos
4 Replies
VinceAngelo
Esri Esteemed Contributor
Welcome to the Esri User Forums!  Unfortunately, you really want to send this note to
Tech Support.  You should first be sure that the issue isn't fixed at 10.1 SP1, then check
again with 10.2.0 (very soon).  It's a bit tedious, but the work-around is to whip up your
own envelope-calculating extractor function.

- V
0 Kudos
by Anonymous User
Not applicable
Original User: gtaylor

You should first be sure that the issue isn't fixed at 10.1 SP1, then check again with 10.2.0 (very soon).


I should have said, it was SP1 I tested, plus I haven't seen any hotfixes listed for this problem.

It's a bit tedious, but the work-around is to whip up your own envelope-calculating extractor function.


Thanks for the idea, I like it better than our current work-around of advising our clients not to upgrade to 10.1 (you can imagine how well that one works).

Unfortunately, you really want to send this note to Tech Support.


Unfortunately as a EDN subscriber that doesn't look like it's an option for me. For some reason I can't find any way to submit bug reports.

Thanks
0 Kudos
RichardWatson
Frequent Contributor
Unfortunately as a EDN subscriber that doesn't look like it's an option for me. For some reason I can't find any way to submit bug reports.


http://www.esri.com/software/arcgis/edn/what-you-get

"As an EDN subscriber, you have the option to add technical support to your EDN subscription. This support option gives you with a block of 10 technical support calls for any product included with EDN within the subscription period."

http://www.esri.com/software/arcgis/edn/pricing
0 Kudos
by Anonymous User
Not applicable
Original User: gtaylor

http://www.esri.com/software/arcgis/edn/what-you-get

"As an EDN subscriber, you have the option to add technical support to your EDN subscription. This support option gives you with a block of 10 technical support calls for any product included with EDN within the subscription period."

http://www.esri.com/software/arcgis/edn/pricing


Hey,

I'm a little lost with the links you've provided, are you saying that because EDN doesn't include any way to report bugs in the software that if I do find any then I should be paying ESRI to report them?

It's not as though I'm asking for technical support here, I'm pointing out an obvious bug in the software. I couldn't find anything via EDN for reporting the bug (which to me would seem an obvious thing to include in a "Developer Network") so I though checking in the forum may be a way forward, but if paying for 10 support calls to report a bug is my only option then I guess I'll give it a miss.

Thanks
0 Kudos