Hi,
I'm trying to build a java class that will automatically submit new
files to a specific collection.
When the program executes
Context c = new Context();
I got this error:
Exception in thread "main" java.sql.SQLException:
java.lang.NullPointerException
at
org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1721)
at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:742)
at org.dspace.core.Context.<init>(Context.java:105)
at dlp.Prova.main(Prova.java:31)
The strange thing is if I use the web interface, the submission system
works perfectly.
So I think or I'm missing some configuration or there's something wrong
in my code.
Can someone help me?
Cheers,
Francesco
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Vuoi essere in grado di saper scrivere un Business Plan vincente? Impara
subito seguendo questo videocorso multimediale
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6198&d=2-4
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech