do java-mapscript tests work?
Miroslav Šulc
miroslav.sulc at STARTNET.CZ
Thu Jan 18 13:47:10 PST 2007
Hi,
I have problems running java mapscript tests. Am I doing something wrong
or the tests do not work? Here is the output:
$ make test
javac -classpath ./:examples/:./mapscript.jar -d examples/
examples/ConnPool.java examples/DrawMap.java examples/DumpShp.java
examples/MakePoint.java examples/QueryByAttribute.java
examples/ShapeInfo.java examples/WxSTest.java examples/Metadata.java
examples/RunTimeBuiltWMSClient.java
javac -encoding iso-8859-15 -classpath ./:examples/:./mapscript.jar -d
examples/ examples/QueryByAttributeUnicode.java
java -classpath ./:examples/:./mapscript.jar -Djava.library.path=.
DumpShp ../../tests/point.shp
Shapefile opened (type = point with 1 shapes).
Shape[0] has 1 part(s)
bounds (0.0,51.477222)(0.0,51.477222)
Part[0] has 1 point(s)
Point[0] = 0.0, 51.477222
java -classpath ./:examples/:./mapscript.jar -Djava.library.path=.
ShapeInfo ../../tests/point.shp ../../tests/point.dbf
Shapefile name = ../../tests/point.shp
Type = point
Number of features 1
bounds (0.0,51.477222)(0.0,51.477222)
java -classpath ./:examples/:./mapscript.jar -Djava.library.path=.
DrawMap ../../tests/test.map ./map.png
0) the map will be drawn to:./map.png
java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. ConnPool
Running mapscript.msConnPoolCloseUnreferenced
Finished.
java -classpath ./:examples/:./mapscript.jar -Djava.library.path=.
QueryByAttribute ../../tests/test.map
Searched for: A Point
Results number (should be always 1): 1
java -classpath ./:examples/:./mapscript.jar -Djava.library.path=.
WxSTest ../../tests/test.map
fatal flex scanner internal error--end of buffer missed
Exception in thread "Thread-98" java.lang.UnknownError: msLoadMap():
at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method)
at edu.umn.gis.mapscript.mapObj.<init>(mapObj.java:276)
at WxSTest_thread.run(WxSTest.java:11)
Exception in thread "Thread-99" make: *** [test] Error 2
$ make threadtests
javac -cp ./mapscript.jar -d tests/threadtest/ tests/threadtest/*.java
-------------------------------------------------------------------------
You can use your own map! Copy the following command in your shell
and change the file to the map file (the last argument)
-------------------------------------------------------------------------
java -Djava.library.path=./ -cp tests/threadtest/:./mapscript.jar
MapTest -t 10 -i 5 ../../tests/test.map
Thread 0 running...
Thread 1 running...
Thread 2 running...
Thread 3 running...
Thread 4 running...
Thread 5 running...
Thread 6 running...
Thread 7 running...
Thread 8 running...
Thread 9 running...
fatal flex scanner internal error--end of buffer missed
Exception in thread "Thread-2" java.lang.UnknownError: getString():
Symbol definition error. Duplicate item (FONTSET):(line 10)
make: *** [threadtests] Error 2
--
Miroslav Šulc
More information about the MapServer-users
mailing list