Issue Type: Bug Bug
Affects Versions: 9.1
Assignee: Ben Caradoc-Davies
Components: app-schema plugin
Created: 13/May/13 3:33 AM
Description:

Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at org.geotools.xml.resolver.SchemaCache.download(SchemaCache.java:260)
at org.geotools.xml.resolver.SchemaCache.download(SchemaCache.java:237)
at org.geotools.xml.resolver.SchemaCache.download(SchemaCache.java:227)
at org.geotools.xml.resolver.SchemaCache.resolveLocation(SchemaCache.java:358)
at org.geotools.xml.resolver.SchemaResolver.resolve(SchemaResolver.java:203)
at org.geotools.xml.resolver.SchemaResolver.resolve(SchemaResolver.java:175)
at org.geotools.xml.AppSchemaLocationResolver.resolveSchemaLocation(AppSchemaLocationResolver.java:67)
at org.geotools.xml.Schemas$SchemaLocationResolverAdapter.resolveSchemaLocation(Schemas.java:1721)
at org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolveSchemaLocation(XSDSchemaDirectiveImpl.java:423)
at org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchemaDirectiveImpl.java:338)
at org.eclipse.xsd.impl.XSDImportImpl.importSchema(XSDImportImpl.java:422)
at org.eclipse.xsd.impl.XSDSchemaImpl.resolveSchema(XSDSchemaImpl.java:2253)
at org.eclipse.xsd.impl.XSDSchemaImpl.resolveNamedComponent(XSDSchemaImpl.java:2286)
at org.eclipse.xsd.impl.XSDSchemaImpl.resolveAttributeDeclaration(XSDSchemaImpl.java:2308)
at org.eclipse.xsd.impl.XSDConcreteComponentImpl.resolveAttributeDeclaration(XSDConcreteComponentImpl.java:2444)
at org.eclipse.xsd.impl.XSDAttributeDeclarationImpl.patch(XSDAttributeDeclarationImpl.java:202)
at org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcreteComponentImpl.java:535)
at org.eclipse.xsd.impl.XSDAttributeUseImpl.patch(XSDAttributeUseImpl.java:767)
at org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcreteComponentImpl.java:535)
at org.eclipse.xsd.impl.XSDNamedComponentImpl.patch(XSDNamedComponentImpl.java:785)
at org.eclipse.xsd.impl.XSDAttributeGroupDefinitionImpl.patch(XSDAttributeGroupDefinitionImpl.java:244)
at org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcreteComponentImpl.java:535)
at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java:1602)
at org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchemaImpl.java:2463)
at org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDConcreteComponentImpl.java:1154)
at org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSchemaImpl.java:893)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:763)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:796)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1282)
at org.geotools.xml.Schemas.parse(Schemas.java:313)
at org.geotools.xml.AppSchemaXSDRegistry.locateSchema(AppSchemaXSDRegistry.java:123)
at org.geotools.xml.Schemas$SchemaLocatorAdapter.locateSchema(Schemas.java:1673)
The error occurs if running geoserver with app-schema the first time with -Xmx512m.
If I replace app-schema-cache with the existing one or increase xmx to 1024m, it works.
You can recreate this with app-schema-tutorial. https://github.com/geoserver/geoserver/tree/master/data/app-schema-tutorial

Project: GeoTools
Priority: Major Major
Reporter: Rini Angreani
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to