Hi All,
I've downloaded the source code from SourceForge
(dspace-1.8.2-src-release.tar.gz) and found that the lines Helix84 mentioned
before in the svn differ from the tar., and are listed next:
The CCLicenseStep.java line 121 is (marked with "**"):
...
Select selectList =
list.addItem().addSelect("licenseclass_chooser");
selectList.setLabel(T_license);
selectList.setEvtBehavior("submitOnChange");
** Iterator<CCLicense> iterator =
cclookup.getLicenses(ConfigurationManager.getProperty("default.locale")).iterator();
// build select List - first choice always 'choose a
license', last always 'No license'
selectList.addOption(T_select_change.getKey(),
T_select_change);
while (iterator.hasNext()) {
CCLicense cclicense = iterator.next();
...
By the way, in my dspace.cfc is default.locale is set to "es"
default.locale = es
Please, can you take a look? I can't hit the nail!!
Regards,
Enrique Martínez.
-----Mensaje original-----
De: Martínez Zuñiga, Enrique [mailto:[email protected]]
Enviado el: martes, 09 de octubre de 2012 11:49 a.m.
Para: [email protected]
CC: [email protected]
Asunto: Re: [Dspace-tech] java.lang.NullPointerException when submission hits
the CC License Step
Hi Helix84,
Apologize for omitting: The actual DSpace version is 1.8.2, installed from
dspace-1.8.2-release.tar.gz, on Debian 6 (Squeeze) with Tomcat 6 behind Apache
2.2.16, and PostgreSQL 8.4.12.
I have not modified the source code, but had previously examined these lines of
code, and it leads nowhere.
I'm looking further...
Thank you!
Enrique.
-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de helix84
Enviado el: lunes, 08 de octubre de 2012 04:32 p.m.
Para: Martínez Zuñiga, Enrique
CC: [email protected]
Asunto: Re: [Dspace-tech] java.lang.NullPointerException when submission hits
the CC License Step
Hi Enrique,
I'm assuming from your documentation link that you're using DSpace 1.8.
On Mon, Oct 8, 2012 at 10:48 PM, Martínez Zuñiga, Enrique <[email protected]>
wrote:
> java.lang.NullPointerException
> at
> org.dspace.app.xmlui.aspect.submission.submit.CCLicenseStep.addBody(CC
> LicenseStep.java:121)
This is the relevant line of code:
https://github.com/DSpace/DSpace/blob/dspace-1_8_x/dspace-api/src/main/java/org/dspace/submit/step/CCLicenseStep.java#L121
I'm not sure why it says 121 and not 120 (did you change any code in this file?
Can you confirm that the line has the same contents in your source?), but it
seems to me that the only thing there that can be null is choiceButton. Does
that help explain what's going on? I'm not very familiar with sumbission forms.
Regards,
~~helix84
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM Deploy
New Relic app performance management and know exactly what is happening inside
your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and
get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech