vylan / javaapiforkml Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/javaapiforkml
Automatically exported from code.google.com/p/javaapiforkml
I run JAK on this kmz: http://radarmaster.vlieghinder.nl/kmz/ehamtail0.kmz
There is one big image used for multiple icons.
KML reference states that there may be gx:x, gx:y, gx:w, gx:h elements inside
<Icon>
For example
<Icon>
<href>/home/mydir/myiconpalette.jpg</href>
<gx:w>138</gx:w>
<gx:h>138</gx:h>
<!-- Since x and y values are omitted, these measurements are made starting at
the lower-left corner of the icon palette image -->
</Icon>
I don't get expected values.
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 2:10
What steps will reproduce the problem?
1. Unmarshal a kml or kmz file with namespace
"http://earth.google.com/kml/2.2". An UnmarshalException is thrown (unexpected
element)
What is the expected output? What do you see instead?
This namespace should work the same as "http://www.opengis.net/kml/2.2" since
the specification is essentially the same. Unfortunately, there are still many
kml files with the namespace "http://earth.google.com/kml/2.2" since Google was
using that before the spec became official.
What version of the product are you using? On what operating system?
Using latest version of JAK as of Oct. 2/2010
Please provide any additional information below.
This issue was also mentioned a few times in issue 12 but it looks like the
comments were added after the issue was closed so they may have been missed.
Original issue reported on code.google.com by [email protected]
on 2 Oct 2010 at 8:26
I am using your library in a maven project. The current version 2.2.0 depends
on jaxb-impl and jaxb-xjc of version 2.2-SNAPSHOT.
In my environment I get annoying warnings in the console like that:
[INFO] Unable to find resource 'com.sun.xml.bind:jaxb-xjc:jar:2.2-SNAPSHOT' in
repository maven2-repository.dev.java.net (http://download.java.net/maven/2)
Maybe that's a configuration issue (there is a maven proxy in place), but
anyhow, isn't it suboptimal to have this snapshot dependency?
Is there a deeper reason to depend on a snapshot version? Are you planning to
switch to a stable version in a future release?
Best regards,
Axel
Original issue reported on code.google.com by [email protected]
on 30 Nov 2012 at 1:22
What steps will reproduce the problem?
1. Create a coordinate for the following location: 6.0E-4,-0.0018,101.0 0.0010
2. Output on JDK 6: 6.0E-4,-0.0018,101.0 0.0010
3. Output on JDK 7: 6.0E-4,-0.0018,101.0 0.001
What is the expected output? What do you see instead?
Both outputs are fine, we would just like them to be consistent between JDK
versions - as it is causing out unit tests to fail.
http://jira.codehaus.org/browse/GEOS-5973
What version of the product are you using? On what operating system?
The problem has been reported upgrading from JDK 6 to JDK 7. Our product is
heavily tested on JDK 6 (windows, mac and linux). I was able to reproduce this
difference by using Oracle JDK 1.7.0_25 on OSX.
Please provide any additional information below.
Email discussion notes that we are using the JDKs own JAXB, and we expect
differences in version/vendor of the JDK may cause the above issue.
Original issue reported on code.google.com by [email protected]
on 16 Aug 2013 at 2:15
The marshal API uses return values instead of raising exceptions when errors
occur. I would prefer for the marshal methods to either raise an exception if
there is an IOException trying to write to the OutputStream or to provide a
callback oriented API -> onSuccess/onException that will allow us to have
access to the root cause of the errors.
Original issue reported on code.google.com by [email protected]
on 15 Sep 2012 at 2:33
The jar provided can't be run in an OSGi environment.
Original issue reported on code.google.com by [email protected]
on 5 Dec 2013 at 12:53
Hello,
Currently the JavaAPIforKml-2.2.0.pom contains:
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>2.2-SNAPSHOT</version>
</dependency>
Could you change it to ?
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>2.2</version>
</dependency>
Thanks in advance.
Original issue reported on code.google.com by [email protected]
on 13 Jan 2010 at 3:35
as posted by hok
at
http://groups.google.com/group/javaapiforkml/browse_thread/thread/f8da58040d1e00
08
"I found one important difference: JAK seems to be overly picky when
unmarshalling. It reads this line just fine, creating a LineString
with two coordinates:
<coordinates>-0.126236,51.500152 -0.126237,51.500153</coordinates>
However, it completely ignores this multi-line construct, which IMHO
should be equivalent, creating a LineString without coordinates.
<coordinates>
-0.126236,51.500152
-0.126237,51.500153
</coordinates>
It even fails if the tuples are separated by two spaces instead of
one.
I would greatly appreciate if we could allow here an arbitrary amount
of whitespace, including tab, CR and LF, instead of exactly one space.
"
Original issue reported on code.google.com by [email protected]
on 9 Sep 2009 at 9:06
This API is not working on Google App Engine.
access denied ("java.lang.RuntimePermission" "getClassLoader")
Unexpected Exception.
File: com/google/api/ads/common/lib/soap/jaxws/JaxWsHandler.java
I have described in details at following link
https://github.com/googleads/googleads-java-lib/issues/25#issuecomment-56868611
Original issue reported on code.google.com by [email protected]
on 26 Sep 2014 at 8:46
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
am trying to find for a way to get set output the <gx:balloonVisibility> tag and set it to 1 under Update/Create under AnimatedUpdate for Placemark in Touring
Is there any way to get this?
Original issue reported on code.google.com by [email protected]
on 14 Aug 2010 at 4:14
What steps will reproduce the problem?
I generated a kml file with the api JavaAPIforKML version 2.2 like that :
try {
File kmlFile =files.get(TypeOfFile.kml);
kmlMaker.marshal(kmlFile);
logger.debug("The file " + kmlFile.getPath() + " has been created");
} catch (FileNotFoundException e) {
logger.error(e.getMessage());
throw new CoreServiceException("Error while the creation of KML file", e);
}
After the generation, I tried to delete the kml file with this code but it
doesn't work :
for(int i=0;i<directoryFiles.length;i++){
String filePath = directoryFiles[i].getPath();
boolean fileIsDeleted = false;
try {
FileDeleteStrategy.FORCE.delete(directoryFiles[i]);
fileIsDeleted = true;
} catch (IOException e) {
e.printStackTrace();
}
if(fileIsDeleted) logger.debug("The file " + filePath + " has been deleted");
else logger.error("The file " + filePath + " hasn't been deleted");
}
This exception is throwed : java.io.IOException: Unable to delete file:
C:\DEV\Tmp\KML\3013899924069204776\1662188016.kml
Have you some suggestions for me ? I took a look in the source code of the api
but I don't have all sources, I think the outputStream is not closed inside the
api.
You'll find below a little JUnit on this problem and you can noticed that the
delete of the file doesn't work :
@Test
public void deleteKML() throws Exception {
Kml kmlMaker = new Kml();
File kmlFile = new File("C:\\Dev\\Tmp\\KML\\TEST1-913289299.kml");
kmlMaker.marshal(kmlFile);
Assert.assertTrue(kmlFile.delete());
}
Thanks in advance for your help.
What is the expected output? What do you see instead?
After the generation of the kml file, I should be able to delete the file in
the process.
What version of the product are you using? On what operating system?
I use the version 2.2.
Original issue reported on code.google.com by [email protected]
on 8 Aug 2014 at 4:16
The JAXB implementation bundled in JDK 1.6 (in its apple incarnation, at least)
does not contain NamespacePrefixMapper.
It appears that de.micromata.opengis.kml.v_2_2_0.Kml.createMarshaller makes use
of that class.
Depending on JAXB is perfectly ok, but depending on a particular implementation
thereof does not make this library very usable... IMHO at least.
Original issue reported on code.google.com by [email protected]
on 14 Feb 2011 at 11:42
I'm facing this issue with kml factory and don't know why. Could anyone help me
on this? I include JavaAPIforKML.jar, it works fine in one project but give
this error when I try to use the same class file in another project
Below is my whole error trace
javax.ejb.EJBException: Unexpected Error
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:178)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:251)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209)
at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
Caused by: java.lang.NoClassDefFoundError:
de/micromata/opengis/kml/v_2_2_0/KmlFactory
at com.weatherspot.client.util.Station_KML_Writer.KML_Writer(Station_KML_Writer.java:25)
at com.weatherspot.ejb.buslogic.FrontDoorBean.getStationList_State(FrontDoorBean.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:72)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:74)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_1657087169.invoke(InvocationContextInterceptor_z_fillMethod_1657087169.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_1657087169.invoke(InvocationContextInterceptor_z_setup_1657087169.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.async.impl.interceptor.AsynchronousServerInterceptor.invoke(AsynchronousServerInterceptor.java:128)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.core.context.SessionInvocationContextAdapter.proceed(SessionInvocationContextAdapter.java:95)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209)
at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:218)
at org.jboss.remoting.Client.invoke(Client.java:2070)
at org.jboss.remoting.Client.invoke(Client.java:879)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.async.impl.interceptor.AsynchronousClientInterceptor.invoke(AsynchronousClientInterceptor.java:143)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy4.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:185)
at $Proxy3.getStationList_State(Unknown Source)
at com.weatherspot.client.SJSU_DummyClient.main(SJSU_DummyClient.java:32)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.async.impl.interceptor.AsynchronousClientInterceptor.invoke(AsynchronousClientInterceptor.java:143)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
at $Proxy4.invoke(Unknown Source)
at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:185)
at $Proxy3.getStationList_State(Unknown Source)
at com.weatherspot.client.SJSU_DummyClient.main(SJSU_DummyClient.java:32)
Caused by: java.lang.ClassNotFoundException:
de.micromata.opengis.kml.v_2_2_0.KmlFactory from
BaseClassLoader@452890af{vfs:///C:/JBOSS-6.1.0.Final/server/default/deploy/weath
er_spot_v03.jar}
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:480)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.weatherspot.client.util.Station_KML_Writer.KML_Writer(Station_KML_Writer.java:25)
at com.weatherspot.ejb.buslogic.FrontDoorBean.getStationList_State(FrontDoorBean.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:72)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:74)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_1657087169.invoke(InvocationContextInterceptor_z_fillMethod_1657087169.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_1657087169.invoke(InvocationContextInterceptor_z_setup_1657087169.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.async.impl.interceptor.AsynchronousServerInterceptor.invoke(AsynchronousServerInterceptor.java:128)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.core.context.SessionInvocationContextAdapter.proceed(SessionInvocationContextAdapter.java:95)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349)
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209)
at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
Original issue reported on code.google.com by [email protected]
on 12 Mar 2012 at 9:02
outputstream might not actually be a FileOutputStream.
Original issue reported on code.google.com by [email protected]
on 26 Nov 2012 at 1:03
I jsut downloaded the jak from "http://labs.micromata.de/display/jak/Download";
But i found, i can't read kml, even created by jak.
Here is my piece of code.
public static void main(String[] args) {
Kml kml = Kml.unmarshal("D:/doc/admod/kml/test.kml");
Document document = (Document) kml.getFeature();
JAXBContext j;
kml.marshal();
}
And the kml file just created by jak
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kml xmlns="http://www.opengis.net/kml/2.2"
xmlns:gx="http://www.google.com/kml/ext/2.2"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
<Document>
<name>JAK Example1</name>
<open>1</open>
<Folder>
<name>Continents with Earth's surface</name>
<open>1</open>
</Folder>
</Document>
</kml>
When i try to read the file. I got these exceptions.
javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: Content is not allowed in prolog.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown Source)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:523)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:220)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:189)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at de.micromata.opengis.kml.v_2_2_0.Kml.unmarshal(Kml.java:846)
at tuangoking.com.KmlTest.main(KmlTest.java:11)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at de.micromata.opengis.kml.v_2_2_0.NamespaceFilterXMLReader.parse(NamespaceFilterXMLReader.java:63)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:216)
... 5 more
Exception in thread "main" java.lang.NullPointerException
at tuangoking.com.KmlTest.main(KmlTest.java:12)
Original issue reported on code.google.com by [email protected]
on 26 Nov 2010 at 9:48
What steps will reproduce the problem?
Take the two attached kml files and play the tours within Google Earth (5.2).
You will see only one tour is working in terms of showing a moving placemark.
The only difference between those two files is the namespace declaration in the
second line.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kml xmlns="http://www.opengis.net/kml/2.2"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:gx="http://www.google.com/kml/ext/2.2"
xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
<Document>...
If I remove the xal namspace, it works:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:gx="http://www.google.com/kml/ext/2.2" >
<Document>...
=> The XAL namespace seems to break something.
Original issue reported on code.google.com by [email protected]
on 16 Jun 2010 at 6:42
Attachments:
What steps will reproduce the problem?
1.creating an IconStyle with no heading always gives it a heading.
<Style id="product_Icon">
<IconStyle>
<scale>1.0</scale>
<heading>0.0</heading>
<Icon>
<href>http://172.20.1.205:8080/......jpg</href>
<refreshInterval>0.0</refreshInterval>
<viewRefreshTime>0.0</viewRefreshTime>
<viewBoundScale>0.0</viewBoundScale>
</Icon>
</IconStyle>
</Style>
What is the expected output? What do you see instead?
I was hopping to be able to specify no heading and the icons are always placed
upright and not dependent upon the position of the globe (ie always facing
North at 0.0 heading)
What version of the product are you using? On what operating system?
Google Earth: 6.0.3.2197
Windows XP
Downloaded the latest JAK release
Please provide any additional information below.
I think it would be nice to not have these
<refreshInterval>0.0</refreshInterval>
<viewRefreshTime>0.0</viewRefreshTime>
<viewBoundScale>0.0</viewBoundScale>
in the KML as I believe these are default values.
Original issue reported on code.google.com by [email protected]
on 30 Jun 2011 at 9:25
override clone()-method
Original issue reported on code.google.com by [email protected]
on 23 Nov 2009 at 7:32
What steps will reproduce the problem?
1. Try to create a kmz file that includes also some ressources like icons,
models, etc.
What is the expected output? What do you see instead?
The API offers no possibility to do that.
What version of the product are you using? On what operating system?
2.2.0-SNAPSHOZ (as stated in the pom.properties in the .jar)
Please provide any additional information below.
A workaraound could be to unpack the kmz after creation, add the ressources and
pack it again. but a direct support for adding such files would be nice.
Original issue reported on code.google.com by [email protected]
on 19 Apr 2011 at 8:35
What steps will reproduce the problem?
Force an IOException to occur during marshaling. I used JUnit and Mockito e.g.
OutputStream stream = mock(OutputStream.class, new Answer<Object>() {
@Override
public Object answer(InvocationOnMock invocation) throws Throwable {
throw new IOException("an error");
}
});
kml.marshal(outputStream)
What is the expected output? What do you see instead?
I do not expect to see a stack trace printed to Standard.Err; I would prefer
the option to set an "Error Writter" that the Library can use as a target to
print the stack trace e.g. e.printStackTrace(errorWriter) or a
log.error("IOException occurred", e);
[junit] ------------- Standard Error -----------------
[junit] javax.xml.bind.MarshalException
[junit] - with linked exception:
[junit] [java.io.IOException: an error]
[junit] at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:328)
[junit] at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:251)
[junit] at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:75)
[junit] at de.micromata.opengis.kml.v_2_2_0.Kml.marshal(Kml.java:683)
[junit] at com.kestrel.pitchfork.solr.gis.KmlQueryResponseWriter.write(KmlQueryResponseWriter.java:52)
[junit] at com.kestrel.pitchfork.solr.gis.KmlQueryResponseWriterTest.shouldFailIfAnIOExceptionOccursTryingToWriteKml(KmlQueryResponseWriterTest.java:197)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
[junit] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
[junit] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
[junit] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
[junit] at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:21)
[junit] at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
[junit] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
[junit] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
[junit] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
[junit] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
[junit] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
[junit] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
[junit] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
[junit] at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
[junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:879)
[junit] Caused by: java.io.IOException: an error
[junit] at com.kestrel.pitchfork.solr.gis.KmlQueryResponseWriterTest$5.answer(KmlQueryResponseWriterTest.java:182)
[junit] at org.mockito.internal.MockHandler.handle(MockHandler.java:101)
[junit] at org.mockito.internal.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:36)
[junit] at org.mockito.internal.creation.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:48)
[junit] at $java.io.OutputStream$$EnhancerByMockitoWithCGLIB$$cec6ddef.write(<generated>)
[junit] at com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput.flushBuffer(UTF8XmlOutput.java:418)
[junit] at com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput.endDocument(UTF8XmlOutput.java:142)
[junit] at com.sun.xml.bind.v2.runtime.output.IndentingUTF8XmlOutput.endDocument(IndentingUTF8XmlOutput.java:169)
[junit] at com.sun.xml.bind.v2.runtime.XMLSerializer.endDocument(XMLSerializer.java:852)
[junit] at com.sun.xml.bind.v2.runtime.MarshallerImpl.postwrite(MarshallerImpl.java:377)
[junit] at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:324)
[junit] ... 27 more
[junit] ------------- ---------------- ---------------
What version of the product are you using? On what operating system?
* downloaded version from Jan 2010
* RHEL6
Original issue reported on code.google.com by [email protected]
on 15 Sep 2012 at 2:45
see summary text
Original issue reported on code.google.com by [email protected]
on 13 Aug 2009 at 9:53
Hello Reader
I want to import KML file, in wwj for that which class I have to
use.
In my system I have Google earth while double clicking newyork.kml
file it directly opens google earth and point out the place.In same
way how to import KML in worldwind also.
I download a direct example from http://labs.micromata.de/display/jak/HelloKML+%28Quickstart%29
, then when i imported eclipse, it's wrong, so what can i do next?
package de.micromata.jak.examples;
import java.io.File;
import java.io.FileNotFoundException;
import de.micromata.opengis.kml.v_2_2_0.Kml;
public class HelloKML {
/**
* HelloKML Sample project
*/
public static void main(String[] args) throws FileNotFoundException {
final Kml kml = new Kml();
kml.createAndSetPlacemark()
.withName("London, UK").withOpen(Boolean.TRUE)
.createAndSetPoint().addToCoordinates(-0.126236, 51.500152);
//marshals to console
kml.marshal();
//marshals into file
kml.marshal(new File("HelloKml.kml"));
}
}
It's warned de.micromata.opengis is lost.
Waiting for your reply.. Thank you very much.
Original issue reported on code.google.com by [email protected]
on 10 Mar 2012 at 1:33
Attachments:
1.parsing kmz from
http://earthquake.usgs.gov/eqcenter/catalogs/eqs7day-depth.kmz
i got this error
javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://earth.google.com/kml/2.0", local:"kml"). Expected elements are
<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Address>,<{urn:oasis:names:tc:ciq:xsd
schema:xAL:2.0}AddressDetails>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Addres
sIdentifier>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}AddressLatitude>,<{urn:o
asis:names:tc:ciq:xsdschema:xAL:2.0}AddressLatitudeDirection>,<{urn:oasis:names:
tc:ciq:xsdschema:xAL:2.0}AddressLine>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0
}AddressLines>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}AddressLongitude>,<{ur
n:oasis:names:tc:ciq:xsdschema:xAL:2.0}AddressLongitudeDirection>,<{urn:oasis:na
mes:tc:ciq:xsdschema:xAL:2.0}AdministrativeArea>,<{urn:oasis:names:tc:ciq:xsdsch
ema:xAL:2.0}AdministrativeAreaName>,<{http://www.opengis.net/kml/2.2}Alias>,<{ht
tp://www.google.com/kml/ext/2.2}AnimatedUpdate>,<{http://www.opengis.net/kml/2.2
}BalloonStyle>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Barcode>,<{http://www.
opengis.net/kml/2.2}BasicLink>,<{http://www.opengis.net/kml/2.2}Boundary>,<{urn:
oasis:names:tc:ciq:xsdschema:xAL:2.0}BuildingName>,<{http://www.opengis.net/kml/
2.2}Camera>,<{http://www.opengis.net/kml/2.2}Change>,<{urn:oasis:names:tc:ciq:xs
dschema:xAL:2.0}Country>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}CountryName>
,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}CountryNameCode>,<{http://www.opengi
s.net/kml/2.2}Create>,<{http://www.opengis.net/kml/2.2}Data>,<{http://www.opengi
s.net/kml/2.2}Delete>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Department>,<{u
rn:oasis:names:tc:ciq:xsdschema:xAL:2.0}DepartmentName>,<{urn:oasis:names:tc:ciq
:xsdschema:xAL:2.0}DependentLocality>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0
}DependentLocalityName>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}DependentLoca
lityNumber>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}DependentThoroughfare>,<{
http://www.opengis.net/kml/2.2}Document>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:
2.0}EndorsementLineCode>,<{http://www.opengis.net/kml/2.2}ExtendedData>,<{urn:oa
sis:names:tc:ciq:xsdschema:xAL:2.0}Firm>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:
2.0}FirmName>,<{http://www.google.com/kml/ext/2.2}FlyTo>,<{http://www.opengis.ne
t/kml/2.2}Folder>,<{http://www.opengis.net/kml/2.2}GroundOverlay>,<{http://www.o
pengis.net/kml/2.2}Icon>,<{http://www.opengis.net/kml/2.2}IconStyle>,<{http://ww
w.opengis.net/kml/2.2}ImagePyramid>,<{http://www.opengis.net/kml/2.2}ItemIcon>,<
{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}KeyLineCode>,<{http://www.opengis.net/
kml/2.2}LabelStyle>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}LargeMailUser>,<{
urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}LargeMailUserIdentifier>,<{urn:oasis:na
mes:tc:ciq:xsdschema:xAL:2.0}LargeMailUserName>,<{http://www.opengis.net/kml/2.2
}LatLonAltBox>,<{http://www.opengis.net/kml/2.2}LatLonBox>,<{http://www.google.c
om/kml/ext/2.2}LatLonQuad>,<{http://www.opengis.net/kml/2.2}LineString>,<{http:/
/www.opengis.net/kml/2.2}LineStyle>,<{http://www.opengis.net/kml/2.2}LinearRing>
,<{http://www.opengis.net/kml/2.2}Link>,<{http://www.opengis.net/kml/2.2}ListSty
le>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Locality>,<{urn:oasis:names:tc:ci
q:xsdschema:xAL:2.0}LocalityName>,<{http://www.opengis.net/kml/2.2}Location>,<{h
ttp://www.opengis.net/kml/2.2}Lod>,<{http://www.opengis.net/kml/2.2}LookAt>,<{ur
n:oasis:names:tc:ciq:xsdschema:xAL:2.0}MailStop>,<{urn:oasis:names:tc:ciq:xsdsch
ema:xAL:2.0}MailStopName>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}MailStopNum
ber>,<{http://www.opengis.net/kml/2.2}Metadata>,<{http://www.opengis.net/kml/2.2
}Model>,<{http://www.opengis.net/kml/2.2}MultiGeometry>,<{http://www.opengis.net
/kml/2.2}NetworkLink>,<{http://www.opengis.net/kml/2.2}NetworkLinkControl>,<{htt
p://www.opengis.net/kml/2.2}Orientation>,<{http://www.opengis.net/kml/2.2}Pair>,
<{http://www.opengis.net/kml/2.2}PhotoOverlay>,<{http://www.opengis.net/kml/2.2}
Placemark>,<{http://www.google.com/kml/ext/2.2}Playlist>,<{http://www.opengis.ne
t/kml/2.2}Point>,<{http://www.opengis.net/kml/2.2}PolyStyle>,<{http://www.opengi
s.net/kml/2.2}Polygon>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostBox>,<{urn
:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostBoxNumber>,<{urn:oasis:names:tc:ciq:xs
dschema:xAL:2.0}PostBoxNumberExtension>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2
.0}PostBoxNumberPrefix>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostBoxNumber
Suffix>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostOffice>,<{urn:oasis:names
:tc:ciq:xsdschema:xAL:2.0}PostOfficeName>,<{urn:oasis:names:tc:ciq:xsdschema:xAL
:2.0}PostOfficeNumber>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostTown>,<{ur
n:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostTownName>,<{urn:oasis:names:tc:ciq:xs
dschema:xAL:2.0}PostTownSuffix>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Posta
lCode>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostalCodeNumber>,<{urn:oasis:
names:tc:ciq:xsdschema:xAL:2.0}PostalCodeNumberExtension>,<{urn:oasis:names:tc:c
iq:xsdschema:xAL:2.0}PostalRoute>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Pos
talRouteName>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostalRouteNumber>,<{ur
n:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostalServiceElements>,<{urn:oasis:names:
tc:ciq:xsdschema:xAL:2.0}Premise>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Pre
miseLocation>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PremiseName>,<{urn:oasi
s:names:tc:ciq:xsdschema:xAL:2.0}PremiseNumber>,<{urn:oasis:names:tc:ciq:xsdsche
ma:xAL:2.0}PremiseNumberPrefix>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Premi
seNumberRange>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PremiseNumberRangeFrom
>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PremiseNumberRangeTo>,<{urn:oasis:n
ames:tc:ciq:xsdschema:xAL:2.0}PremiseNumberSuffix>,<{http://www.opengis.net/kml/
2.2}Region>,<{http://www.opengis.net/kml/2.2}ResourceMap>,<{http://www.opengis.n
et/kml/2.2}Scale>,<{http://www.opengis.net/kml/2.2}Schema>,<{http://www.opengis.
net/kml/2.2}SchemaData>,<{http://www.opengis.net/kml/2.2}ScreenOverlay>,<{http:/
/www.opengis.net/kml/2.2}SimpleData>,<{http://www.opengis.net/kml/2.2}SimpleFiel
d>,<{http://www.opengis.net/kml/2.2}Snippet>,<{urn:oasis:names:tc:ciq:xsdschema:
xAL:2.0}SortingCode>,<{http://www.google.com/kml/ext/2.2}SoundCue>,<{http://www.
opengis.net/kml/2.2}Style>,<{http://www.opengis.net/kml/2.2}StyleMap>,<{urn:oasi
s:names:tc:ciq:xsdschema:xAL:2.0}SubAdministrativeArea>,<{urn:oasis:names:tc:ciq
:xsdschema:xAL:2.0}SubAdministrativeAreaName>,<{urn:oasis:names:tc:ciq:xsdschema
:xAL:2.0}SubPremise>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}SubPremiseLocati
on>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}SubPremiseName>,<{urn:oasis:names
:tc:ciq:xsdschema:xAL:2.0}SubPremiseNumber>,<{urn:oasis:names:tc:ciq:xsdschema:x
AL:2.0}SubPremiseNumberPrefix>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}SubPre
miseNumberSuffix>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}SupplementaryPostal
ServiceData>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Thoroughfare>,<{urn:oasi
s:names:tc:ciq:xsdschema:xAL:2.0}ThoroughfareLeading>,<{urn:oasis:names:tc:ciq:x
sdschema:xAL:2.0}ThoroughfareName>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Th
oroughfareNumber>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}ThoroughfareNumberF
rom>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}ThoroughfareNumberPrefix>,<{urn:
oasis:names:tc:ciq:xsdschema:xAL:2.0}ThoroughfareNumberRange>,<{urn:oasis:names:
tc:ciq:xsdschema:xAL:2.0}ThoroughfareNumberSuffix>,<{urn:oasis:names:tc:ciq:xsds
chema:xAL:2.0}ThoroughfareNumberTo>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}T
horoughfarePostDirection>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}Thoroughfar
ePreDirection>,<{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}ThoroughfareTrailing>,
<{http://www.opengis.net/kml/2.2}TimeSpan>,<{http://www.opengis.net/kml/2.2}Time
Stamp>,<{http://www.google.com/kml/ext/2.2}Tour>,<{http://www.google.com/kml/ext
/2.2}TourControl>,<{http://www.opengis.net/kml/2.2}Update>,<{http://www.opengis.
net/kml/2.2}Vec2>,<{http://www.opengis.net/kml/2.2}ViewVolume>,<{http://www.goog
le.com/kml/ext/2.2}Wait>,<{http://www.w3.org/2005/Atom}author>,<{http://www.open
gis.net/kml/2.2}kml>,<{http://www.w3.org/2005/Atom}link>
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(Unmars
hallingContext.java:642)
at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:254)
at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:249)
at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loa
der.java:116)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.
childElement(UnmarshallingContext.java:1049)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(Unma
rshallingContext.java:478)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(Unmar
shallingContext.java:459)
at
com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.
java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Abstra
ctSAXParser.java:501)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElemen
t(XMLNSDocumentScannerImpl.java:400)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver
.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentC
ontentDriver.next(XMLDocumentFragmentScannerImpl.java:3095)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next
(XMLDocumentScannerImpl.java:921)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentS
cannerImpl.java:648)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocum
entScannerImpl.java:140)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocum
ent(XMLDocumentFragmentScannerImpl.java:510)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configu
ration.java:807)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configu
ration.java:737)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXPa
rser.java:1205)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXPar
serImpl.java:522)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unmarshalle
rImpl.java:211)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unmarshaller
Impl.java:184)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerIm
pl.java:137)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerIm
pl.java:184)
at de.micromata.opengis.kml.v_2_2_0.Kml.unmarshal(Kml.java:850)
at de.micromata.opengis.kml.v_2_2_0.Kml.unmarshalFromKmz(Kml.java:892)
at worldwind.kml.KMLLayer.load(KMLLayer.java:503)
at com.cgii.globe.ui.views.ui.MyPlacesPanel.LoadKML(MyPlacesPanel.java:234)
...
Original issue reported on code.google.com by isapoetra
on 23 Sep 2009 at 5:06
I originally, accidentally posted this issue at the xjcpluginjavaapiforkml
project and have re-posted it here where it seems to actually belong.
What steps will reproduce the problem?
1. Call public boolean marshal(final File) on a KML object with a File object
parameter
2. Attempt to delete the resulting KML file while the application is still
running
What is the expected output? What do you see instead?
The OutputStream that's created by the method should be closed after the KML
object has been marshaled to the KML file.
What version of the product are you using? On what operating system?
2.2.0 on Windows XP Professional 32-bit
Please provide any additional information below.
This bug prevents the resulting KML files from being deleted within Windows
Explorer until the application performing the marshaling has been closed.
Original issue reported on code.google.com by [email protected]
on 29 Jun 2010 at 1:44
What steps will reproduce the problem?
1. Marshal and launch a KML file that contains a NetworkLinkControl that
performs an Update on another KML file. By default, JAK will add the following
namespace to the KML file: xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"
2. The NetworkLinkControl will not update the other KML file unless the
previously mentioned namespace is removed.
What is the expected output? What do you see instead?
I've reported problem as a bug to Google. In the mean time, maybe JAK should
allow the user to specify what namespaces they'd like to add to KML files
during marshaling.
What version of the product are you using? On what operating system?
2.2.0 on Windows XP 32-bit
Please provide any additional information below.
Please see the attached file for the code snippet. If the previously mentioned
namespace is removed, then the other KML file is Updated correctly.
Google Earth bug report:
http://code.google.com/p/kml-samples/issues/detail?id=347
Original issue reported on code.google.com by [email protected]
on 29 Jun 2010 at 10:01
Attachments:
publish Javadoc
Original issue reported on code.google.com by [email protected]
on 21 Aug 2009 at 7:43
The default output is like:
<kml ... xmlns:ns2="http://www.w3.org/2005/Atom"
xmlns:ns3="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"
xmlns:ns4="http://www.google.com/kml/ext/2.2">
should be changed:
<kml ... xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"
xmlns:gx="http://www.google.com/kml/ext/2.2">
Original issue reported on code.google.com by [email protected]
on 18 Aug 2009 at 7:45
The description element of placemark is used by GE for content inside the
balloon. The body content of <description> can be either plain text or
HTML. If HTML is written into <description>, JAXB escapes the left bracket
and right bracket into XML entities.
While it still works, in a KML with 250+ placemarks and <description> in
each placemark, this behavior has taken the file size to 281 KB from 170
KB when outputting with DOM.
Although its now deprecated, I did find a solution for this:
https://jaxb.dev.java.net/faq/JaxbCDATASample.java.
My suggested solutions:
1. Add methods for elements like description to output as CDATA, ie
placemark.withDescriptionAsCdata("foo")
or
2. Add a method to Kml to allow the developer to use something like a
serializer:
public boolean marshall(ContentHandler handler) {
try {
m = this.createMarshaller();
JAXBElement<Kml> jaxbRootElement = new JAXBElement<Kml>(new QName
("http://www.opengis.net/kml/2.2", "kml"), Kml.class, this);
m.marshal(jaxbRootElement, handler);
return true;
} catch (JAXBException _x) {
_x.printStackTrace();
return false;
}
}
By the way, keep up the great work! I was looking into using JAXB directly
to refactor a servlet generating KML with DOM, but this saved tons of time.
Original issue reported on code.google.com by [email protected]
on 26 Aug 2009 at 3:43
What steps will reproduce the problem?
1.Create a simple KML object with a point with an icon
2.Marshal KML and view results in Google Earth or Maps
3.Icon does not appear since scale was initialised to zero
4.Validate KML file (http://www.kmlvalidator.com or http://feedvalidator.org/)
5.Other elements initialised to zero causing validation errors
(refreshInterval, viewRefreshTime, viewBoundScale)
What is the expected output? What do you see instead?
The unspecified elements should not be included in the KML. The above and
attached are only simple examples. There may be other elements that are also
being invalidly initialised and included.
See attachments below
What version of the product are you using? On what operating system?
Revision 38
Windows XP
Please provide any additional information below.
example code:
final Kml kml = new Kml();// <kml ...
final Document doc = new Document();// <Document>
doc.setName("Can't be zero example");// <name>Can't be zero example</name>
final Placemark mark = new Placemark();// <Placemark>
mark.setName("Invalid Icon");// <name>Correct Icon</name>
final Style style = new Style();// <Style>
final IconStyle iconStyle = new IconStyle();// <IconStyle>
final Icon icon = new Icon();// <Icon>
icon.setHref("http://code.google.com/p/javaapiforkml/logo?cct=1289397818");//
<href>http://code.google.com/p/javaapiforkml/logo?cct=1289397818</href>
iconStyle.setIcon(icon);// </Icon>
style.setIconStyle(iconStyle);// </IconStyle>
mark.setStyleSelector(Arrays.asList((StyleSelector) style));// </Style>
final Point point = new Point();// <Point>
point.setCoordinates(Arrays.asList(new Coordinate(1d, 1d)));//
<coordinates>1.0,1.0</coordinates>
mark.setGeometry(point);// </Point>
doc.addToFeature(mark);// </Placemark>
kml.setFeature(doc);// </Document>
kml.marshal(new File("actual.kml"));// </kml>
Original issue reported on code.google.com by [email protected]
on 17 Feb 2011 at 6:32
Attachments:
I just tried setting up a little Java application to read and write KML files
with this library. I am using the latest Eclipse version on Win XP x32. I
started with a very simple class looking like this:
import de.micromata.opengis.kml.v_2_2_0.*;
public class Main {
public static void main(String[] args) {
Kml kml = new Kml();
kml = Kml.unmarshal(("borabora.kml"));
Document document = (Document) kml.getFeature();
}
}
In the proect properties, I added references to:
- jaxb-impl-2.1.9-sources.jar
- JavaAPIforKml-sources.jar
Eclipse does not show any errors or warnings before trying to compile, but when
I try to compile I receive the following exceptions:
javax.xml.bind.JAXBException
- with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:187)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:363)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
at de.micromata.opengis.kml.v_2_2_0.Kml.unmarshal(Kml.java:843)
at Main.main(Main.java:34)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:481)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:185)
... 5 more
I have already opened jaxb-impl-2.1.9-sources.jar with WinRar and I found the
class com.sun.xml.bind.v2.ContextFactory where it's supposed to be. (Actually
no class seems to be missing.)
I did not try to read attributes from the file, because I was not yet able to
open any file at all.
What am I doing wrong?
Original issue reported on code.google.com by [email protected]
on 7 Jan 2011 at 9:17
What steps will reproduce the problem?
1.Unmarshal a KML with a LineString as such:
<LineString>
<coordinates>-55.80970002,-60.7000999276855,0,-55.0666008,-60.7630997476855,0,-5
4.30899808,-60.9776001676856,0,-54.30070116,-61.5102005476855,0</coordinates>
</LineString>
2.
3.
What is the expected output? What do you see instead?
Expected output is a linestring with multiply points.
Only the first two coordinates are being parsed
What version of the product are you using? On what operating system?
Jan 13 build, Windows
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 12 Feb 2010 at 4:14
...
Original issue reported on code.google.com by [email protected]
on 13 Aug 2009 at 9:53
What steps will reproduce the problem?
1. File file = new File("/test/myplaces.kmz"); // file exported from google
earth
2. Kml[] = Kml.unmarshalFromKmz(file);
error :
MalformedByteSequenceException : "Invalid byte 1 of 1-byte UTF-8 sequence"
What version of the product are you using? On what operating system?
JDK 1.6.0.13
after check i change this line code :
if (entryName.endsWith("*.kml")) {
continue;
}
to
if (!entryName.endsWith(".kml")) {
continue;
}
Original issue reported on code.google.com by isapoetra
on 22 Sep 2009 at 1:31
The KML generated from the library seems to always uses true/false
instead of 1/0 for boolean data types. This validates correctly and
displays correctly in Google Earth, but I find that it does not
display correctly within Google Maps. Attached are two kml files which show
a polygon, with the only difference between them being this data type
change
- polygon_truefalse.kml
- polygon_onezero.kml
Google maps correctly shows one/zero case as a filled polygon, where
the true/false case shows no polygon at all
The KML reference never mentions using true/false, it always uses 1/0.
Thus, I would recommend for maximum compatibility that 1/0 is always used.
Original issue reported on code.google.com by [email protected]
on 18 Nov 2009 at 12:26
Attachments:
What steps will reproduce the problem?
1. Download latest software for JAK
2.
3.
What is the expected output? What do you see instead?
I need to use the new gx:track and Multitrack features but cannot find support
for this in the JAK package.
What version of the product are you using? On what operating system?
Latest as per 10 october 2010 (downloaded with svn)
Please provide any additional information below.
gx:track and Multitrack has recently been added to kml22gx.xsd (25th august
2010) see http://code.google.com/p/kml-samples/issues/detail?id=350
Is it only to rebuild JAK ?
How can this be done?
Original issue reported on code.google.com by [email protected]
on 10 Oct 2010 at 7:35
* What steps will reproduce the problem?
Placemark placemark = folder.createAndAddPlacemark();
placemark.withDescription("<![CDATA[The <b>end</b>.]]>");
* What is the expected output? What do you see instead?
Expected : <![CDATA[The <b>end</b>.]]>
What I have instead : <![CDATA[The <b>end</b>.]]>
...wich output on the placemark's description something like : end.]]>
* What version of the product are you using? On what operating system?
jak 2.2.0-SNAPSHOT using maven and Google Maps Javascript API v3
This issue is quite annoying when you want embed rich HTML in description
ballons
Original issue reported on code.google.com by [email protected]
on 22 Nov 2011 at 9:05
gx extension classes missing @XmlRootElement annotation
"Exception encountered javax.xml.bind.MarshalException
- with linked exception:
[com.sun.istack.SAXException2: unable to marshal type
"de.micromata.opengis.kml.v_2_2_0.gx.AnimatedUpdate" as an element because
it is missing an @XmlRootElement annotation]"
Gx:AltitudeMode and KmlAltitudeMode clash!
Original issue reported on code.google.com by [email protected]
on 20 Aug 2009 at 12:16
Try to parse the attached KMZ file. It was exported using Google Earth
6.0.1.2032 (beta).
My application (Pace & Place) uses JAK for parsing KML and KMZ files. KMZ files
will be opened and the contained KML entry will be parsed using JAK (the KMZ
importer delegates the parsing to the KML importer).
Stack trace:
javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: The prefix "ns5" for attribute "ns5:type"
associated with an element type "tessellate" is not bound.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown Source)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:514)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at de.micromata.opengis.kml.v_2_2_0.Kml.unmarshal(Kml.java:871)
at org.digitalcure.pnp.gps.io.kml.impl.KmlImporter.read(KmlImporter.java:133)
at org.digitalcure.pnp.gps.io.kml.impl.KmzImporter.read(KmzImporter.java:107)
at org.digitalcure.pnp.gps.io.core.impl.job.DatabaseImportJob.importSingleFile(DatabaseImportJob.java:370)
at org.digitalcure.pnp.gps.io.core.impl.job.DatabaseImportJob.run(DatabaseImportJob.java:205)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.xml.sax.SAXParseException: The prefix "ns5" for attribute
"ns5:type" associated with an element type "tessellate" is not bound.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at de.micromata.opengis.kml.v_2_2_0.NamespaceFilterXMLReader.parse(NamespaceFilterXMLReader.java:63)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
... 9 more
JAK version (from pom.properties): 2.2.0-SNAPSHOT
OS: Windows 7 (64bit), Ubuntu 11.04 (32bit)
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)
Need more information? Please contact me: stefan<at>digitalcure<dot>de
Original issue reported on code.google.com by [email protected]
on 20 Jun 2011 at 5:01
Attachments:
.
Original issue reported on code.google.com by [email protected]
on 27 Aug 2009 at 8:23
.
Original issue reported on code.google.com by [email protected]
on 21 Aug 2009 at 7:43
override toString()-method
Original issue reported on code.google.com by [email protected]
on 23 Nov 2009 at 7:33
add Google Map API support
Original issue reported on code.google.com by [email protected]
on 23 Nov 2009 at 7:33
What steps will reproduce the problem?
1. Create a NetworkLinkControl element using
KmlFactory.createNetworkLinkControl()
2. Populate NetworkLinkControl with an Update using
networkLinkControl.setUpdate()
3. Add NetworkLinkControl to a KML element.
kml.setNetworkLinkControl(networkLinkControl)
4. Marshal using kml.marshal()
5. Observe that maxSessionLength element is added to NetworkLinkControl
element and is set to 0.0.
What is the expected output? What do you see instead?
maxSessionLength element should be set to -1.0. See
http://code.google.com/apis/kml/documentation/kmlreference.html#networklinkcontr
ol
What version of the product are you using? On what operating system?
JavaAPIforKml 2.2.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 27 Sep 2011 at 1:04
What steps will reproduce the problem?
1. Create many KML objects in a loop, marshaling them on each iteration.
What is the expected output? What do you see instead?
Expected: JVM tools (e.g., jvisualvm) show that eventually the number of
Classes loaded stabilizes
Actual: The number of classes increases without bounds.
What version of the product are you using? On what operating system?
2.2.0
Please provide any additional information below.
According to http://java.net/jira/browse/JAXB-686 and
http://java.net/jira/browse/JAXB-581 it is preferable to reuse the JAXB context
rather than recreate it.
Original issue reported on code.google.com by [email protected]
on 30 Oct 2012 at 8:51
{{{
@XmlElement(name = "AbstractFeatureObjectExtensionGroup")
protected List<AbstractObject> featureObjectExtension;
}}}
results in wrong kml output:
{{{
<GroundOverlay id="ID">
<AbstractFeatureObjectExtensionGroup
xmlns:ns5="http://www.w3.org/2001/XMLSchema-instance"
ns5:type="gx:LatLonQuadType">
<coordinates>0.0,0.0</coordinates>
</AbstractFeatureObjectExtensionGroup>
...
}}}
XmlElement needed to be changed into XmlElementRef for all AbstractObjects
{{{
@XmlElementRef(name = "AbstractFeatureObjectExtensionGroup")
protected List<AbstractObject> featureObjectExtension;
}}}
produces the correct output:
{{{
<GroundOverlay id="ID">
<gx:LatLonQuad>
<coordinates>0.0,0.0</coordinates>
</gx:LatLonQuad>
...
}}}
Original issue reported on code.google.com by [email protected]
on 26 Aug 2009 at 8:04
What steps will reproduce the problem?
1.Marshaling the file i.e. kml.marshal(kmlFile);
What is the expected output? What do you see instead?
Generating the KML works. However, I used VisualVM and JMeter to profile the
servlet app, and I noticed that marshaling the file keeps on loading classes in
the memory on and on. This is a very big memory concern. I localized the
problem by going through my code line by line.
What can be done regarding this? It is obvious that garbage collector is not
deleting the object from the memory but it sure adds it again.
Any ideas?
What version of the product are you using? On what operating system?
Windows XP Professional 32bit, Eclipse Helios, Tomcat 6, JMeter
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Sep 2011 at 9:59
Attachments:
In JAK,jxc-generated ObjectFactory classes have been removed according to:
http://labs.micromata.de/display/jak/Implementation#Implementation-CreateKMLFact
ory%28anddeleteJAXB%27sObjectFactory%29
That causes problems with those libraries that expect to find such
ObjectFactory.
For example, using the Jaxb extension for the Restlet library:
Kml kml = new Kml();
ConverterHelper ch = new JaxbConverter();
VariantInfo vi = new VariantInfo( MediaType.APPLICATION_KML );
Representation re = ch.toRepresentation( kml, vi, this );
System.out.print( re.getText() );
javax.xml.bind.JAXBException: "de.micromata.opengis.kml.v_2_2_0" doesnt contain
ObjectFactory.class or jaxb.index
The solution, as suggested here:
http://cmaki.blogspot.com/2007/09/annotated-jaxb-classes.html is to provide a
jaxb.index text file in each package listing all classes containing
@XmlRootElement.
See also:
http://groups.google.com/group/javaapiforkml/browse_thread/thread/809852b45a2ac5
2
Original issue reported on code.google.com by [email protected]
on 9 May 2011 at 12:17
Attachments:
What steps will reproduce the problem?
1. Try to use JAK on a Android Smartphone (HTC Magic, Android, 1.5)
What is the expected output? What do you see instead?
Just add the jak lib and that it.
Got some compile error because Android do not provide the full xml
parser/composer. Than I started to understand the compile error, but a one
point I give up, because I do not fully understand the internal and the
architecture of JAK.
What version of the product are you using? On what operating system?
Android 1.5
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 14 Dec 2009 at 8:13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.