Hi everybody,
I'm facing some difficulties trying to extend a data type that I created via plugin (from workshop 2016 example but with updated plugin project)
After some time understanding how it works I finally got it to work: create an experiment, edit it after creating and deleting it.
But now I want to add one more element to my schema. I just added the element (pasted a previous one and changed the name), edited the edit and report vm files.
Everything looked fine until I try to submit a new experiment (image attached).
from sql.log:
INSERT INTO nonimage_clinicalInformation (id,fever,clinicalinformation_info,session_date,weight,pulse,height) VALUES ('XNAT_E00005',0,8,'Sun Feb 17 00:00:00 CET 2002','70',56,'174') was aborted. Call getNextException to see the cause.
2017-04-03 17:44:39,206 -
org.postgresql.util.PSQLException: ERROR: column "pulse" of relation "nonimage_clinicalinformation" does not exist
Position: 98
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2310)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2023)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:377)
It seems my new column was not created but....
Catalina.out log shows that it got this new element and updated the db.
...
SOURCE: /var/lib/tomcat7/webapps/ROOT/
===========================
Database out of date... updating
ALTER TABLE nonimage_clinicalInformation_history ADD COLUMN pulse INTEGER;
ALTER TABLE nonimage_clinicalInformation ADD COLUMN pulse INTEGER NOT NULL ;
===========================
Apr 03, 2017 5:19:55 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /var/lib/tomcat7/webapps/ROOT.war has finished in 76,183 ms
Apr 03, 2017 5:19:55 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Apr 03, 2017 5:19:55 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 76431 ms
Loaded om object (org.nrg.xdat.om.NonimageClinicalinformation) as context parameter 'om'.
Loaded subject object (org.nrg.xdat.om.XnatSubjectdata) as context parameter 'subject'.
Another other problem is that I cannot see the data I inserted before I changed the datatype
We are unable to provide the requested data. Either you have encountered a link to erroneous data, or this user account (admin) does not have access to this data.
Please login with a different account or contact the source of the data to gain access.