Roman,
It is going to be difficult for us to help you, as building an application
from OpenJUMP is quite a technical undertaking. I've read over the stack
traces from the exceptions you posted. I'll try to help by offering some
suggestions of things you can look at based on the information you've given
us.
It appears your first exception comes from trying to iterate over a Vector,
which is a collection of Java objects. Apparently the Vector doesn't include
the object your trying to access. It looks like this exception is being
thrown when you try to show the GUI for the InfoFrame class popped open by
the FeatureInfoTool. It also seems that the problem might be with the
geometry of the feature you are trying to inspect, as the error is also from
the GeometryInfoTab.
Take a closer look at the FeatureInfoTool and GeometryInfoTab classes. I'm
guessing that the GeometryInfoTab class is calling a method that requests
the geometry of a Feature object. Your program expects that geometry or the
Feature object itself to be in a collection, and its not finding it there.
(Is there a feature selected in your program when you try to use the
FeatureInfoTool?)
You also wrote: "Once the attribute frame is open for a layer.
An error occurs when I try to query a layer's
attributes by Selecting the check box to display the
results."
I'm a little confused about what you are trying to do here. Can you give me
some more details? Does your error result directly from interaction with the
GUI, or from actions you initiate programmatically?
I'm also curious what type of application you are building from the "parts"
of OpenJUMP. Could you tell us more about that?
Thanks,
The Sunburned Surveyor
On 4/28/07, Roman Isitua <[EMAIL PROTECTED]> wrote:
Hello Guys,
I am a beginner learning how to use OpenJUMP as a
framework. I appreciate the great work you guys are
doing.
Here are my problems:
1 In building my own Application based on JUMP 1.2.
the FeatureInfoTool does not work.
Each time I use it, get the following error
java.util.NoSuchElementException: Vector
Enumeration
at java.util.Vector$1.nextElement(Vector.java:308)
at
com.vividsolutions.jump.workbench.ui.GeometryInfoTab.<init>(
GeometryInfoTab.java:116)
at
com.vividsolutions.jump.workbench.ui.InfoFrame.<init>(InfoFrame.java:75)
but the FeatureInfoTool works in the original JUMP
program. I believe there must be something i am
missing out.
I will be very grateful if my problems
can be solved.
2. Once the attribute frame is open for a layer.
An error occurs when I try to query a layer's
attributes by Selecting the check box to display the
results. The errors I get is similar to this:
Exception in thread "Thread-6"
java.lang.ClassCastException:
com.vividsolutions.jump.workbench.ui.plugin.ViewAttributesPlugIn$ViewAttributesFrame
cannot be cast to
com.vividsolutions.jump.workbench.ui.TaskFrame
at
org.openjump.core.ui.plugin.queries.QueryDialog$2.run(QueryDialog.java
:840)
at java.lang.Thread.run(Thread.java:619)
Yours faithfully
Roman
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel