Project

General

Profile

Bug #171

Bug in getCalibration()

Added by Karadzhov, Yordan over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Forrest, David
Category:
-
Start date:
05 November 2010
Due date:
% Done:

100%

Estimated time:

Description

Bug in getCalibration().
Instead of

element_0 (p_0, ..., p_n)
element_1 (p_0, ..., p_n)
.......
element_m (p_0, ..., p_n)

the function returns

element_0 (p_0, ..., p_(n.m))
element_0 (p_0, ..., p_(n.m))
.......
element_0 (p_0, ..., p_(n.m))

The XML used to upload the calibration and the response of the DB mirror are uploaded. The DB mirror had been installed according the instructions for the Configuration Database Workshop.


Files

getcalib.txt (5.59 KB) getcalib.txt Karadzhov, Yordan, 05 November 2010 10:05
newcalib.txt (1.81 KB) newcalib.txt Karadzhov, Yordan, 05 November 2010 10:05
apia.tar.gz (29.8 MB) apia.tar.gz Forrest, David, 05 November 2010 15:53
getCalibration.txt (2.99 KB) getCalibration.txt Karadzhov, Yordan, 08 November 2010 15:21
getSetValues.txt (1.16 KB) getSetValues.txt Karadzhov, Yordan, 08 November 2010 15:21
setCalibration.txt (2.47 KB) setCalibration.txt Karadzhov, Yordan, 08 November 2010 15:21
MICEdb.java (3.14 KB) MICEdb.java Forrest, David, 08 November 2010 17:26
#1

Updated by Forrest, David over 13 years ago

  • Status changed from Open to In Progress

Looking into it

#2

Updated by Forrest, David over 13 years ago

Hey Yordan

Thanks for spotting this and flagging it. Its resolved in the live version and I will give you a fix to your personal mirror.

I have taken the liberty of providing other changes to which fix cosmetic things like the serialNumber/element discrepency between read and write.

Go to
http://micewww.pp.rl.ac.uk:8080/configdb/for/yordan/
and you will find files to replace the java classes in your apia directory.

Then run javac *.java in the apia directory and restart your apache tomcat instance (running shutdown, deploy and startup with a few seconds delay between each) and you're good to go.

You can also run a test by running yordanCalib.xml then getCalibTSDet.xml

Let me know if this resolves the matter for you

#3

Updated by Forrest, David over 13 years ago

Please note I'm off to some remote location for the weekend but will be back on Monday

Please mark the thing 'resolved' if it is and leave a question if not :P

#4

Updated by Tunnell, Christopher over 13 years ago

is it possible to get an archive of the live version so I can put it all in a repository for you? This could help remove these sorts of confusions...

It doesn't have to be a final version to be in a repository.

#5

Updated by Karadzhov, Yordan over 13 years ago

Thanks David,
Can you upload again demoAPIv1.tar.gz because it is not available at
http://heplnm068.pp.rl.ac.uk:8080/dbworkshop/demoAPIv1.tar.gz
I manage to break my mirror installation.

#6

Updated by Tunnell, Christopher over 13 years ago

try:

http://micewww.pp.rl.ac.uk:8080/configdb/dbworkshop/demoAPIv1.tar.gz

since I moved the configdb stuff into a configdb folder. Where did you find that link? I changed the ones I could find.

#7

Updated by Rogers, Chris over 13 years ago

Tunnell, Christopher wrote:

is it possible to get an archive of the live version so I can put it all in a repository for you? This could help remove these sorts of confusions...

It doesn't have to be a final version to be in a repository.

You could make this a new issue...

#8

Updated by Karadzhov, Yordan over 13 years ago

Hi David,

Go to
http://micewww.pp.rl.ac.uk:8080/configdb/for/yordan/
and you will find files to replace the java classes in your apia directory.

Then run javac *.java in the apia directory and restart your apache tomcat instance (running shutdown, deploy and startup with a few seconds delay between each) and you're good to go.

After doing this, the mirror do not work as before. The attached files are a request and answer for run information (getSetValues.txt) and a request and answer for calibration(getCalibration.txt). However it seems like setCalibration is Ok (setCalibration.txt).

#9

Updated by Forrest, David over 13 years ago

Hi Yordan

Can you attach those files again I can't see them

#11

Updated by Forrest, David over 13 years ago

Ok thanks Yordan
I can see whats wrong from what you've given me and how to fix it but gotta rush off to a meeting. I should have an answer for you by the end of the day.

#12

Updated by Forrest, David over 13 years ago

Ok, mea culpa, forgot the differences in the demo version of the postgres instance.

So replace your MICEdb.java file with this one

Recompile*, Restart postgres** and tomcat*** and try again.

*javac *.java in apia folder
as postgres user, pg_ctl -D /wherever/ stop, pg_ctl -D /wherever start
*in bin folder of tomcat run shutdown, startup, and deploy (giving it the miceapi.xml file as an argument) with a few seconds delay between each

#13

Updated by Karadzhov, Yordan over 13 years ago

So replace your MICEdb.java file with this one

Recompile*, Restart postgres** and tomcat*** and try again.

*javac *.java in apia folder

This do not work. I have the following error message:
MICEapi.java:754: cannot find symbol
symbol : method getConnection()
location: class api6.apia.MICEdb
Connection conn=mdb.getConnection();
^
1 error

I manage to solve this and now it seems to me like everything is OK.

#14

Updated by Karadzhov, Yordan over 13 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF