[Geoserver-users] Geoserver Style/Publishing Error

Hey all,

I’ve run into a problem all of a sudden. When I try to look at a style I get the following error:
org.apache.wicket.WicketRuntimeException: Can’t instantiate page using constructor public org.geoserver.wms.web.data.StyleEditPage(org.apache.wicket.PageParameters) and argument name = “[MyStyle]”

When I go to a Layer → Publishing I get the following:

org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = defaultStyle]]

I’ve made no changes to the server (other than restarting it) so not sure how this has come about. I’m guessing it’s about styles but not sure what is wrong?

Has anyone had this issue before?

Cheers,
Ben

On Wed, Apr 8, 2015 at 10:51 AM, Ben Crane <curtly.boon@anonymised.com> wrote:

Hey all,

I've run into a problem all of a sudden. When I try to look at a style I
get the following error:
org.apache.wicket.WicketRuntimeException: Can't instantiate page using
constructor public
org.geoserver.wms.web.data.StyleEditPage(org.apache.wicket.PageParameters)
and argument name = "[MyStyle]"

When I go to a Layer -> Publishing I get the following:

org.apache.wicket.WicketRuntimeException: Exception in rendering
component: [MarkupContainer [Component id = defaultStyle]]

I've made no changes to the server (other than restarting it) so not sure
how this has come about. I'm guessing it's about styles but not sure what
is wrong?

Has anyone had this issue before?

Does not ring a bell... could you share the full track traces with the same
error messages, they are found in the logs (which you can also access from
the UI).

Cheers
Andrea

--

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

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.

-------------------------------------------------------

Hi Andrea,

I think I’ve figured it out: the error not the solution :slight_smile:

When I check if the styles exists in GeoServer using http://localhost:8080/geoserver/rest/styles (I’ve used the default data_dir/styles location) they don’t appear but they are showing in the Geoserver Admin Page. The files do exist (XML and SLD) in the styles folder so I presume something has got disconnected between the admin page and the server and this is causing the errors and preventing the WMS layers from displaying.

So the question is, is there any way of clearing or re-adding these SLD files into the server? Right now, I cannot use these layers or styles so effectively GeoServer is broken and I don’t want to re-install GS unless it’s a last resort…I was thinking I could use CURL to load the SLD files back into geoserver - then restart and see if the admin webpage problem goes away…?

Thoughts? Crazy or logical :slight_smile:

Ben

···

On Wed, Apr 8, 2015 at 10:15 AM, Ben Crane <curtly.boon@anonymised.com> wrote:

Hi Andrea,

Sure, this is what I get from the UI - I’ve attached them as text files to make it a little more readable.

The publishing_gs.txt is the error I get when I click on a Layer → Publishing

The styles_gi.txt is the error I get when I go to Styles and try to select an existing (custom) style

Ben

On Wed, Apr 8, 2015 at 10:00 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Wed, Apr 8, 2015 at 10:51 AM, Ben Crane <curtly.boon@anonymised.com> wrote:

Hey all,

I’ve run into a problem all of a sudden. When I try to look at a style I get the following error:
org.apache.wicket.WicketRuntimeException: Can’t instantiate page using constructor public org.geoserver.wms.web.data.StyleEditPage(org.apache.wicket.PageParameters) and argument name = “[MyStyle]”

When I go to a Layer → Publishing I get the following:

org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = defaultStyle]]

I’ve made no changes to the server (other than restarting it) so not sure how this has come about. I’m guessing it’s about styles but not sure what is wrong?

Has anyone had this issue before?

Does not ring a bell… could you share the full track traces with the same error messages, they are found in the logs (which you can also access from the UI).

Cheers
Andrea

==

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

==

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.


Solved!! :slight_smile:

Stupid me - user error. I imported my data into a Workspace and then did the same with the styles. Problem was I had duplicate styles in the default location so when I removed the duplicate styles in the default location it all magically started working when I restarted the server…

···

On Wed, Apr 8, 2015 at 2:10 PM, Ben Crane <curtly.boon@anonymised.com> wrote:

Hi Andrea,

I think I’ve figured it out: the error not the solution :slight_smile:

When I check if the styles exists in GeoServer using http://localhost:8080/geoserver/rest/styles (I’ve used the default data_dir/styles location) they don’t appear but they are showing in the Geoserver Admin Page. The files do exist (XML and SLD) in the styles folder so I presume something has got disconnected between the admin page and the server and this is causing the errors and preventing the WMS layers from displaying.

So the question is, is there any way of clearing or re-adding these SLD files into the server? Right now, I cannot use these layers or styles so effectively GeoServer is broken and I don’t want to re-install GS unless it’s a last resort…I was thinking I could use CURL to load the SLD files back into geoserver - then restart and see if the admin webpage problem goes away…?

Thoughts? Crazy or logical :slight_smile:

Ben

On Wed, Apr 8, 2015 at 10:15 AM, Ben Crane <curtly.boon@anonymised.com> wrote:

Hi Andrea,

Sure, this is what I get from the UI - I’ve attached them as text files to make it a little more readable.

The publishing_gs.txt is the error I get when I click on a Layer → Publishing

The styles_gi.txt is the error I get when I go to Styles and try to select an existing (custom) style

Ben

On Wed, Apr 8, 2015 at 10:00 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Wed, Apr 8, 2015 at 10:51 AM, Ben Crane <curtly.boon@anonymised.com> wrote:

Hey all,

I’ve run into a problem all of a sudden. When I try to look at a style I get the following error:
org.apache.wicket.WicketRuntimeException: Can’t instantiate page using constructor public org.geoserver.wms.web.data.StyleEditPage(org.apache.wicket.PageParameters) and argument name = “[MyStyle]”

When I go to a Layer → Publishing I get the following:

org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = defaultStyle]]

I’ve made no changes to the server (other than restarting it) so not sure how this has come about. I’m guessing it’s about styles but not sure what is wrong?

Has anyone had this issue before?

Does not ring a bell… could you share the full track traces with the same error messages, they are found in the logs (which you can also access from the UI).

Cheers
Andrea

==

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

==

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.