Re: [Dspace-tech] Strange issue with DSpace 3.0

2014-05-30 Thread Carlos Walter Blandon Alvarez
Hi helix84.

Recently, we have this problem to access to “Control Panel/ DSpace 
Configuration”. A few weeks ago, this option usually worked and we have not 
made recent changes to DSpace.

org.dspace.app.xmlui.wing.WingInvalidArgument: The 'characters' parameter is 
required for list items.

Java stacktrace
org.dspace.app.xmlui.wing.WingInvalidArgument: The 'characters' parameter is 
required for list items.
at 
org.dspace.app.xmlui.wing.element.AbstractWingElement.require(AbstractWingElement.java:117)
at org.dspace.app.xmlui.wing.element.List.addItem(List.java:292)
at 
org.dspace.app.xmlui.aspect.administrative.ControlPanel.addDSpaceConfiguration(ControlPanel.java:527)
at 
org.dspace.app.xmlui.aspect.administrative.ControlPanel.addBody(ControlPanel.java:324)


In dspace.cfg and build.properties files, db.maxconnections  parameter isn’t 
empty or commented. We have DSpace 4.0.


Regards.

[http://www.eafit.edu.co/firmadigital/logo-EAFIT-color-peq-01.jpg]

Walter Blandón

Profesional-Analista Gestión Tecnológica
Centro Cultural Biblioteca LEV
Teléfono (57 4) 261 9500, extensión 9365
cblan...@eafit.edu.comailto:cblan...@eafit.edu.co



Carrera 49  N 7 sur – 50, Medellín - Colombia
Línea de atención al usuario: (57 4) 4489500  
www.eafit.edu.cohttp://www.eafit.edu.co/



De: helix84 [mailto:heli...@centrum.sk]
Enviado el: lunes, 11 de marzo de 2013 10:11 a.m.
Para: Alan Orth
CC: dspace-tech@lists.sourceforge.net
Asunto: Re: [Dspace-tech] Strange issue with DSpace 3.0

Hi Alan,

you can determine the cause by looking at this part of the stacktrace:



Caused by: org.dspace.app.xmlui.wing.WingInvalidArgument: The 'characters' 
parameter is required for list items.

at 
org.dspace.app.xmlui.wing.element.AbstractWingElement.require(AbstractWingElement.java:117)

at org.dspace.app.xmlui.wing.element.List.addItem(List.java:292)

at 
org.dspace.app.xmlui.aspect.administrative.ControlPanel.addDSpaceConfiguration(ControlPanel.java:511)

This tells you that the 'characters' parameter is an empty string and addItem 
uses the require() method to check for that. If you go up a call, addItem() is 
called from the ControlPanel class, specifically line 511:

https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/ControlPanel.java#L511

The parameter passed to addItem() is db.maxconnections property from 
dspace.cfg. So it seems you either didn't define it or left it empty. If you 
didn't touch this property in dspace.cfg, the problem is in build.properties. 
All properties defined in build.properties are transferred to dspace.cfg when 
you execute ant (update or fresh_install). You have to make sure you do not 
comment out any line in build.properties. Read the warning here:
https://wiki.duraspace.org/display/DSDOC3x/Configuration#Configuration-Thebuild.propertiesConfigurationPropertiesFile


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Strange issue with DSpace 3.0

2013-03-11 Thread Alan Orth
All,

I'm just testing a DSpace 1.8.2 - 3.0 upgrade and I'm having some 
strange issues; all my custom themes and config work, but I get this 
weird error when trying to look at the DSpace Configuration tab in the 
control panel:

org.dspace.app.xmlui.wing.WingInvalidArgument: The 'characters' 
parameter is required for list items.

Full Java stack trace is here: http://pastebin.com/raw.php?i=9Mu5EQUU

Anyone have an idea what's wrong?  My platform is Debian 6, Sun Java 6 
1.6.0_18, Tomcat 6.

Cheers,

-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone. 
-Bjarne Stroustrup, inventor of C++


--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Strange issue with DSpace 3.0

2013-03-11 Thread helix84
Hi Alan,

you can determine the cause by looking at this part of the stacktrace:

Caused by: org.dspace.app.xmlui.wing.WingInvalidArgument: The
'characters' parameter is required for list items.
at 
org.dspace.app.xmlui.wing.element.AbstractWingElement.require(AbstractWingElement.java:117)
at org.dspace.app.xmlui.wing.element.List.addItem(List.java:292)
at 
org.dspace.app.xmlui.aspect.administrative.ControlPanel.addDSpaceConfiguration(ControlPanel.java:511)


This tells you that the 'characters' parameter is an empty string and
addItem uses the require() method to check for that. If you go up a call,
addItem() is called from the ControlPanel class, specifically line 511:

https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/ControlPanel.java#L511

The parameter passed to addItem() is db.maxconnections property from
dspace.cfg. So it seems you either didn't define it or left it empty. If
you didn't touch this property in dspace.cfg, the problem is in
build.properties. All properties defined in build.properties are
transferred to dspace.cfg when you execute ant (update or fresh_install).
You have to make sure you do not comment out any line in build.properties.
Read the warning here:
https://wiki.duraspace.org/display/DSDOC3x/Configuration#Configuration-Thebuild.propertiesConfigurationPropertiesFile


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Strange issue with DSpace 3.0

2013-03-11 Thread Alan Orth
Helix,

Ah, so you're right.  For the record, I had been comparing our configs to
those in the dspace-3.0 release in preparation for upgrading from 1.8.  I
pulled over some new syntax changes, including what I thought were defaults
in the new config file, such as db.maxconnections.  Defining them as listed
in 3.0's dspace.cfg[1] resulted in a build error:

BUILD FAILED
/home/aorth/src/git/DSpace/dspace/target/dspace-3.0-build/build.xml:88:
Property db.maxconnections was circularly defined.

... so I left it blank (or commented it out, I can't remember now).  That's
how I ended up with the weird Cocoon crashes.

Anyways, I'm now up and running.  If you think it's worth it, I'll submit a
bug report / pull request so we can hopefully stop others from running into
this same error?

Cheers,

[1]
https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace/config/dspace.cfg#L74


On Mon, Mar 11, 2013 at 6:10 PM, helix84 heli...@centrum.sk wrote:

 Hi Alan,

 you can determine the cause by looking at this part of the stacktrace:

 Caused by: org.dspace.app.xmlui.wing.WingInvalidArgument: The 'characters' 
 parameter is required for list items.
   at 
 org.dspace.app.xmlui.wing.element.AbstractWingElement.require(AbstractWingElement.java:117)
   at org.dspace.app.xmlui.wing.element.List.addItem(List.java:292)
   at 
 org.dspace.app.xmlui.aspect.administrative.ControlPanel.addDSpaceConfiguration(ControlPanel.java:511)


 This tells you that the 'characters' parameter is an empty string and
 addItem uses the require() method to check for that. If you go up a call,
 addItem() is called from the ControlPanel class, specifically line 511:


 https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/ControlPanel.java#L511

 The parameter passed to addItem() is db.maxconnections property from
 dspace.cfg. So it seems you either didn't define it or left it empty. If
 you didn't touch this property in dspace.cfg, the problem is in
 build.properties. All properties defined in build.properties are
 transferred to dspace.cfg when you execute ant (update or fresh_install).
 You have to make sure you do not comment out any line in build.properties.
 Read the warning here:

 https://wiki.duraspace.org/display/DSDOC3x/Configuration#Configuration-Thebuild.propertiesConfigurationPropertiesFile


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
In heaven all the interesting people are missing. -Friedrich Nietzsche
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Strange issue with DSpace 3.0

2013-03-11 Thread helix84
On Mar 11, 2013 9:00 PM, Alan Orth alan.o...@gmail.com wrote:

 Helix,

 Ah, so you're right.  For the record, I had been comparing our configs to
those in the dspace-3.0 release in preparation for upgrading from 1.8.  I
pulled over some new syntax changes, including what I thought were defaults
in the new config file, such as db.maxconnections.  Defining them as listed
in 3.0's dspace.cfg[1] resulted in a build error:

Glad that solved it for you. What do you mean by defining them as listed.
What's in your dspace.cfg and what in your build.properties?

 BUILD FAILED
 /home/aorth/src/git/DSpace/dspace/target/dspace-3.0-build/build.xml:88:
Property db.maxconnections was circularly defined.

 ... so I left it blank (or commented it out, I can't remember now).
 That's how I ended up with the weird Cocoon crashes.

There's an important difference between those two, as the warning says.

 Anyways, I'm now up and running.  If you think it's worth it, I'll submit
a bug report / pull request so we can hopefully stop others from running
into this same error?

I agree this is unfortunate, but I don't think this can be easily solved
properly.

The original issue introducing this feature is here:
https://jira.duraspace.org/browse/DS-1208
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Strange issue with DSpace 3.0

2013-03-11 Thread Alan Orth
Helix,

I wasn't using any special build.properties; just the default one in the
dspace-3.0 tree.  I suppose the settings should have been inherited from
there, where they *are* defined.

Regarding defining them as listed, I had meant that I just copied the
lines over literally from dspace/config/dspace.cfg into our local dspace
config.  That's when I got the circular definition error, but I can't
remember now if I fixed the error by commenting them out or simply setting
them to = nothing. :\

Alan

On Mon, Mar 11, 2013 at 11:12 PM, helix84 heli...@centrum.sk wrote:


 On Mar 11, 2013 9:00 PM, Alan Orth alan.o...@gmail.com wrote:
 
  Helix,
 
  Ah, so you're right.  For the record, I had been comparing our configs
 to those in the dspace-3.0 release in preparation for upgrading from 1.8.
  I pulled over some new syntax changes, including what I thought were
 defaults in the new config file, such as db.maxconnections.  Defining them
 as listed in 3.0's dspace.cfg[1] resulted in a build error:

 Glad that solved it for you. What do you mean by defining them as listed.
 What's in your dspace.cfg and what in your build.properties?

  BUILD FAILED
  /home/aorth/src/git/DSpace/dspace/target/dspace-3.0-build/build.xml:88:
 Property db.maxconnections was circularly defined.
 
  ... so I left it blank (or commented it out, I can't remember now).
  That's how I ended up with the weird Cocoon crashes.

 There's an important difference between those two, as the warning says.

  Anyways, I'm now up and running.  If you think it's worth it, I'll
 submit a bug report / pull request so we can hopefully stop others from
 running into this same error?

 I agree this is unfortunate, but I don't think this can be easily solved
 properly.

 The original issue introducing this feature is here:
 https://jira.duraspace.org/browse/DS-1208




-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
In heaven all the interesting people are missing. -Friedrich Nietzsche
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Strange issue with DSpace 3.0

2013-03-11 Thread helix84
On Mar 11, 2013 9:45 PM, Alan Orth alan.o...@gmail.com wrote:
 Regarding defining them as listed, I had meant that I just copied the
lines over literally from dspace/config/dspace.cfg into our local dspace
config.  That's when I got the circular definition error,

Ok, I understand now. You copied the unfiltered values to your installed
config:

https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace/config/dspace.cfg#L74

This is saying assign X to X, where X is undefined. Therfore a circular
definition.

Filtering is replacing values in those curly braces in dspace.cfg by values
from build.properties. This happens when you run ant.

 but I can't remember now if I fixed the error by commenting them out or
simply setting them to = nothing. :\

In dspace.cfg both would usually work. In build.properties never come to
out anything.
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette