[Geoserver-devel] CITE WMS 1.3 failures after ResourceStore API changes (PR #1346)

Niels,

it looks like GeoServer CITE WMS 1.3 fails to start with a BeanCreationException every time since I merged your PR #1346 (ResourceStore API changes) last week:
http://ares.opengeo.org/jenkins/job/cite-wms-1.3/

I have no idea why this only affects CITE WMS 1.3.

One possibility is that I corrupted the workspace by manually stopping the first build (I forgot to kick nightly). If this is the case, local filesystem intervention may be needed.

Jody, it would be good if this is fixed before your milestone release next week.

Here is a sample error message:

2015-12-09 17:01:57.645:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@anonymised.com{/geoserver,file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/,STARTING}{/geoserver}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gwcFacade' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-gwc-2.9-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean 'dispatcher' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispatcher' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'workspaceLocal' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean 'geoServer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geoServer' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: com.thoughtworks.xstream.io.StreamException: : input contained no data
[...]
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispatcher' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'workspaceLocal' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean 'geoServer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geoServer' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: com.thoughtworks.xstream.io.StreamException: : input contained no data
[...]

Kind regards,

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

Hello Ben,

I can see what the problem is. The logging.xml file in the data directory is existing but corrupt. I can replicate the error by making this file on my local system completely empty (but not deleting it).

The problem can be solved by removing the file or replacing it with a real logging.xml configuration file.

Just wondering, since geoserver is lenient towards not having no such file at all, if we should be lenient as well to it being empty / faulty. We could catch the exception, log a warning and further act as if the file wasn't there. Just a preposition.

Kind Regards
Niels

On 09-12-15 20:47, Ben Caradoc-Davies wrote:

Niels,

it looks like GeoServer CITE WMS 1.3 fails to start with a BeanCreationException every time since I merged your PR #1346 (ResourceStore API changes) last week:
http://ares.opengeo.org/jenkins/job/cite-wms-1.3/

I have no idea why this only affects CITE WMS 1.3.

One possibility is that I corrupted the workspace by manually stopping the first build (I forgot to kick nightly). If this is the case, local filesystem intervention may be needed.

Jody, it would be good if this is fixed before your milestone release next week.

Here is a sample error message:

2015-12-09 17:01:57.645:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@anonymised.com{/geoserver,file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/,STARTING}{/geoserver}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gwcFacade' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-gwc-2.9-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean 'dispatcher' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispatcher' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'workspaceLocal' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean 'geoServer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geoServer' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: com.thoughtworks.xstream.io.StreamException: : input contained no data
[...]
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispatcher' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'workspaceLocal' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean 'geoServer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geoServer' defined in URL [jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: com.thoughtworks.xstream.io.StreamException: : input contained no data
[...]

Kind regards,

Hi Niels,
I agree we should try to be tolerant. Log an exception and move on (without altering the file),
several users might be stumped otherwise.

Cheers
Andrea

···

On Thu, Dec 10, 2015 at 7:15 AM, Niels Charlier <niels@anonymised.com…> wrote:

Hello Ben,

I can see what the problem is. The logging.xml file in the data
directory is existing but corrupt. I can replicate the error by making
this file on my local system completely empty (but not deleting it).

The problem can be solved by removing the file or replacing it with a
real logging.xml configuration file.

Just wondering, since geoserver is lenient towards not having no such
file at all, if we should be lenient as well to it being empty / faulty.
We could catch the exception, log a warning and further act as if the
file wasn’t there. Just a preposition.

Kind Regards
Niels

On 09-12-15 20:47, Ben Caradoc-Davies wrote:

Niels,

it looks like GeoServer CITE WMS 1.3 fails to start with a
BeanCreationException every time since I merged your PR #1346
(ResourceStore API changes) last week:
http://ares.opengeo.org/jenkins/job/cite-wms-1.3/

I have no idea why this only affects CITE WMS 1.3.

One possibility is that I corrupted the workspace by manually stopping
the first build (I forgot to kick nightly). If this is the case, local
filesystem intervention may be needed.

Jody, it would be good if this is fixed before your milestone release
next week.

Here is a sample error message:

2015-12-09 17:01:57.645:WARN:oejw.WebAppContext:main: Failed startup
of context
o.e.j.w.WebAppContext@anonymised.com{/geoserver,file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/,STARTING}{/geoserver}
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘gwcFacade’ defined in URL
[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-gwc-2.9-SNAPSHOT.jar!/applicationContext.xml]:
Cannot resolve reference to bean ‘dispatcher’ while setting
constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘dispatcher’ defined in URL
[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘workspaceLocal’ defined in URL
[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:
Cannot resolve reference to bean ‘geoServer’ while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘geoServer’ defined in URL
[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.RuntimeException:
com.thoughtworks.xstream.io.StreamException: : input contained no data
[…]
Caused by:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘dispatcher’ defined in URL
[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘workspaceLocal’ defined in URL
[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:
Cannot resolve reference to bean ‘geoServer’ while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘geoServer’ defined in URL
[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.RuntimeException:
com.thoughtworks.xstream.io.StreamException: : input contained no data
[…]

Kind regards,



Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Geosolutions’ Winter Holidays from 24/12 to 6/1

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


Fixed by:
https://github.com/geoserver/geoserver/pull/1363
and:
https://github.com/geoserver/geoserver/commit/d98e27c8958d1e6c2ef5f76d64694b75dba75e93

Kind regards,
Ben.

On 11/12/15 03:25, Andrea Aime wrote:

Hi Niels,
I agree we should try to be tolerant. Log an exception and move on (without
altering the file),
several users might be stumped otherwise.

Cheers
Andrea

On Thu, Dec 10, 2015 at 7:15 AM, Niels Charlier <niels@anonymised.com> wrote:

Hello Ben,

I can see what the problem is. The logging.xml file in the data
directory is existing but corrupt. I can replicate the error by making
this file on my local system completely empty (but not deleting it).

The problem can be solved by removing the file or replacing it with a
real logging.xml configuration file.

Just wondering, since geoserver is lenient towards not having no such
file at all, if we should be lenient as well to it being empty / faulty.
We could catch the exception, log a warning and further act as if the
file wasn't there. Just a preposition.

Kind Regards
Niels

On 09-12-15 20:47, Ben Caradoc-Davies wrote:

Niels,

it looks like GeoServer CITE WMS 1.3 fails to start with a
BeanCreationException every time since I merged your PR #1346
(ResourceStore API changes) last week:
http://ares.opengeo.org/jenkins/job/cite-wms-1.3/

I have no idea why this only affects CITE WMS 1.3.

One possibility is that I corrupted the workspace by manually stopping
the first build (I forgot to kick nightly). If this is the case, local
filesystem intervention may be needed.

Jody, it would be good if this is fixed before your milestone release
next week.

Here is a sample error message:

2015-12-09 17:01:57.645:WARN:oejw.WebAppContext:main: Failed startup
of context
o.e.j.w.WebAppContext@anonymised.com

{/geoserver,file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/,STARTING}{/geoserver}

org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'gwcFacade' defined in URL

[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-gwc-2.9-SNAPSHOT.jar!/applicationContext.xml]:

Cannot resolve reference to bean 'dispatcher' while setting
constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'dispatcher' defined in URL

[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:

Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'workspaceLocal' defined in URL

[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:

Cannot resolve reference to bean 'geoServer' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'geoServer' defined in URL

[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:

Initialization of bean failed; nested exception is
java.lang.RuntimeException:
com.thoughtworks.xstream.io.StreamException: : input contained no data
[...]
Caused by:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'dispatcher' defined in URL

[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:

Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'workspaceLocal' defined in URL

[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:

Cannot resolve reference to bean 'geoServer' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'geoServer' defined in URL

[jar:file:/var/lib/jenkins/workspace/geoserver-cite/geoserver/geoserver-2.9-SNAPSHOT/webapps/geoserver/WEB-INF/lib/gs-main-2.9-SNAPSHOT.jar!/applicationContext.xml]:

Initialization of bean failed; nested exception is
java.lang.RuntimeException:
com.thoughtworks.xstream.io.StreamException: : input contained no data
[...]

Kind regards,

------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand