1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <testsuite errors="0" failures="30" name="" skips="5" tests="259" time="4745.541"><testcase classname="test.integration.test_cmdcallback" name="TestCB" time="0"><skipped message="collection skipped">('/homes/hudson-x/virtualenv/lib/python2.6/site-packages/_pytest/python.py', 400, "Skipped: class test.integration.test_cmdcallback.TestCB with __init__ won't get collected")</skipped></testcase><testcase classname="test.integration.test_admin.TestAdmin" name="test9193" time="1.64174413681"/><testcase classname="test.integration.test_admin.TestAdmin" name="testChangePassword" time="0.48099899292"/><testcase classname="test.integration.test_admin.TestAdmin" name="testChangePasswordWhenUnset" time="6.6237859726"/><testcase classname="test.integration.test_admin.TestAdmin" name="testGetEventContext4011" time="0.594038009644"/><testcase classname="test.integration.test_admin.TestAdmin" name="testGetGroup" time="0.240661859512"/><testcase classname="test.integration.test_admin.TestAdmin" name="testSetGroup" time="0.299597024918"/><testcase classname="test.integration.test_admin.TestAdmin" name="testSetSecurityPassword" time="0.347537994385"/><testcase classname="test.integration.test_admin.TestAdmin" name="testUserRoles4056" time="0.44384098053"/><testcase classname="test.integration.test_annotation.TestFigureExportScripts" name="testAddAnnotations" time="0.752086162567"><system-out>testAddAnnotations |
---|
3 | </system-out></testcase><testcase classname="test.integration.test_annotationPermissions.PrivateGroup" name="testAddTag" time="2.04887700081"/><testcase classname="test.integration.test_annotationPermissions.PrivateGroup" name="testReadTag" time="2.10530996323"/><testcase classname="test.integration.test_annotationPermissions.PrivateGroup" name="testRemoveTag" time="3.18762993813"/><testcase classname="test.integration.test_annotationPermissions.ReadOnlyGroup" name="testAddTag" time="1.46010804176"/><testcase classname="test.integration.test_annotationPermissions.ReadOnlyGroup" name="testReadTag" time="1.84688401222"/><testcase classname="test.integration.test_annotationPermissions.ReadOnlyGroup" name="testRemoveTag" time="3.13023090363"/><testcase classname="test.integration.test_annotationPermissions.ReadAnnotateGroup" name="testAddTag" time="2.61145281792"/><testcase classname="test.integration.test_annotationPermissions.ReadAnnotateGroup" name="testReadTag" time="1.54615902901"/><testcase classname="test.integration.test_annotationPermissions.ReadAnnotateGroup" name="testRemoveTag" time="3.59292888641"/><testcase classname="test.integration.test_bfpixelsstoreexternal.TestBfPixelsStore" name="testBMP" time="6.76248908043"><failure message="test failure">self = <test.integration.test_bfpixelsstoreexternal.TestBfPixelsStore testMethod=testBMP> |
---|
4 | |
---|
5 | def testBMP(self): |
---|
6 | > self.setUpTestFile("test.bmp") |
---|
7 | |
---|
8 | test/integration/test_bfpixelsstoreexternal.py:66: |
---|
9 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
10 | |
---|
11 | self = <test.integration.test_bfpixelsstoreexternal.TestBfPixelsStore testMethod=testBMP> |
---|
12 | name = 'test.bmp' |
---|
13 | |
---|
14 | def setUpTestFile(self, name): |
---|
15 | sess = self.root.sf |
---|
16 | filename = self.OmeroPy / ".." / ".." / ".." / "components" / "common" / "test" / name |
---|
17 | dataDir = path(sess.getConfigService().getConfigValue("omero.data.dir")); |
---|
18 | self.tmp_dir = dataDir / self.uuid() |
---|
19 | self.repo_filename = self.tmp_dir / name |
---|
20 | # Copy file into repository subdirectory |
---|
21 | path.mkdir(self.tmp_dir) |
---|
22 | shutil.copyfile(filename, self.repo_filename) |
---|
23 | # Import the same file |
---|
24 | self.pix_id = long(self.import_image(filename)[0]) |
---|
25 | self.rp = self.client.sf.createRawPixelsStore() |
---|
26 | self.rp.setPixelsId(self.pix_id, True) |
---|
27 | ### This line will deprecated on API unification. |
---|
28 | pixels = self.client.sf.createGateway().getPixels(self.pix_id) |
---|
29 | self.sizeX = pixels.getSizeX().getValue() |
---|
30 | self.sizeY = pixels.getSizeY().getValue() |
---|
31 | self.sizeZ = pixels.getSizeZ().getValue() |
---|
32 | self.sizeC = pixels.getSizeC().getValue() |
---|
33 | self.sizeT = pixels.getSizeT().getValue() |
---|
34 | # Get repository and the bf pixels store on the copied file |
---|
35 | repoMap = sess.sharedResources().repositories() |
---|
36 | repoIndex = -1 |
---|
37 | for r in range(len(repoMap.descriptions)): |
---|
38 | if repoMap.descriptions[r].name.val == dataDir.parent.name: |
---|
39 | repoIndex = r |
---|
40 | if repoIndex == -1: |
---|
41 | > self.fail("Repository not found") |
---|
42 | E AssertionError: Repository not found |
---|
43 | |
---|
44 | test/integration/test_bfpixelsstoreexternal.py:51: AssertionError</failure></testcase><testcase classname="test.integration.test_bfpixelsstoreexternal.TestBfPixelsStore" name="testDV" time="5.95531010628"><failure message="test failure">self = <test.integration.test_bfpixelsstoreexternal.TestBfPixelsStore testMethod=testDV> |
---|
45 | |
---|
46 | def testDV(self): |
---|
47 | > self.setUpTestFile("tinyTest.d3d.dv") |
---|
48 | |
---|
49 | test/integration/test_bfpixelsstoreexternal.py:71: |
---|
50 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
51 | |
---|
52 | self = <test.integration.test_bfpixelsstoreexternal.TestBfPixelsStore testMethod=testDV> |
---|
53 | name = 'tinyTest.d3d.dv' |
---|
54 | |
---|
55 | def setUpTestFile(self, name): |
---|
56 | sess = self.root.sf |
---|
57 | filename = self.OmeroPy / ".." / ".." / ".." / "components" / "common" / "test" / name |
---|
58 | dataDir = path(sess.getConfigService().getConfigValue("omero.data.dir")); |
---|
59 | self.tmp_dir = dataDir / self.uuid() |
---|
60 | self.repo_filename = self.tmp_dir / name |
---|
61 | # Copy file into repository subdirectory |
---|
62 | path.mkdir(self.tmp_dir) |
---|
63 | shutil.copyfile(filename, self.repo_filename) |
---|
64 | # Import the same file |
---|
65 | self.pix_id = long(self.import_image(filename)[0]) |
---|
66 | self.rp = self.client.sf.createRawPixelsStore() |
---|
67 | self.rp.setPixelsId(self.pix_id, True) |
---|
68 | ### This line will deprecated on API unification. |
---|
69 | pixels = self.client.sf.createGateway().getPixels(self.pix_id) |
---|
70 | self.sizeX = pixels.getSizeX().getValue() |
---|
71 | self.sizeY = pixels.getSizeY().getValue() |
---|
72 | self.sizeZ = pixels.getSizeZ().getValue() |
---|
73 | self.sizeC = pixels.getSizeC().getValue() |
---|
74 | self.sizeT = pixels.getSizeT().getValue() |
---|
75 | # Get repository and the bf pixels store on the copied file |
---|
76 | repoMap = sess.sharedResources().repositories() |
---|
77 | repoIndex = -1 |
---|
78 | for r in range(len(repoMap.descriptions)): |
---|
79 | if repoMap.descriptions[r].name.val == dataDir.parent.name: |
---|
80 | repoIndex = r |
---|
81 | if repoIndex == -1: |
---|
82 | > self.fail("Repository not found") |
---|
83 | E AssertionError: Repository not found |
---|
84 | |
---|
85 | test/integration/test_bfpixelsstoreexternal.py:51: AssertionError</failure></testcase><testcase classname="test.integration.test_bfpixelsstoreinternal.TestBfPixelsStore" name="testBMP" time="0.355892896652"><failure message="test failure">self = <test.integration.test_bfpixelsstoreinternal.TestBfPixelsStore testMethod=testBMP> |
---|
86 | |
---|
87 | def testBMP(self): |
---|
88 | > self.setUpTestFile("test.bmp") |
---|
89 | |
---|
90 | test/integration/test_bfpixelsstoreinternal.py:69: |
---|
91 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
92 | |
---|
93 | self = <test.integration.test_bfpixelsstoreinternal.TestBfPixelsStore testMethod=testBMP> |
---|
94 | name = 'test.bmp' |
---|
95 | |
---|
96 | def setUpTestFile(self, name): |
---|
97 | sess = self.root.sf |
---|
98 | filename = self.OmeroPy / ".." / ".." / ".." / "components" / "common" / "test" / name |
---|
99 | dataDir = path(sess.getConfigService().getConfigValue("omero.data.dir")); |
---|
100 | self.tmp_dir = dataDir / self.uuid() |
---|
101 | self.repo_filename = self.tmp_dir / name |
---|
102 | # Copy file into repository subdirectory |
---|
103 | path.mkdir(self.tmp_dir) |
---|
104 | shutil.copyfile(filename, self.repo_filename) |
---|
105 | # Get repository and the bf pixels store on the copied file |
---|
106 | repoMap = sess.sharedResources().repositories() |
---|
107 | repoIndex = -1 |
---|
108 | for r in range(len(repoMap.descriptions)): |
---|
109 | if repoMap.descriptions[r].name.val == dataDir.parent.name: |
---|
110 | repoIndex = r |
---|
111 | if repoIndex == -1: |
---|
112 | > self.fail("Repository not found") |
---|
113 | E AssertionError: Repository not found |
---|
114 | |
---|
115 | test/integration/test_bfpixelsstoreinternal.py:41: AssertionError</failure></testcase><testcase classname="test.integration.test_bfpixelsstoreinternal.TestBfPixelsStore" name="testDV" time="0.315435171127"><failure message="test failure">self = <test.integration.test_bfpixelsstoreinternal.TestBfPixelsStore testMethod=testDV> |
---|
116 | |
---|
117 | def testDV(self): |
---|
118 | > self.setUpTestFile("tinyTest.d3d.dv") |
---|
119 | |
---|
120 | test/integration/test_bfpixelsstoreinternal.py:74: |
---|
121 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
122 | |
---|
123 | self = <test.integration.test_bfpixelsstoreinternal.TestBfPixelsStore testMethod=testDV> |
---|
124 | name = 'tinyTest.d3d.dv' |
---|
125 | |
---|
126 | def setUpTestFile(self, name): |
---|
127 | sess = self.root.sf |
---|
128 | filename = self.OmeroPy / ".." / ".." / ".." / "components" / "common" / "test" / name |
---|
129 | dataDir = path(sess.getConfigService().getConfigValue("omero.data.dir")); |
---|
130 | self.tmp_dir = dataDir / self.uuid() |
---|
131 | self.repo_filename = self.tmp_dir / name |
---|
132 | # Copy file into repository subdirectory |
---|
133 | path.mkdir(self.tmp_dir) |
---|
134 | shutil.copyfile(filename, self.repo_filename) |
---|
135 | # Get repository and the bf pixels store on the copied file |
---|
136 | repoMap = sess.sharedResources().repositories() |
---|
137 | repoIndex = -1 |
---|
138 | for r in range(len(repoMap.descriptions)): |
---|
139 | if repoMap.descriptions[r].name.val == dataDir.parent.name: |
---|
140 | repoIndex = r |
---|
141 | if repoIndex == -1: |
---|
142 | > self.fail("Repository not found") |
---|
143 | E AssertionError: Repository not found |
---|
144 | |
---|
145 | test/integration/test_bfpixelsstoreinternal.py:41: AssertionError</failure></testcase><testcase classname="test.integration.test_bfpixelsstoreinternal.TestBfPixelsStore" name="testJPG" time="0.302980899811"><failure message="test failure">self = <test.integration.test_bfpixelsstoreinternal.TestBfPixelsStore testMethod=testJPG> |
---|
146 | |
---|
147 | def testJPG(self): |
---|
148 | > self.setUpTestFile("test.jpg") |
---|
149 | |
---|
150 | test/integration/test_bfpixelsstoreinternal.py:79: |
---|
151 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
152 | |
---|
153 | self = <test.integration.test_bfpixelsstoreinternal.TestBfPixelsStore testMethod=testJPG> |
---|
154 | name = 'test.jpg' |
---|
155 | |
---|
156 | def setUpTestFile(self, name): |
---|
157 | sess = self.root.sf |
---|
158 | filename = self.OmeroPy / ".." / ".." / ".." / "components" / "common" / "test" / name |
---|
159 | dataDir = path(sess.getConfigService().getConfigValue("omero.data.dir")); |
---|
160 | self.tmp_dir = dataDir / self.uuid() |
---|
161 | self.repo_filename = self.tmp_dir / name |
---|
162 | # Copy file into repository subdirectory |
---|
163 | path.mkdir(self.tmp_dir) |
---|
164 | shutil.copyfile(filename, self.repo_filename) |
---|
165 | # Get repository and the bf pixels store on the copied file |
---|
166 | repoMap = sess.sharedResources().repositories() |
---|
167 | repoIndex = -1 |
---|
168 | for r in range(len(repoMap.descriptions)): |
---|
169 | if repoMap.descriptions[r].name.val == dataDir.parent.name: |
---|
170 | repoIndex = r |
---|
171 | if repoIndex == -1: |
---|
172 | > self.fail("Repository not found") |
---|
173 | E AssertionError: Repository not found |
---|
174 | |
---|
175 | test/integration/test_bfpixelsstoreinternal.py:41: AssertionError</failure></testcase><testcase classname="test.integration.test_bigImages.TestFigureExportScripts" name="testRenderRegion" time="0.982433080673"><failure message="test failure">self = <test.integration.test_bigImages.TestFigureExportScripts testMethod=testRenderRegion> |
---|
176 | |
---|
177 | def testRenderRegion(self): |
---|
178 | """ |
---|
179 | Test attempts to compare a full image plane, cropped to a region, with a region retrieved from |
---|
180 | rendering engine. |
---|
181 | Uses PIL to convert compressed strings into 2D numpy arrays for cropping and comparison. |
---|
182 | ** Although cropped images and retrieved regions APPEAR identical, there appear to be rounding |
---|
183 | or rendering errors, either in the 'renderCompressed' method of the rendering engine or in PIL ** |
---|
184 | For this reason, there are small differences in the pixel values of rendered regions. |
---|
185 | This functionality is also tested in Java. |
---|
186 | Therefore this test is not 'Activated' currently. |
---|
187 | """ |
---|
188 | |
---|
189 | print "testRenderRegion" |
---|
190 | |
---|
191 | session = self.root.sf |
---|
192 | |
---|
193 | sizeX = 4 |
---|
194 | sizeY = 3 |
---|
195 | sizeZ = 1 |
---|
196 | sizeC = 1 |
---|
197 | sizeT = 1 |
---|
198 | print "sizeX", sizeX, "sizeY", sizeY |
---|
199 | image = self.createTestImage(sizeX, sizeY, sizeZ, sizeC, sizeT) |
---|
200 | print "Image ID", image.getId().getValue() |
---|
201 | pixelsId = image.getPrimaryPixels().id.val |
---|
202 | |
---|
203 | renderingEngine = session.createRenderingEngine() |
---|
204 | renderingEngine.lookupPixels(pixelsId) |
---|
205 | if not renderingEngine.lookupRenderingDef(pixelsId): |
---|
206 | renderingEngine.resetDefaults() |
---|
207 | renderingEngine.lookupRenderingDef(pixelsId) |
---|
208 | renderingEngine.load() |
---|
209 | |
---|
210 | # turn all channels on |
---|
211 | for i in range(sizeC): |
---|
212 | renderingEngine.setActive(i, True) |
---|
213 | |
---|
214 | regionDef = omero.romio.RegionDef() |
---|
215 | x = 0 |
---|
216 | y = 0 |
---|
217 | width = 2 |
---|
218 | height = 2 |
---|
219 | x2 = x+width |
---|
220 | y2 = y+height |
---|
221 | |
---|
222 | regionDef.x = x |
---|
223 | regionDef.y = y |
---|
224 | regionDef.width = width |
---|
225 | regionDef.height = height |
---|
226 | |
---|
227 | planeDef = omero.romio.PlaneDef() |
---|
228 | planeDef.z = long(0) |
---|
229 | planeDef.t = long(0) |
---|
230 | |
---|
231 | import StringIO |
---|
232 | |
---|
233 | # First, get the full rendered plane... |
---|
234 | img = renderingEngine.renderCompressed(planeDef) # compressed String |
---|
235 | fullImage = Image.open(StringIO.StringIO(img)) # convert to numpy array... |
---|
236 | #fullImage.show() |
---|
237 | img_array = asarray(fullImage) # 3D array, since each pixel is [r,g,b] |
---|
238 | print img_array.shape |
---|
239 | print img_array |
---|
240 | > not_cropped = Image.fromarray(img_array) |
---|
241 | |
---|
242 | test/integration/test_bigImages.py:98: |
---|
243 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
244 | |
---|
245 | obj = array(<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=4x3 at 0x45F1098>, dtype=object) |
---|
246 | mode = None |
---|
247 | |
---|
248 | def fromarray(obj, mode=None): |
---|
249 | arr = obj.__array_interface__ |
---|
250 | shape = arr['shape'] |
---|
251 | ndim = len(shape) |
---|
252 | try: |
---|
253 | strides = arr['strides'] |
---|
254 | except KeyError: |
---|
255 | strides = None |
---|
256 | if mode is None: |
---|
257 | try: |
---|
258 | typekey = (1, 1) + shape[2:], arr['typestr'] |
---|
259 | mode, rawmode = _fromarray_typemap[typekey] |
---|
260 | except KeyError: |
---|
261 | # print typekey |
---|
262 | > raise TypeError("Cannot handle this data type") |
---|
263 | E TypeError: Cannot handle this data type |
---|
264 | |
---|
265 | /homes/hudson-x/virtualenv/lib/python2.6/site-packages/PIL/Image.py:1886: TypeError</failure><system-out>testRenderRegion |
---|
266 | sizeX 4 sizeY 3 |
---|
267 | Image ID 3 |
---|
268 | () |
---|
269 | <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=4x3 at 0x45F1098> |
---|
270 | </system-out></testcase><testcase classname="test.integration.test_chgrp.TestChgrp" name="testChgrpImage" time="1.30726003647"/><testcase classname="test.integration.test_chgrp.TestChgrp" name="testChgrpImportedImage" time="6.84764695168"/><testcase classname="test.integration.test_chgrp.TestChgrp" name="testChgrpPDI" time="2.34480905533"/><testcase classname="test.integration.test_chgrp.TestChgrp" name="testChgrpRdef7825" time="2.40011191368"/><testcase classname="test.integration.test_chmod.TestChmodEasy" name="test_chmod_rw_rwr" time="2.74117708206"/><testcase classname="test.integration.test_client_ctors.TestClientConstructors" name="testHostConstructor" time="0.192803144455"/><testcase classname="test.integration.test_client_ctors.TestClientConstructors" name="testInitializationDataConstructor" time="0.0128197669983"><failure message="test failure">self = <test.integration.test_client_ctors.TestClientConstructors testMethod=testInitializationDataConstructor> |
---|
271 | |
---|
272 | def testInitializationDataConstructor(self): |
---|
273 | id = Ice.InitializationData() |
---|
274 | id.properties = Ice.createProperties() |
---|
275 | id.properties.setProperty("omero.host", self.host) |
---|
276 | id.properties.setProperty("omero.user", "root") |
---|
277 | id.properties.setProperty("omero.pass", self.rootpasswd) |
---|
278 | c = omero.client(id = id) |
---|
279 | try: |
---|
280 | > c.createSession() |
---|
281 | |
---|
282 | test/integration/test_client_ctors.py:48: |
---|
283 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
284 | |
---|
285 | self = <omero.clients.BaseClient object at 0x46fefd0>, username = 'root' |
---|
286 | password = 'omero' |
---|
287 | |
---|
288 | def createSession(self, username=None, password=None): |
---|
289 | """ |
---|
290 | Performs the actual logic of logging in, which is done via the |
---|
291 | getRouter(). Disallows an extant ServiceFactoryPrx, and |
---|
292 | tries to re-create a null Ice.Communicator. A null or empty |
---|
293 | username will throw an exception, but an empty password is allowed. |
---|
294 | """ |
---|
295 | import omero |
---|
296 | |
---|
297 | self.__lock.acquire() |
---|
298 | try: |
---|
299 | |
---|
300 | # Checking state |
---|
301 | |
---|
302 | if self.__sf: |
---|
303 | raise omero.ClientError("Session already active. Create a new omero.client or closeSession()") |
---|
304 | |
---|
305 | if not self.__ic: |
---|
306 | if not self.__previous: |
---|
307 | raise omero.ClientError("No previous data to recreate communicator.") |
---|
308 | self._initData(self.__previous) |
---|
309 | self.__previous = None |
---|
310 | |
---|
311 | # Check the required properties |
---|
312 | |
---|
313 | if not username: |
---|
314 | username = self.getProperty("omero.user") |
---|
315 | elif isinstance(username,omero.RString): |
---|
316 | username = username.val |
---|
317 | |
---|
318 | if not username or len(username) == 0: |
---|
319 | raise omero.ClientError("No username specified") |
---|
320 | |
---|
321 | if not password: |
---|
322 | password = self.getProperty("omero.pass") |
---|
323 | elif isinstance(password,omero.RString): |
---|
324 | password = password.val |
---|
325 | |
---|
326 | if not password: |
---|
327 | raise omero.ClientError("No password specified") |
---|
328 | |
---|
329 | # Acquire router and get the proxy |
---|
330 | prx = None |
---|
331 | retries = 0 |
---|
332 | while retries < 3: |
---|
333 | reason = None |
---|
334 | if retries > 0: |
---|
335 | self.__logger.warning(\ |
---|
336 | "%s - createSession retry: %s"% (reason, retries) ) |
---|
337 | try: |
---|
338 | ctx = dict(self.getImplicitContext().getContext()) |
---|
339 | ctx[omero.constants.AGENT] = self.__agent |
---|
340 | rtr = self.getRouter(self.__ic) |
---|
341 | > prx = rtr.createSession(username, password, ctx) |
---|
342 | |
---|
343 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero/clients.py:479: |
---|
344 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
345 | |
---|
346 | self = OMERO.Glacier2/router -t:ssl -h localhost -p 4064, userId = 'root' |
---|
347 | password = 'omero' |
---|
348 | _ctx = {'omero.agent': 'OMERO.py', 'omero.client.uuid': 'cff1f7d0-db62-4825-a71f-4ee88df6f140'} |
---|
349 | |
---|
350 | def createSession(self, userId, password, _ctx=None): |
---|
351 | > return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx)) |
---|
352 | |
---|
353 | '''Create a per-client session with the router. If a |
---|
354 | SessionManager has been installed, a proxy to a Session |
---|
355 | object is returned to the client. Otherwise, null is returned |
---|
356 | and only an internal session (i.e., not visible to the client) |
---|
357 | is created. |
---|
358 | |
---|
359 | If a session proxy is returned, it must be configured to route |
---|
360 | through the router that created it. This will happen automatically |
---|
361 | if the router is configured as the client's default router at the |
---|
362 | time the session proxy is created in the client process, otherwise |
---|
363 | the client must configure the session proxy explicitly. |
---|
364 | |
---|
365 | Returns: |
---|
366 | A proxy for the newly created session, or null if no |
---|
367 | SessionManager has been installed. |
---|
368 | |
---|
369 | Arguments: |
---|
370 | userId The user id for which to check the password. |
---|
371 | |
---|
372 | password The password for the given user id. |
---|
373 | |
---|
374 | Exceptions: |
---|
375 | PermissionDeniedException Raised if the password for |
---|
376 | the given user id is not correct, or if the user is not allowed |
---|
377 | access. |
---|
378 | |
---|
379 | CannotCreateSessionException Raised if the session |
---|
380 | E ConnectionRefusedException: Ice.ConnectionRefusedException: |
---|
381 | E Connection refused |
---|
382 | |
---|
383 | /usr/lib64/python2.6/site-packages/Ice/Glacier2_Router_ice.py:261: ConnectionRefusedException</failure></testcase><testcase classname="test.integration.test_client_ctors.TestClientConstructors" name="testMainArgsConstructor" time="0.313074111938"/><testcase classname="test.integration.test_client_ctors.TestClientConstructors" name="testMainArgsGetsIceConfig" time="0.0481510162354"><system-err>WARNING:omero.client:..Ignoring error in client.__del__:<class 'Ice.DNSException'> |
---|
384 | </system-err></testcase><testcase classname="test.integration.test_client_ctors.TestClientConstructors" name="testMainArgsGetsIcePrefix" time="0.131159067154"/><testcase classname="test.integration.test_client_ctors.TestClientConstructors" name="testMapConstructor" time="0.214473009109"/><testcase classname="test.integration.test_client_ctors.TestClientConstructors" name="testPorts" time="0.014778137207"/><testcase classname="test.integration.test_client_ctors.TestClientConstructors" name="testPythonCtorRepair" time="0.106784105301"/><testcase classname="test.integration.test_client_ctors.TestClientConstructors" name="testTwoDifferentHosts" time="0.239097118378"/><testcase classname="test.integration.test_clientusage.TestClientUsage" name="testClientClosedAutomatically" time="0.914608955383"/><testcase classname="test.integration.test_clientusage.TestClientUsage" name="testClientClosedManually" time="0.868954181671"/><testcase classname="test.integration.test_clientusage.TestClientUsage" name="testCreateInsecureClientTicket2099" time="0.985991954803"/><testcase classname="test.integration.test_clientusage.TestClientUsage" name="testGetStatefulServices" time="0.55887389183"/><testcase classname="test.integration.test_clientusage.TestClientUsage" name="testUseSharedMemory" time="0.694905996323"/><testcase classname="test.integration.test_cliimport.TestCliImport" name="testAnnotationComment" time="6.16067504883"/><testcase classname="test.integration.test_cliimport.TestCliImport" name="testAnnotationTextMultiple" time="5.97826695442"/><testcase classname="test.integration.test_cliimport.TestCliImport" name="testAnnotationTextSimple" time="5.50520205498"/><testcase classname="test.integration.test_cliimport.TestCliImport" name="testBasic" time="5.7395260334"/><testcase classname="test.integration.test_cliimport.TestCliImport" name="testDatasetTarget" time="7.55134010315"/><testcase classname="test.integration.test_cliimport.TestCliImport" name="testTargetInDifferentGroup" time="6.61271190643"/><testcase classname="test.integration.test_cmdcallback.CmdCallbackTest" name="testDoAllTimingFinishesOnLoop" time="0.476177930832"/><testcase classname="test.integration.test_cmdcallback.CmdCallbackTest" name="testDoNothingFinishesOnLatch" time="0.603874921799"/><testcase classname="test.integration.test_cmdcallback.CmdCallbackTest" name="testDoNothingFinishesOnLoop" time="0.422039985657"/><testcase classname="test.integration.test_cmdcallback.CmdCallbackTest" name="testTimingFinishesOnBlock" time="1.4824719429"/><testcase classname="test.integration.test_cmdcallback.CmdCallbackTest" name="testTimingFinishesOnLatch" time="2.3346760273"/><testcase classname="test.integration.test_cmdcallback.CmdCallbackTest" name="testTimingFinishesOnLoop" time="2.1105890274"/><testcase classname="test.integration.test_counts.TestCounts" name="testBasicUsage" time="0.460311174393"/><testcase classname="test.integration.test_delete.TestDelete" name="test3639" time="4.23043489456"/><testcase classname="test.integration.test_delete.TestDelete" name="test5793" time="0.559725046158"/><testcase classname="test.integration.test_delete.TestDelete" name="test7314" time="0.621782064438"/><testcase classname="test.integration.test_delete.TestDelete" name="testBasicUsage" time="0.432787179947"/><testcase classname="test.integration.test_delete.TestDelete" name="testCheckIfDeleted" time="1.11551403999"/><testcase classname="test.integration.test_delete.TestDelete" name="testCheckIfDeleted2" time="12.4314789772"/><testcase classname="test.integration.test_delete.TestDelete" name="testDeleteMany" time="1.3948161602"/><testcase classname="test.integration.test_delete.TestDelete" name="testDeleteProjectWithoutContent" time="1.75634384155"/><testcase classname="test.integration.test_delete.TestDelete" name="testOddMessage" time="12.3173310757"/><testcase classname="test.integration.test_exporter.TestExporter" name="test6713" time="12.0767531395"/><testcase classname="test.integration.test_exporter.TestExporter" name="testBasic" time="6.4544711113"/><testcase classname="test.integration.test_figureExportScripts.TestFigureExportScripts" name="testMovieFigure" time="26.0252861977"><system-out>testMovieFigure |
---|
385 | Script generated StdOut in file: 37 |
---|
386 | Script generated StdOut in file: 39 |
---|
387 | Script generated StdOut in file: 40 |
---|
388 | </system-out></testcase><testcase classname="test.integration.test_figureExportScripts.TestFigureExportScripts" name="testMovieRoiFigure" time="15.5906770229"><system-out>testMovieRoiFigure |
---|
389 | Script generated StdOut in file: 44 |
---|
390 | Script generated StdOut in file: 46 |
---|
391 | Script generated StdOut in file: 47 |
---|
392 | </system-out></testcase><testcase classname="test.integration.test_figureExportScripts.TestFigureExportScripts" name="testRoiFigure" time="18.6180129051"><system-out>testRoiFigure |
---|
393 | Script generated StdOut in file: 51 |
---|
394 | Script generated StdOut in file: 53 |
---|
395 | Script generated StdOut in file: 54 |
---|
396 | </system-out></testcase><testcase classname="test.integration.test_figureExportScripts.TestFigureExportScripts" name="testSplitViewFigure" time="22.999710083"><system-out>testSplitViewFigure |
---|
397 | Script generated StdOut in file: 58 |
---|
398 | Script generated StdOut in file: 60 |
---|
399 | Script generated StdOut in file: 61 |
---|
400 | </system-out></testcase><testcase classname="test.integration.test_figureExportScripts.TestFigureExportScripts" name="testThumbnailFigure" time="48.3324820995"><system-out>testThumbnailFigure |
---|
401 | Script generated StdOut in file: 65 |
---|
402 | Script generated StdOut in file: 67 |
---|
403 | Script generated StdOut in file: 68 |
---|
404 | Script generated StdOut in file: 69 |
---|
405 | </system-out></testcase><testcase classname="test.integration.test_files.TestFiles" name="testUploadDifferentSizeTicket2337" time="0.590040922165"/><testcase classname="test.integration.test_files.TestFiles" name="testUploadDownload" time="0.451613903046"/><testcase classname="test.integration.test_gateway.TestGateway" name="testBasicUsage" time="0.88142991066"><system-out>165 <type 'long'> |
---|
406 | object #0 (::omero::model::Pixels) |
---|
407 | { |
---|
408 | _id = object #1 (::omero::RLong) |
---|
409 | { |
---|
410 | _val = 99 |
---|
411 | } |
---|
412 | _details = object #2 (::omero::model::Details) |
---|
413 | { |
---|
414 | _owner = object #3 (::omero::model::Experimenter) |
---|
415 | { |
---|
416 | _id = object #4 (::omero::RLong) |
---|
417 | { |
---|
418 | _val = 129 |
---|
419 | } |
---|
420 | _details = <nil> |
---|
421 | _loaded = False |
---|
422 | _version = <nil> |
---|
423 | _groupExperimenterMapSeq = |
---|
424 | { |
---|
425 | } |
---|
426 | _groupExperimenterMapLoaded = False |
---|
427 | _omeName = <nil> |
---|
428 | _firstName = <nil> |
---|
429 | _middleName = <nil> |
---|
430 | _lastName = <nil> |
---|
431 | _institution = <nil> |
---|
432 | _email = <nil> |
---|
433 | _annotationLinksSeq = |
---|
434 | { |
---|
435 | } |
---|
436 | _annotationLinksLoaded = False |
---|
437 | _annotationLinksCountPerOwner = |
---|
438 | { |
---|
439 | } |
---|
440 | } |
---|
441 | _group = object #5 (::omero::model::ExperimenterGroup) |
---|
442 | { |
---|
443 | _id = object #6 (::omero::RLong) |
---|
444 | { |
---|
445 | _val = 107 |
---|
446 | } |
---|
447 | _details = object #7 (::omero::model::Details) |
---|
448 | { |
---|
449 | _owner = <nil> |
---|
450 | _group = <nil> |
---|
451 | _creationEvent = <nil> |
---|
452 | _updateEvent = <nil> |
---|
453 | _permissions = object #8 (::omero::model::Permissions) |
---|
454 | { |
---|
455 | _restrictions = |
---|
456 | { |
---|
457 | [0] = False |
---|
458 | [1] = True |
---|
459 | [2] = True |
---|
460 | [3] = True |
---|
461 | } |
---|
462 | _perm1 = -120 |
---|
463 | } |
---|
464 | _externalInfo = <nil> |
---|
465 | _call = |
---|
466 | { |
---|
467 | key = omero.session.uuid |
---|
468 | value = 8b1b30dc-c883-4b8a-86e1-0166525dbc62 |
---|
469 | |
---|
470 | key = omero.client.uuid |
---|
471 | value = 1e53194e-9bc6-47a5-b924-6ba33dab50ac |
---|
472 | } |
---|
473 | _event = object #9 (::omero::sys::EventContext) |
---|
474 | { |
---|
475 | shareId = -1 |
---|
476 | sessionId = 340 |
---|
477 | sessionUuid = 8b1b30dc-c883-4b8a-86e1-0166525dbc62 |
---|
478 | userId = 129 |
---|
479 | userName = ae4d8564-83e9-415a-94b9-c10646876118 |
---|
480 | groupId = 107 |
---|
481 | groupName = bf417191-ad13-46d1-8cdf-75eac45ca00a |
---|
482 | isAdmin = False |
---|
483 | eventId = -1 |
---|
484 | eventType = User |
---|
485 | memberOfGroups = |
---|
486 | { |
---|
487 | [0] = 107 |
---|
488 | [1] = 1 |
---|
489 | } |
---|
490 | leaderOfGroups = |
---|
491 | { |
---|
492 | } |
---|
493 | groupPermissions = object #10 (::omero::model::Permissions) |
---|
494 | { |
---|
495 | _restrictions = |
---|
496 | { |
---|
497 | } |
---|
498 | _perm1 = -120 |
---|
499 | } |
---|
500 | } |
---|
501 | } |
---|
502 | _loaded = True |
---|
503 | _version = object #11 (::omero::RInt) |
---|
504 | { |
---|
505 | _val = 0 |
---|
506 | } |
---|
507 | _name = object #12 (::omero::RString) |
---|
508 | { |
---|
509 | _val = bf417191-ad13-46d1-8cdf-75eac45ca00a |
---|
510 | } |
---|
511 | _groupExperimenterMapSeq = |
---|
512 | { |
---|
513 | } |
---|
514 | _groupExperimenterMapLoaded = False |
---|
515 | _annotationLinksSeq = |
---|
516 | { |
---|
517 | } |
---|
518 | _annotationLinksLoaded = False |
---|
519 | _annotationLinksCountPerOwner = |
---|
520 | { |
---|
521 | } |
---|
522 | _description = <nil> |
---|
523 | } |
---|
524 | _creationEvent = object #13 (::omero::model::Event) |
---|
525 | { |
---|
526 | _id = object #14 (::omero::RLong) |
---|
527 | { |
---|
528 | _val = 2654 |
---|
529 | } |
---|
530 | _details = <nil> |
---|
531 | _loaded = False |
---|
532 | _status = <nil> |
---|
533 | _time = <nil> |
---|
534 | _experimenter = <nil> |
---|
535 | _experimenterGroup = <nil> |
---|
536 | _type = <nil> |
---|
537 | _containingEvent = <nil> |
---|
538 | _logsSeq = |
---|
539 | { |
---|
540 | } |
---|
541 | _logsLoaded = False |
---|
542 | _session = <nil> |
---|
543 | } |
---|
544 | _updateEvent = object #15 (::omero::model::Event) |
---|
545 | { |
---|
546 | _id = object #16 (::omero::RLong) |
---|
547 | { |
---|
548 | _val = 2660 |
---|
549 | } |
---|
550 | _details = <nil> |
---|
551 | _loaded = False |
---|
552 | _status = <nil> |
---|
553 | _time = <nil> |
---|
554 | _experimenter = <nil> |
---|
555 | _experimenterGroup = <nil> |
---|
556 | _type = <nil> |
---|
557 | _containingEvent = <nil> |
---|
558 | _logsSeq = |
---|
559 | { |
---|
560 | } |
---|
561 | _logsLoaded = False |
---|
562 | _session = <nil> |
---|
563 | } |
---|
564 | _permissions = object #17 (::omero::model::Permissions) |
---|
565 | { |
---|
566 | _restrictions = |
---|
567 | { |
---|
568 | } |
---|
569 | _perm1 = -120 |
---|
570 | } |
---|
571 | _externalInfo = <nil> |
---|
572 | _call = |
---|
573 | { |
---|
574 | key = omero.session.uuid |
---|
575 | value = 8b1b30dc-c883-4b8a-86e1-0166525dbc62 |
---|
576 | |
---|
577 | key = omero.client.uuid |
---|
578 | value = 1e53194e-9bc6-47a5-b924-6ba33dab50ac |
---|
579 | } |
---|
580 | _event = object #18 (::omero::sys::EventContext) |
---|
581 | { |
---|
582 | shareId = -1 |
---|
583 | sessionId = 340 |
---|
584 | sessionUuid = 8b1b30dc-c883-4b8a-86e1-0166525dbc62 |
---|
585 | userId = 129 |
---|
586 | userName = ae4d8564-83e9-415a-94b9-c10646876118 |
---|
587 | groupId = 107 |
---|
588 | groupName = bf417191-ad13-46d1-8cdf-75eac45ca00a |
---|
589 | isAdmin = False |
---|
590 | eventId = -1 |
---|
591 | eventType = User |
---|
592 | memberOfGroups = |
---|
593 | { |
---|
594 | [0] = 107 |
---|
595 | [1] = 1 |
---|
596 | } |
---|
597 | leaderOfGroups = |
---|
598 | { |
---|
599 | } |
---|
600 | groupPermissions = object #19 (::omero::model::Permissions) |
---|
601 | { |
---|
602 | _restrictions = |
---|
603 | { |
---|
604 | } |
---|
605 | _perm1 = -120 |
---|
606 | } |
---|
607 | } |
---|
608 | } |
---|
609 | _loaded = True |
---|
610 | _version = <object #11> |
---|
611 | _image = object #20 (::omero::model::Image) |
---|
612 | { |
---|
613 | _id = object #21 (::omero::RLong) |
---|
614 | { |
---|
615 | _val = 165 |
---|
616 | } |
---|
617 | _details = object #22 (::omero::model::Details) |
---|
618 | { |
---|
619 | _owner = <object #3> |
---|
620 | _group = <object #5> |
---|
621 | _creationEvent = <object #13> |
---|
622 | _updateEvent = <object #13> |
---|
623 | _permissions = object #23 (::omero::model::Permissions) |
---|
624 | { |
---|
625 | _restrictions = |
---|
626 | { |
---|
627 | } |
---|
628 | _perm1 = -120 |
---|
629 | } |
---|
630 | _externalInfo = <nil> |
---|
631 | _call = |
---|
632 | { |
---|
633 | key = omero.session.uuid |
---|
634 | value = 8b1b30dc-c883-4b8a-86e1-0166525dbc62 |
---|
635 | |
---|
636 | key = omero.client.uuid |
---|
637 | value = 1e53194e-9bc6-47a5-b924-6ba33dab50ac |
---|
638 | } |
---|
639 | _event = object #24 (::omero::sys::EventContext) |
---|
640 | { |
---|
641 | shareId = -1 |
---|
642 | sessionId = 340 |
---|
643 | sessionUuid = 8b1b30dc-c883-4b8a-86e1-0166525dbc62 |
---|
644 | userId = 129 |
---|
645 | userName = ae4d8564-83e9-415a-94b9-c10646876118 |
---|
646 | groupId = 107 |
---|
647 | groupName = bf417191-ad13-46d1-8cdf-75eac45ca00a |
---|
648 | isAdmin = False |
---|
649 | eventId = -1 |
---|
650 | eventType = User |
---|
651 | memberOfGroups = |
---|
652 | { |
---|
653 | [0] = 107 |
---|
654 | [1] = 1 |
---|
655 | } |
---|
656 | leaderOfGroups = |
---|
657 | { |
---|
658 | } |
---|
659 | groupPermissions = object #25 (::omero::model::Permissions) |
---|
660 | { |
---|
661 | _restrictions = |
---|
662 | { |
---|
663 | } |
---|
664 | _perm1 = -120 |
---|
665 | } |
---|
666 | } |
---|
667 | } |
---|
668 | _loaded = True |
---|
669 | _version = <object #11> |
---|
670 | _acquisitionDate = object #26 (::omero::RTime) |
---|
671 | { |
---|
672 | _val = 1378389296424 |
---|
673 | } |
---|
674 | _archived = <nil> |
---|
675 | _partial = <nil> |
---|
676 | _format = <nil> |
---|
677 | _imagingEnvironment = <nil> |
---|
678 | _objectiveSettings = <nil> |
---|
679 | _instrument = <nil> |
---|
680 | _stageLabel = <nil> |
---|
681 | _experiment = <nil> |
---|
682 | _pixelsSeq = |
---|
683 | { |
---|
684 | } |
---|
685 | _pixelsLoaded = False |
---|
686 | _wellSamplesSeq = |
---|
687 | { |
---|
688 | } |
---|
689 | _wellSamplesLoaded = False |
---|
690 | _roisSeq = |
---|
691 | { |
---|
692 | } |
---|
693 | _roisLoaded = False |
---|
694 | _datasetLinksSeq = |
---|
695 | { |
---|
696 | } |
---|
697 | _datasetLinksLoaded = False |
---|
698 | _datasetLinksCountPerOwner = |
---|
699 | { |
---|
700 | } |
---|
701 | _annotationLinksSeq = |
---|
702 | { |
---|
703 | } |
---|
704 | _annotationLinksLoaded = False |
---|
705 | _annotationLinksCountPerOwner = |
---|
706 | { |
---|
707 | } |
---|
708 | _name = object #27 (::omero::RString) |
---|
709 | { |
---|
710 | _val = imageName |
---|
711 | } |
---|
712 | _description = object #28 (::omero::RString) |
---|
713 | { |
---|
714 | _val = description |
---|
715 | } |
---|
716 | } |
---|
717 | _relatedTo = <nil> |
---|
718 | _pixelsType = object #29 (::omero::model::PixelsType) |
---|
719 | { |
---|
720 | _id = object #30 (::omero::RLong) |
---|
721 | { |
---|
722 | _val = 5 |
---|
723 | } |
---|
724 | _details = <nil> |
---|
725 | _loaded = False |
---|
726 | _value = <nil> |
---|
727 | _bitSize = <nil> |
---|
728 | } |
---|
729 | _sizeX = object #31 (::omero::RInt) |
---|
730 | { |
---|
731 | _val = 16 |
---|
732 | } |
---|
733 | _sizeY = object #32 (::omero::RInt) |
---|
734 | { |
---|
735 | _val = 16 |
---|
736 | } |
---|
737 | _sizeZ = object #33 (::omero::RInt) |
---|
738 | { |
---|
739 | _val = 1 |
---|
740 | } |
---|
741 | _sizeC = object #34 (::omero::RInt) |
---|
742 | { |
---|
743 | _val = 1 |
---|
744 | } |
---|
745 | _sizeT = object #35 (::omero::RInt) |
---|
746 | { |
---|
747 | _val = 1 |
---|
748 | } |
---|
749 | _sha1 = object #36 (::omero::RString) |
---|
750 | { |
---|
751 | _val = 4916d6bdb7f78e6803698cab32d1586ea457dfc8 |
---|
752 | } |
---|
753 | _dimensionOrder = object #37 (::omero::model::DimensionOrder) |
---|
754 | { |
---|
755 | _id = object #38 (::omero::RLong) |
---|
756 | { |
---|
757 | _val = 1 |
---|
758 | } |
---|
759 | _details = <nil> |
---|
760 | _loaded = False |
---|
761 | _value = <nil> |
---|
762 | } |
---|
763 | _physicalSizeX = <nil> |
---|
764 | _physicalSizeY = <nil> |
---|
765 | _physicalSizeZ = <nil> |
---|
766 | _waveStart = <nil> |
---|
767 | _waveIncrement = <nil> |
---|
768 | _timeIncrement = <nil> |
---|
769 | _methodology = <nil> |
---|
770 | _planeInfoSeq = |
---|
771 | { |
---|
772 | } |
---|
773 | _planeInfoLoaded = False |
---|
774 | _pixelsFileMapsSeq = |
---|
775 | { |
---|
776 | } |
---|
777 | _pixelsFileMapsLoaded = False |
---|
778 | _pixelsFileMapsCountPerOwner = |
---|
779 | { |
---|
780 | } |
---|
781 | _channelsSeq = |
---|
782 | { |
---|
783 | } |
---|
784 | _channelsLoaded = False |
---|
785 | _settingsSeq = |
---|
786 | { |
---|
787 | } |
---|
788 | _settingsLoaded = False |
---|
789 | _thumbnailsSeq = |
---|
790 | { |
---|
791 | } |
---|
792 | _thumbnailsLoaded = False |
---|
793 | _annotationLinksSeq = |
---|
794 | { |
---|
795 | } |
---|
796 | _annotationLinksLoaded = False |
---|
797 | _annotationLinksCountPerOwner = |
---|
798 | { |
---|
799 | } |
---|
800 | } |
---|
801 | 165 |
---|
802 | </system-out></testcase><testcase classname="test.integration.test_icontainer.TestIContainer" name="testCreateAfterBlitzPort" time="0.312242984772"/><testcase classname="test.integration.test_icontainer.TestIContainer" name="testFindAndCountAnnotationsForSharedData" time="0.979884147644"/><testcase classname="test.integration.test_icontainer.TestIContainer" name="testFindAnnotations" time="0.318964004517"/><testcase classname="test.integration.test_ildap.TestILdap" name="testLookupLdapExperimentersViaAdmin" time="0.245002985001"/><testcase classname="test.integration.test_imetadata.TestIMetadata" name="testCountAnnotationsUsedNotOwned3671" time="0.346227169037"/><testcase classname="test.integration.test_imetadata.TestIMetadata" name="testCountSpecifiedAnnotations3671" time="0.297782182693"/><testcase classname="test.integration.test_imetadata.TestIMetadata" name="testLoadAnnotations3671" time="0.28864979744"/><testcase classname="test.integration.test_imetadata.TestIMetadata" name="testLoadAnnotationsUsedNotOwned3671" time="0.454585075378"/><testcase classname="test.integration.test_imetadata.TestIMetadata" name="testLoadSpecifiedAnnotations3671" time="0.916970968246"/><testcase classname="test.integration.test_iquery.TestQuery" name="testGetPixelsCount" time="4.92273211479"><system-out>Group 0: {'int16': 123584812L} |
---|
803 | Group 38: {'uint8': 262144L} |
---|
804 | Group 39: {'int16': 12000L} |
---|
805 | Group 49: {'int16': 12000L} |
---|
806 | Group 64: {'uint8': 64L} |
---|
807 | Group 66: {'uint8': 64L} |
---|
808 | Group 68: {'uint8': 64L} |
---|
809 | Group 70: {'uint8': 64L} |
---|
810 | Group 72: {'uint8': 64L} |
---|
811 | Group 75: {'uint8': 64L} |
---|
812 | Group 89: {'int16': 1024L} |
---|
813 | Group 98: {'int8': 16000000L} |
---|
814 | Group 99: {'int16': 12000L} |
---|
815 | Group 107: {'uint8': 256L} |
---|
816 | </system-out></testcase><testcase classname="test.integration.test_isession.TestISession" name="testBasicUsage" time="0.766387939453"/><testcase classname="test.integration.test_isession.TestISession" name="testCreateSessionForUser" time="0.954927921295"/><testcase classname="test.integration.test_isession.TestISession" name="testCreationDestructionClosing" time="0.96461892128"><failure message="test failure">self = <test.integration.test_isession.TestISession testMethod=testCreationDestructionClosing> |
---|
817 | |
---|
818 | def testCreationDestructionClosing(self): |
---|
819 | c1, c2, c3, c4 = None, None, None, None |
---|
820 | try: |
---|
821 | c1 = omero.client() # ok rather than new_client since has __del__ |
---|
822 | s1 = c1.createSession() |
---|
823 | s1.detachOnDestroy() |
---|
824 | uuid = s1.ice_getIdentity().name |
---|
825 | |
---|
826 | # Intermediate "disrupter" |
---|
827 | c2 = omero.client() # ok rather than new_client since has __del__ |
---|
828 | s2 = c2.createSession(uuid, uuid) |
---|
829 | s2.closeOnDestroy() |
---|
830 | s2.getAdminService().getEventContext() |
---|
831 | c2.closeSession() |
---|
832 | |
---|
833 | # 1 should still be able to continue |
---|
834 | s1.getAdminService().getEventContext() |
---|
835 | |
---|
836 | # Now if s1 exists another session should be able to connect |
---|
837 | c1.closeSession() |
---|
838 | c3 = omero.client() # ok rather than new_client since has __del__ |
---|
839 | s3 = c3.createSession(uuid, uuid) |
---|
840 | s3.closeOnDestroy() |
---|
841 | s3.getAdminService().getEventContext() |
---|
842 | c3.closeSession() |
---|
843 | |
---|
844 | # Now a connection should not be possible |
---|
845 | c4 = omero.client() # ok rather than new_client since has __del__ |
---|
846 | import Glacier2 |
---|
847 | > self.assertRaises(Glacier2.PermissionDeniedException, c4.createSession, uuid, uuid); |
---|
848 | E AssertionError: PermissionDeniedException not raised |
---|
849 | |
---|
850 | test/integration/test_isession.py:125: AssertionError</failure></testcase><testcase classname="test.integration.test_isession.TestISession" name="testGetMySessionsTicket1975" time="0.741878986359"/><testcase classname="test.integration.test_isession.TestISession" name="testJoinSession" time="0.418426036835"/><testcase classname="test.integration.test_isession.TestISession" name="testJoinSession_Helper" time="0.405929088593"/><testcase classname="test.integration.test_isession.TestISession" name="testManageMySessions" time="0.470777988434"/><testcase classname="test.integration.test_isession.TestISession" name="testManuallyClosingOwnSession" time="0.419867992401"/><testcase classname="test.integration.test_isession.TestISession" name="testSimpleDestruction" time="0.281916856766"/><testcase classname="test.integration.test_isession.TestISession" name="testTicket2196SetSecurityContext" time="0.37590098381"/><testcase classname="test.integration.test_ishare.TestIShare" name="test1154" time="1.9364900589"/><testcase classname="test.integration.test_ishare.TestIShare" name="test1157" time="2.33877110481"/><testcase classname="test.integration.test_ishare.TestIShare" name="test1172" time="2.36473011971"/><testcase classname="test.integration.test_ishare.TestIShare" name="test1179" time="2.46660900116"/><testcase classname="test.integration.test_ishare.TestIShare" name="test1201" time="0.965734004974"/><testcase classname="test.integration.test_ishare.TestIShare" name="test1201b" time="0.365544080734"/><testcase classname="test.integration.test_ishare.TestIShare" name="test1207" time="0.88448381424"/><testcase classname="test.integration.test_ishare.TestIShare" name="test1227" time="0.589819908142"/><testcase classname="test.integration.test_ishare.TestIShare" name="test2327" time="0.964872837067"/><testcase classname="test.integration.test_ishare.TestIShare" name="test2513" time="0.269523859024"/><testcase classname="test.integration.test_ishare.TestIShare" name="test2733" time="0.749064922333"/><testcase classname="test.integration.test_ishare.TestIShare" name="test2733Access" time="2.17896699905"/><testcase classname="test.integration.test_ishare.TestIShare" name="test3214" time="2.45812606812"/><testcase classname="test.integration.test_ishare.TestIShare" name="test5711" time="0.913753986359"/><testcase classname="test.integration.test_ishare.TestIShare" name="test5756Raw" time="1.23893213272"/><testcase classname="test.integration.test_ishare.TestIShare" name="test5756Wrapped" time="1.12697601318"/><testcase classname="test.integration.test_ishare.TestIShare" name="test5851" time="3.11394500732"/><testcase classname="test.integration.test_ishare.TestIShare" name="test8118" time="1.05229115486"/><testcase classname="test.integration.test_ishare.TestIShare" name="test8513" time="0.860034942627"/><testcase classname="test.integration.test_ishare.TestIShare" name="test8704" time="1.38910007477"/><testcase classname="test.integration.test_ishare.TestIShare" name="testBadShare" time="0.370520830154"/><testcase classname="test.integration.test_ishare.TestIShare" name="testBasicUsage" time="0.914923906326"/><testcase classname="test.integration.test_ishare.TestIShare" name="testOSAdminUser" time="0.767936944962"/><testcase classname="test.integration.test_ishare.TestIShare" name="testOSNonMember" time="1.03484511375"/><testcase classname="test.integration.test_ishare.TestIShare" name="testOSRegularUser" time="0.788223028183"/><testcase classname="test.integration.test_ishare.TestIShare" name="testThatPermissionsAreDefaultPrivate" time="0.677660942078"/><testcase classname="test.integration.test_itimeline.TestITimeline" name="test1173" time="1.23181009293"/><testcase classname="test.integration.test_itimeline.TestITimeline" name="test1175" time="1.00800704956"/><testcase classname="test.integration.test_itimeline.TestITimeline" name="test1225" time="2.49636387825"><skipped message="expected test failure">ticket 1225</skipped></testcase><testcase classname="test.integration.test_itimeline.TestITimeline" name="test3234" time="0.893686056137"/><testcase classname="test.integration.test_itimeline.TestITimeline" name="testCollaborativeTimeline" time="2.48231697083"/><testcase classname="test.integration.test_itimeline.TestITimeline" name="testGeneral" time="1.4768409729"/><testcase classname="test.integration.test_itypes.TestTypes" name="testAllEnumerations" time="1.60129785538"/><testcase classname="test.integration.test_itypes.TestTypes" name="testGetEnumerationTypes" time="0.660650014877"/><testcase classname="test.integration.test_itypes.TestTypes" name="testGetEnumerationWithEntries" time="1.08341884613"/><testcase classname="test.integration.test_itypes.TestTypes" name="testManageEnumeration" time="0.893351078033"/><testcase classname="test.integration.test_iupdate.TestIUpdate" name="testSaveArray" time="0.716350078583"/><testcase classname="test.integration.test_iupdate.TestIUpdate" name="testSaveCollection" time="0.713513851166"/><testcase classname="test.integration.test_librarytest.TestLibrary" name="test9188" time="8.01085686684"/><testcase classname="test.integration.test_metadatastore.TestMetdataStore" name="testBasicUsage" time="0.399752140045"/><testcase classname="test.integration.test_metadatastore.TestMetdataStore" name="testMetadataService" time="0.218629837036"/><testcase classname="test.integration.test_model42.TestModel42" name="testNs" time="0.272597074509"/><testcase classname="test.integration.test_model42.TestModel42" name="testRoi" time="0.28485584259"/><testcase classname="test.integration.test_model42.TestTicket2290" name="testEmptyArrays2290" time="0.315567016602"/><testcase classname="test.integration.test_model42.TestTicket2290" name="testNoArrays2290" time="0.324374198914"/><testcase classname="test.integration.test_model42.TestTicket2290" name="testRect2290" time="0.295524120331"/><testcase classname="test.integration.test_model42.TestTicket2290" name="testRectB2290" time="0.342396974564"/><testcase classname="test.integration.test_model42.TestTicket2290" name="testResave2290" time="0.331862926483"/><testcase classname="test.integration.test_permissions.TestPermissions" name="test3136" time="0.36230301857"><failure message="test failure">self = <test.integration.test_permissions.TestPermissions testMethod=test3136> |
---|
851 | |
---|
852 | def test3136(self): |
---|
853 | """ |
---|
854 | Calls to updateGroup were taking too long |
---|
855 | because the default value of permissions |
---|
856 | returned by the server was triggering a |
---|
857 | full changePermissions event. |
---|
858 | """ |
---|
859 | admin = self.root.sf.getAdminService() |
---|
860 | group = self.new_group(perms="rw----") |
---|
861 | |
---|
862 | # Change the name but not the permissions |
---|
863 | group.name = rstring(self.uuid()) |
---|
864 | elapsed1, rv = self.timeit(admin.updateGroup, group) |
---|
865 | |
---|
866 | # Now change the name and the permissions |
---|
867 | group.name = rstring(self.uuid()) |
---|
868 | group.details.permissions = omero.model.PermissionsI("rwr---") |
---|
869 | elapsed2, rv = self.timeit(admin.updateGroup, group) |
---|
870 | |
---|
871 | # Locally this test always fails as the two times are |
---|
872 | # the same order of magnitude. This may be an indication that |
---|
873 | # the relevant ticket: |
---|
874 | # http://trac.openmicroscopy.org/ome/ticket/3136 |
---|
875 | # is still valid. Does the ticket need re-opening |
---|
876 | # or does the test condition need relaxing? |
---|
877 | self.assertTrue(elapsed1 < (0.1 * elapsed2),\ |
---|
878 | > "elapsed1=%s, elapsed2=%s" % (elapsed1, elapsed2)) |
---|
879 | E AssertionError: elapsed1=0.0439479351044, elapsed2=0.0415980815887 |
---|
880 | |
---|
881 | test/integration/test_permissions.py:491: AssertionError</failure></testcase><testcase classname="test.integration.test_permissions.TestPermissions" name="testAdminCanQueryWithGroupMinusOneTicket9632" time="0.297800064087"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testAdminUseOfRawPixelsBean" time="2.93942213058"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testClientSet" time="0.715614080429"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testCreatAndUpdatePrivateGroup" time="1.04803013802"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testCreatAndUpdatePublicGroup" time="1.04902505875"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testCreatAndUpdatePublicGroupReadAnnotate" time="1.17906403542"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testCreatAndUpdatePublicGroupReadOnly" time="0.972496986389"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testCreatGroupAndchangePermissions" time="1.32524991035"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testDisallow" time="0.633186101913"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testGroupOwners" time="1.18439292908"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testImmutablePermissions" time="0.363660097122"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testLinkingInPrivateGroup" time="0.592710018158"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testLoginToPublicGroupTicket1940" time="0.385298967361"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testOGArg" time="1.16905498505"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testOGContextParameter" time="2.10852503777"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testOGSetImplicitContext" time="1.79323887825"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testOGSetProxyContext" time="1.93854403496"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testOGSetSecurityContext" time="1.86897587776"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testOmeroUserAsAdmin" time="1.39402198792"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testOmeroUserAsNonAdmin" time="0.700972080231"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testPrivateGroupCallContext" time="0.719088077545"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testSaveBadLink" time="0.716187000275"><skipped message="expected test failure">ticket 11375</skipped></testcase><testcase classname="test.integration.test_permissions.TestPermissions" name="testSaveWithNegBadLink" time="0.554525852203"><skipped message="expected test failure">ticket 11374</skipped></testcase><testcase classname="test.integration.test_permissions.TestPermissions" name="testSaveWithNegOneExplicit" time="0.419844150543"><skipped message="expected test failure">ticket 11374</skipped></testcase><testcase classname="test.integration.test_permissions.TestPermissions" name="testSaveWithNegOneNotExplicit" time="0.741296052933"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testSearchAllGroups" time="0.281890869141"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testUseOfRawFileBeanScriptReadCorrectGroup" time="0.465279102325"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testUseOfRawFileBeanScriptReadCorrectGroupAndUser" time="0.472692012787"/><testcase classname="test.integration.test_permissions.TestPermissions" name="testUseOfRawFileBeanScriptReadGroupMinusOne" time="0.463261842728"/><testcase classname="test.integration.test_pixelsService.TestPixelsService" name="test9655" time="1.06105184555"/><testcase classname="test.integration.test_pixelsService.TestPixelsService" name="testCreateImage" time="0.837701797485"/><testcase classname="test.integration.test_rawfilestore.TestRFS" name="testTicket1961Basic" time="1.10843515396"/><testcase classname="test.integration.test_rawfilestore.TestRFS" name="testTicket1961WithKillSession" time="1.51694202423"/><testcase classname="test.integration.test_rawfilestore.TestRFS" name="testTicket2161Save" time="1.21590805054"/><testcase classname="test.integration.test_rawpixelsstore.TestRPS" name="testBigPlane" time="9.98915100098"/><testcase classname="test.integration.test_rawpixelsstore.TestRPS" name="testRomioToPyramid" time="247.21648097"/><testcase classname="test.integration.test_rawpixelsstore.TestRPS" name="testRomioToPyramidWithNegOne" time="214.909348965"/><testcase classname="test.integration.test_rawpixelsstore.TestRPS" name="testTicket4737WithClose" time="4.577023983"/><testcase classname="test.integration.test_rawpixelsstore.TestRPS" name="testTicket4737WithForEachTile" time="4.73292088509"/><testcase classname="test.integration.test_rawpixelsstore.TestRPS" name="testTicket4737WithSave" time="8.27309894562"/><testcase classname="test.integration.test_repository.TestRepository" name="testRepositoryAcquisition" time="0.226881027222"/><testcase classname="test.integration.test_rois.TestRois" name="test3703" time="0.273772954941"/><testcase classname="test.integration.test_rois.TestRois" name="test8990" time="2.39010882378"/><testcase classname="test.integration.test_rois.TestRois" name="testGetROICount" time="1.48611497879"/><testcase classname="test.integration.test_rois.TestRois" name="teststats1" time="0.262308835983"/><testcase classname="test.integration.test_scripts.TestScripts" name="test3527" time="3.61527395248"/><testcase classname="test.integration.test_scripts.TestScripts" name="test6066" time="8.48188591003"/><testcase classname="test.integration.test_scripts.TestScripts" name="testAutoFillTicket2326" time="5.08437800407"/><testcase classname="test.integration.test_scripts.TestScripts" name="testBasicUsage" time="0.582402944565"/><testcase classname="test.integration.test_scripts.TestScripts" name="testDelete11371" time="9.58449602127"/><testcase classname="test.integration.test_scripts.TestScripts" name="testDelete6905" time="3.9867939949"/><testcase classname="test.integration.test_scripts.TestScripts" name="testEditScript" time="3.81982898712"/><testcase classname="test.integration.test_scripts.TestScripts" name="testParamLoadingPerformanceTicket2285" time="2.89275813103"/><testcase classname="test.integration.test_scripts.TestScripts" name="testParseErrorTicket2185" time="3.09619903564"><system-err>WARNING:omero.processor.ProcessorI:No output found for omero.scripts.parse. Keys: [] |
---|
882 | </system-err></testcase><testcase classname="test.integration.test_scripts.TestScripts" name="testRunScript" time="5.08765101433"><system-out>109 |
---|
883 | </system-out><system-err>WARNING:omero.remote:<function parseJob at 0x38866e0> raised a non-ServerError (<type 'exceptions.AttributeError'>): 'NoneType' object has no attribute 'add' |
---|
884 | WARNING:omero.remote:<function parseJob at 0x38866e0> raised a non-ServerError (<type 'exceptions.AttributeError'>): 'NoneType' object has no attribute 'add' |
---|
885 | </system-err></testcase><testcase classname="test.integration.test_scripts.TestScripts" name="testScriptValidation" time="5.35992002487"/><testcase classname="test.integration.test_scripts.TestScripts" name="testSpeedOfThumbnailFigure" time="8.34829282761"/><testcase classname="test.integration.test_scripts.TestScripts" name="testTicket1036" time="0.529568910599"/><testcase classname="test.integration.test_scripts.TestScripts" name="testUpload2562" time="4.8827009201"/><testcase classname="test.integration.test_scripts.TestScripts" name="testUploadAndPing" time="1.32694411278"/><testcase classname="test.integration.test_scripts.TestScripts" name="testUploadOfficialScript" time="1.28288698196"/><testcase classname="test.integration.test_search.TestSearch" name="test2541" time="1.04628419876"/><testcase classname="test.integration.test_search.TestSearch" name="test3164CollabOther" time="2.12203192711"/><testcase classname="test.integration.test_search.TestSearch" name="test3164CollabSelf" time="5.83295798302"><failure message="test failure">self = <test.integration.test_search.TestSearch testMethod=test3164CollabSelf> |
---|
886 | |
---|
887 | def test3164CollabSelf(self): |
---|
888 | group = self.new_group(perms="rwrw--") |
---|
889 | owner = self.new_client(group) |
---|
890 | > self._3164(owner, owner) |
---|
891 | |
---|
892 | test/integration/test_search.py:55: |
---|
893 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
894 | |
---|
895 | self = <test.integration.test_search.TestSearch testMethod=test3164CollabSelf> |
---|
896 | owner = <omero.clients.BaseClient object at 0x50cf810> |
---|
897 | searcher = <omero.clients.BaseClient object at 0x50cf810> |
---|
898 | |
---|
899 | def _3164(self, owner, searcher): |
---|
900 | |
---|
901 | images = list() |
---|
902 | for i in range(0,5): |
---|
903 | img = omero.model.ImageI() |
---|
904 | img.name = omero.rtypes.rstring("search_test_%i.tif" % i) |
---|
905 | img.acquisitionDate = omero.rtypes.rtime(0) |
---|
906 | tag = omero.model.TagAnnotationI() |
---|
907 | tag.textValue = omero.rtypes.rstring("tag %i" % i) |
---|
908 | img.linkAnnotation( tag ) |
---|
909 | |
---|
910 | images.append(owner.sf.getUpdateService().saveAndReturnObject( img )) |
---|
911 | self.index(images[-1]) |
---|
912 | |
---|
913 | p = omero.sys.Parameters() |
---|
914 | p.map = {} |
---|
915 | p.map["oids"] = omero.rtypes.rlist(im.id for im in images) |
---|
916 | |
---|
917 | sql = "select im from Image im "\ |
---|
918 | "where im.id in (:oids) " \ |
---|
919 | "order by im.id asc" |
---|
920 | res = owner.sf.getQueryService().findAllByQuery(sql, p) |
---|
921 | self.assertEquals(5, len(res)) |
---|
922 | |
---|
923 | #Searching |
---|
924 | texts = ("*earch", "*h", "search tif", "search",\ |
---|
925 | "test", "tag", "t*", "search_test",\ |
---|
926 | "s .tif", ".tif", "tif", "*tif") |
---|
927 | |
---|
928 | BROKEN = ("*test*.tif", "search*tif", "s*.tif", "*.tif") |
---|
929 | |
---|
930 | search = searcher.sf.createSearchService() |
---|
931 | search.onlyType('Image') |
---|
932 | search.addOrderByAsc("name") |
---|
933 | search.setAllowLeadingWildcard(True) |
---|
934 | |
---|
935 | failed = {} |
---|
936 | for text in texts: |
---|
937 | search.byFullText(str(text)) |
---|
938 | if search.hasNext(): |
---|
939 | sz = len(search.results()) |
---|
940 | else: |
---|
941 | sz = 0 |
---|
942 | if 5 != sz: |
---|
943 | failed[text] = sz |
---|
944 | |
---|
945 | msg = "" |
---|
946 | for k in sorted(failed): |
---|
947 | msg += """\nFAILED: `%s` returned %s""" % (k, failed[k]) |
---|
948 | |
---|
949 | if msg: |
---|
950 | > self.fail("%s\n" % msg) |
---|
951 | E AssertionError: |
---|
952 | E FAILED: `*earch` returned 2 |
---|
953 | E FAILED: `*h` returned 2 |
---|
954 | E FAILED: `*tif` returned 2 |
---|
955 | E FAILED: `.tif` returned 2 |
---|
956 | E FAILED: `s .tif` returned 2 |
---|
957 | E FAILED: `search` returned 2 |
---|
958 | E FAILED: `search tif` returned 2 |
---|
959 | E FAILED: `search_test` returned 2 |
---|
960 | E FAILED: `t*` returned 2 |
---|
961 | E FAILED: `tag` returned 2 |
---|
962 | E FAILED: `test` returned 2 |
---|
963 | E FAILED: `tif` returned 2 |
---|
964 | |
---|
965 | test/integration/test_search.py:157: AssertionError</failure></testcase><testcase classname="test.integration.test_search.TestSearch" name="test3164Private" time="5.39090514183"/><testcase classname="test.integration.test_search.TestSearch" name="test3164ReadOnlyOther" time="3.868475914"><failure message="test failure">self = <test.integration.test_search.TestSearch testMethod=test3164ReadOnlyOther> |
---|
966 | |
---|
967 | def test3164ReadOnlyOther(self): |
---|
968 | group = self.new_group(perms="rwr---") |
---|
969 | owner = self.new_client(group) |
---|
970 | searcher = self.new_client(group) |
---|
971 | > self._3164(owner, searcher) |
---|
972 | |
---|
973 | test/integration/test_search.py:50: |
---|
974 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
975 | |
---|
976 | self = <test.integration.test_search.TestSearch testMethod=test3164ReadOnlyOther> |
---|
977 | owner = <omero.clients.BaseClient object at 0x52d0e50> |
---|
978 | searcher = <omero.clients.BaseClient object at 0x53f1a10> |
---|
979 | |
---|
980 | def _3164(self, owner, searcher): |
---|
981 | |
---|
982 | images = list() |
---|
983 | for i in range(0,5): |
---|
984 | img = omero.model.ImageI() |
---|
985 | img.name = omero.rtypes.rstring("search_test_%i.tif" % i) |
---|
986 | img.acquisitionDate = omero.rtypes.rtime(0) |
---|
987 | tag = omero.model.TagAnnotationI() |
---|
988 | tag.textValue = omero.rtypes.rstring("tag %i" % i) |
---|
989 | img.linkAnnotation( tag ) |
---|
990 | |
---|
991 | images.append(owner.sf.getUpdateService().saveAndReturnObject( img )) |
---|
992 | self.index(images[-1]) |
---|
993 | |
---|
994 | p = omero.sys.Parameters() |
---|
995 | p.map = {} |
---|
996 | p.map["oids"] = omero.rtypes.rlist(im.id for im in images) |
---|
997 | |
---|
998 | sql = "select im from Image im "\ |
---|
999 | "where im.id in (:oids) " \ |
---|
1000 | "order by im.id asc" |
---|
1001 | res = owner.sf.getQueryService().findAllByQuery(sql, p) |
---|
1002 | self.assertEquals(5, len(res)) |
---|
1003 | |
---|
1004 | #Searching |
---|
1005 | texts = ("*earch", "*h", "search tif", "search",\ |
---|
1006 | "test", "tag", "t*", "search_test",\ |
---|
1007 | "s .tif", ".tif", "tif", "*tif") |
---|
1008 | |
---|
1009 | BROKEN = ("*test*.tif", "search*tif", "s*.tif", "*.tif") |
---|
1010 | |
---|
1011 | search = searcher.sf.createSearchService() |
---|
1012 | search.onlyType('Image') |
---|
1013 | search.addOrderByAsc("name") |
---|
1014 | search.setAllowLeadingWildcard(True) |
---|
1015 | |
---|
1016 | failed = {} |
---|
1017 | for text in texts: |
---|
1018 | search.byFullText(str(text)) |
---|
1019 | if search.hasNext(): |
---|
1020 | sz = len(search.results()) |
---|
1021 | else: |
---|
1022 | sz = 0 |
---|
1023 | if 5 != sz: |
---|
1024 | failed[text] = sz |
---|
1025 | |
---|
1026 | msg = "" |
---|
1027 | for k in sorted(failed): |
---|
1028 | msg += """\nFAILED: `%s` returned %s""" % (k, failed[k]) |
---|
1029 | |
---|
1030 | if msg: |
---|
1031 | > self.fail("%s\n" % msg) |
---|
1032 | E AssertionError: |
---|
1033 | E FAILED: `*earch` returned 4 |
---|
1034 | E FAILED: `*h` returned 4 |
---|
1035 | E FAILED: `*tif` returned 4 |
---|
1036 | E FAILED: `.tif` returned 4 |
---|
1037 | E FAILED: `s .tif` returned 4 |
---|
1038 | E FAILED: `search` returned 4 |
---|
1039 | E FAILED: `search tif` returned 4 |
---|
1040 | E FAILED: `search_test` returned 4 |
---|
1041 | E FAILED: `t*` returned 4 |
---|
1042 | E FAILED: `tag` returned 4 |
---|
1043 | E FAILED: `test` returned 4 |
---|
1044 | E FAILED: `tif` returned 4 |
---|
1045 | |
---|
1046 | test/integration/test_search.py:157: AssertionError</failure></testcase><testcase classname="test.integration.test_search.TestSearch" name="test3164ReadOnlySelf" time="6.27723693848"><failure message="test failure">self = <test.integration.test_search.TestSearch testMethod=test3164ReadOnlySelf> |
---|
1047 | |
---|
1048 | def test3164ReadOnlySelf(self): |
---|
1049 | group = self.new_group(perms="rwr---") |
---|
1050 | owner = self.new_client(group) |
---|
1051 | > self._3164(owner, owner) |
---|
1052 | |
---|
1053 | test/integration/test_search.py:44: |
---|
1054 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1055 | |
---|
1056 | self = <test.integration.test_search.TestSearch testMethod=test3164ReadOnlySelf> |
---|
1057 | owner = <omero.clients.BaseClient object at 0x53f1ed0> |
---|
1058 | searcher = <omero.clients.BaseClient object at 0x53f1ed0> |
---|
1059 | |
---|
1060 | def _3164(self, owner, searcher): |
---|
1061 | |
---|
1062 | images = list() |
---|
1063 | for i in range(0,5): |
---|
1064 | img = omero.model.ImageI() |
---|
1065 | img.name = omero.rtypes.rstring("search_test_%i.tif" % i) |
---|
1066 | img.acquisitionDate = omero.rtypes.rtime(0) |
---|
1067 | tag = omero.model.TagAnnotationI() |
---|
1068 | tag.textValue = omero.rtypes.rstring("tag %i" % i) |
---|
1069 | img.linkAnnotation( tag ) |
---|
1070 | |
---|
1071 | images.append(owner.sf.getUpdateService().saveAndReturnObject( img )) |
---|
1072 | self.index(images[-1]) |
---|
1073 | |
---|
1074 | p = omero.sys.Parameters() |
---|
1075 | p.map = {} |
---|
1076 | p.map["oids"] = omero.rtypes.rlist(im.id for im in images) |
---|
1077 | |
---|
1078 | sql = "select im from Image im "\ |
---|
1079 | "where im.id in (:oids) " \ |
---|
1080 | "order by im.id asc" |
---|
1081 | res = owner.sf.getQueryService().findAllByQuery(sql, p) |
---|
1082 | self.assertEquals(5, len(res)) |
---|
1083 | |
---|
1084 | #Searching |
---|
1085 | texts = ("*earch", "*h", "search tif", "search",\ |
---|
1086 | "test", "tag", "t*", "search_test",\ |
---|
1087 | "s .tif", ".tif", "tif", "*tif") |
---|
1088 | |
---|
1089 | BROKEN = ("*test*.tif", "search*tif", "s*.tif", "*.tif") |
---|
1090 | |
---|
1091 | search = searcher.sf.createSearchService() |
---|
1092 | search.onlyType('Image') |
---|
1093 | search.addOrderByAsc("name") |
---|
1094 | search.setAllowLeadingWildcard(True) |
---|
1095 | |
---|
1096 | failed = {} |
---|
1097 | for text in texts: |
---|
1098 | search.byFullText(str(text)) |
---|
1099 | if search.hasNext(): |
---|
1100 | sz = len(search.results()) |
---|
1101 | else: |
---|
1102 | sz = 0 |
---|
1103 | if 5 != sz: |
---|
1104 | failed[text] = sz |
---|
1105 | |
---|
1106 | msg = "" |
---|
1107 | for k in sorted(failed): |
---|
1108 | msg += """\nFAILED: `%s` returned %s""" % (k, failed[k]) |
---|
1109 | |
---|
1110 | if msg: |
---|
1111 | > self.fail("%s\n" % msg) |
---|
1112 | E AssertionError: |
---|
1113 | E FAILED: `*earch` returned 3 |
---|
1114 | E FAILED: `*h` returned 3 |
---|
1115 | E FAILED: `*tif` returned 3 |
---|
1116 | E FAILED: `.tif` returned 3 |
---|
1117 | E FAILED: `s .tif` returned 3 |
---|
1118 | E FAILED: `search` returned 3 |
---|
1119 | E FAILED: `search tif` returned 3 |
---|
1120 | E FAILED: `search_test` returned 3 |
---|
1121 | E FAILED: `t*` returned 3 |
---|
1122 | E FAILED: `tag` returned 3 |
---|
1123 | E FAILED: `test` returned 3 |
---|
1124 | E FAILED: `tif` returned 3 |
---|
1125 | |
---|
1126 | test/integration/test_search.py:157: AssertionError</failure></testcase><testcase classname="test.integration.test_search.TestSearch" name="test3721Ordering" time="2.17688393593"><failure message="test failure">self = <test.integration.test_search.TestSearch testMethod=test3721Ordering> |
---|
1127 | |
---|
1128 | def test3721Ordering(self): |
---|
1129 | """ |
---|
1130 | Creates two tags and checks that boosting |
---|
1131 | works properly on their namespaces. |
---|
1132 | |
---|
1133 | tag1^10 OR tag2^1 should return a list |
---|
1134 | with tag1 first, and the reverse should |
---|
1135 | hold as well. |
---|
1136 | """ |
---|
1137 | tags = list() |
---|
1138 | for x in range(2): |
---|
1139 | tag = omero.model.TagAnnotationI() |
---|
1140 | tag.ns = omero.rtypes.rstring(self.uuid()) |
---|
1141 | tag = self.update.saveAndReturnObject(tag) |
---|
1142 | self.index(tag) |
---|
1143 | tags.append(tag.ns.val) |
---|
1144 | |
---|
1145 | search = self.client.sf.createSearchService() |
---|
1146 | search.onlyType("TagAnnotation") |
---|
1147 | |
---|
1148 | # Sanity check |
---|
1149 | for tag in tags: |
---|
1150 | search.byFullText(tag) |
---|
1151 | > res = search.results() |
---|
1152 | |
---|
1153 | test/integration/test_search.py:86: |
---|
1154 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1155 | |
---|
1156 | self = 1756dceb-84d6-4273-aad6-be61c21f7a64/e549f6b5-f163-4983-97de-e9103366e0caomero.api.Search -t:tcp -h 10.2.1.197 -p 40482 |
---|
1157 | _ctx = None |
---|
1158 | |
---|
1159 | def results(self, _ctx=None): |
---|
1160 | > return _M_omero.api.Search._op_results.invoke(self, ((), _ctx)) |
---|
1161 | E ApiUsageException: exception ::omero::ApiUsageException |
---|
1162 | E { |
---|
1163 | E serverStackTrace = ome.conditions.ApiUsageException: No elements. Please use hasNext(). |
---|
1164 | E at ome.services.SearchBean.results(SearchBean.java:296) |
---|
1165 | E at sun.reflect.GeneratedMethodAccessor1694.invoke(Unknown Source) |
---|
1166 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1167 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1168 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1169 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1170 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1171 | E at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) |
---|
1172 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1173 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1174 | E at $Proxy125.results(Unknown Source) |
---|
1175 | E at sun.reflect.GeneratedMethodAccessor1694.invoke(Unknown Source) |
---|
1176 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1177 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1178 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1179 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1180 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1181 | E at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98) |
---|
1182 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1183 | E at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43) |
---|
1184 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1185 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1186 | E at $Proxy125.results(Unknown Source) |
---|
1187 | E at sun.reflect.GeneratedMethodAccessor1706.invoke(Unknown Source) |
---|
1188 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1189 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1190 | E at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) |
---|
1191 | E at ome.services.throttling.Callback.run(Callback.java:56) |
---|
1192 | E at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) |
---|
1193 | E at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149) |
---|
1194 | E at ome.services.blitz.impl.SearchI.results_async(SearchI.java:336) |
---|
1195 | E at sun.reflect.GeneratedMethodAccessor1705.invoke(Unknown Source) |
---|
1196 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1197 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1198 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1199 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1200 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1201 | E at omero.cmd.CallContext.invoke(CallContext.java:59) |
---|
1202 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1203 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1204 | E at $Proxy126.results_async(Unknown Source) |
---|
1205 | E at omero.api._SearchTie.results_async(_SearchTie.java:353) |
---|
1206 | E at omero.api._SearchDisp.___results(_SearchDisp.java:1374) |
---|
1207 | E at omero.api._SearchDisp.__dispatch(_SearchDisp.java:1699) |
---|
1208 | E at IceInternal.Incoming.invoke(Incoming.java:159) |
---|
1209 | E at Ice.ConnectionI.invokeAll(ConnectionI.java:2357) |
---|
1210 | E at Ice.ConnectionI.dispatch(ConnectionI.java:1208) |
---|
1211 | E at Ice.ConnectionI.message(ConnectionI.java:1163) |
---|
1212 | E at IceInternal.ThreadPool.run(ThreadPool.java:302) |
---|
1213 | E at IceInternal.ThreadPool.access$300(ThreadPool.java:12) |
---|
1214 | E at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) |
---|
1215 | E at java.lang.Thread.run(Thread.java:722) |
---|
1216 | E |
---|
1217 | E serverExceptionClass = ome.conditions.ApiUsageException |
---|
1218 | E message = No elements. Please use hasNext(). |
---|
1219 | E } |
---|
1220 | |
---|
1221 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero_api_Search_ice.py:752: ApiUsageException</failure></testcase><testcase classname="test.integration.test_search.TestSearch" name="test8692" time="2.96226215363"><failure message="test failure">self = <test.integration.test_search.TestSearch testMethod=test8692> |
---|
1222 | |
---|
1223 | def test8692(self): |
---|
1224 | # Test that group admin and system admins can |
---|
1225 | # find items in non-private groups. |
---|
1226 | |
---|
1227 | all = {"omero.group": "-1"} |
---|
1228 | msg = "%s: Count not find ann=%s as %s in %s" |
---|
1229 | |
---|
1230 | for x in ("rw", "rwr", "rwra", "rwrw"): |
---|
1231 | p = x.ljust(6, "-") |
---|
1232 | g = self.new_group(perms=p) |
---|
1233 | u = self.new_client(group=g) |
---|
1234 | a = self.new_client(group=g, admin=True) |
---|
1235 | |
---|
1236 | uuid = self.uuid().replace("-","") |
---|
1237 | |
---|
1238 | # Create a comment as the user |
---|
1239 | t = omero.model.CommentAnnotationI() |
---|
1240 | t.setTextValue(omero.rtypes.rstring(uuid)) |
---|
1241 | t = u.sf.getUpdateService().saveAndReturnObject(t) |
---|
1242 | self.root.sf.getUpdateService().indexObject(t) # Index |
---|
1243 | |
---|
1244 | # And try to read it back as the leader and the admin |
---|
1245 | for sf, who in ((a.sf, "grp-admin"), (self.root.sf, "sys-admin")): |
---|
1246 | |
---|
1247 | # First see if IQuery.findAllByFullText works |
---|
1248 | # Note: it's necessary to pass {"omero.group":"-1"} |
---|
1249 | q = sf.getQueryService() |
---|
1250 | t = q.findAllByFullText("CommentAnnotation", uuid, None, all) |
---|
1251 | if not t or len(t) != 1: |
---|
1252 | > self.fail(msg % ("IQueryPrx", uuid, who, x)) |
---|
1253 | E AssertionError: IQueryPrx: Count not find ann=5f53222316cd4ac59e57b0024b30937a as grp-admin in rwr |
---|
1254 | |
---|
1255 | test/integration/test_search.py:188: AssertionError</failure></testcase><testcase classname="test.integration.test_search.TestSearch" name="test8846" time="2.3930811882"><failure message="test failure">self = <test.integration.test_search.TestSearch testMethod=test8846> |
---|
1256 | |
---|
1257 | def test8846(self): |
---|
1258 | # Wildcard search |
---|
1259 | |
---|
1260 | client = self.new_client() |
---|
1261 | query = client.sf.getQueryService() |
---|
1262 | update = client.sf.getUpdateService() |
---|
1263 | |
---|
1264 | uuid = self.uuid().replace("-", "") |
---|
1265 | cann = omero.model.CommentAnnotationI() |
---|
1266 | cann.textValue = omero.rtypes.rstring(uuid) |
---|
1267 | cann = update.saveAndReturnObject(cann) |
---|
1268 | self.root.sf.getUpdateService().indexObject(cann) |
---|
1269 | |
---|
1270 | rv = query.findAllByFullText( \ |
---|
1271 | "CommentAnnotation", "%s" % uuid, None) |
---|
1272 | #"CommentAnnotation", "%s*" % uuid[0:6], None) |
---|
1273 | > self.assertEquals(cann.id.val, rv[0].id.val) |
---|
1274 | E IndexError: list index out of range |
---|
1275 | |
---|
1276 | test/integration/test_search.py:215: IndexError</failure></testcase><testcase classname="test.integration.test_simple.TestSimple" name="testCurrentUser" time="0.687950134277"/><testcase classname="test.integration.test_thumbnailPerms.TestThumbnailPerms" name="test9070" time="1.59283494949"/><testcase classname="test.integration.test_thumbnailPerms.TestThumbnailPerms" name="testThumbs" time="7.80423092842"><system-out>0 |
---|
1277 | 4 |
---|
1278 | 4 |
---|
1279 | </system-out></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testCreateThumbnails" time="215.21339488"/><testcase classname="test.integration.test_thumbs.TestThumbs" name="testCreateThumbnails64x64" time="215.186970234"/><testcase classname="test.integration.test_thumbs.TestThumbs" name="testCreateThumbnailsByLongestSideSet64x64" time="428.153107882"/><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailByLongestSideSetx64" time="426.784152031"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailByLongestSideSetx64> |
---|
1280 | |
---|
1281 | def f(self): |
---|
1282 | pix1 = self.missing_pyramid() |
---|
1283 | pix2 = self.missing_pyramid() |
---|
1284 | tb = self.client.sf.createThumbnailStore() |
---|
1285 | copy = list(args) |
---|
1286 | copy.append([pix1.id.val, pix2.id.val]) |
---|
1287 | copy = tuple(copy) |
---|
1288 | try: |
---|
1289 | buf_map = getattr(tb, method)(*copy) |
---|
1290 | for id, buf in buf_map.items(): |
---|
1291 | > self.assertTb(buf, x, y) |
---|
1292 | |
---|
1293 | test/integration/test_thumbs.py:115: |
---|
1294 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1295 | |
---|
1296 | self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailByLongestSideSetx64> |
---|
1297 | buf = '', x = 64, y = 64 |
---|
1298 | |
---|
1299 | def assertTb(self, buf, x=64, y=64): |
---|
1300 | try: |
---|
1301 | from PIL import Image, ImageDraw # see ticket:2597 |
---|
1302 | except ImportError: |
---|
1303 | try: |
---|
1304 | import Image, ImageDraw # see ticket:2597 |
---|
1305 | except ImportError: |
---|
1306 | print "PIL not installed" |
---|
1307 | > thumb = self.open_jpeg_buffer(buf) |
---|
1308 | |
---|
1309 | test/integration/test_thumbs.py:30: |
---|
1310 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1311 | |
---|
1312 | self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailByLongestSideSetx64> |
---|
1313 | buf = '' |
---|
1314 | |
---|
1315 | def open_jpeg_buffer(self, buf): |
---|
1316 | try: |
---|
1317 | from PIL import Image, ImageDraw # see ticket:2597 |
---|
1318 | except ImportError: |
---|
1319 | try: |
---|
1320 | import Image, ImageDraw # see ticket:2597 |
---|
1321 | except ImportError: |
---|
1322 | print "PIL not installed" |
---|
1323 | from cStringIO import StringIO |
---|
1324 | tfile = StringIO(buf) |
---|
1325 | > jpeg = Image.open(tfile) # Raises if invalid |
---|
1326 | |
---|
1327 | test/integration/library.py:528: |
---|
1328 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1329 | |
---|
1330 | fp = <cStringIO.StringI object at 0x49b6c90>, mode = 'r' |
---|
1331 | |
---|
1332 | def open(fp, mode="r"): |
---|
1333 | "Open an image file, without loading the raster data" |
---|
1334 | |
---|
1335 | if mode != "r": |
---|
1336 | raise ValueError("bad mode") |
---|
1337 | |
---|
1338 | if isStringType(fp): |
---|
1339 | import __builtin__ |
---|
1340 | filename = fp |
---|
1341 | fp = __builtin__.open(fp, "rb") |
---|
1342 | else: |
---|
1343 | filename = "" |
---|
1344 | |
---|
1345 | prefix = fp.read(16) |
---|
1346 | |
---|
1347 | preinit() |
---|
1348 | |
---|
1349 | for i in ID: |
---|
1350 | try: |
---|
1351 | factory, accept = OPEN[i] |
---|
1352 | if not accept or accept(prefix): |
---|
1353 | fp.seek(0) |
---|
1354 | return factory(fp, filename) |
---|
1355 | except (SyntaxError, IndexError, TypeError): |
---|
1356 | pass |
---|
1357 | |
---|
1358 | if init(): |
---|
1359 | |
---|
1360 | for i in ID: |
---|
1361 | try: |
---|
1362 | factory, accept = OPEN[i] |
---|
1363 | if not accept or accept(prefix): |
---|
1364 | fp.seek(0) |
---|
1365 | return factory(fp, filename) |
---|
1366 | except (SyntaxError, IndexError, TypeError): |
---|
1367 | pass |
---|
1368 | |
---|
1369 | > raise IOError("cannot identify image file") |
---|
1370 | E IOError: cannot identify image file |
---|
1371 | |
---|
1372 | /homes/hudson-x/virtualenv/lib/python2.6/site-packages/PIL/Image.py:1980: IOError</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailByLongestSidex60" time="209.868142843"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailByLongestSidex60> |
---|
1373 | |
---|
1374 | def f(self): |
---|
1375 | tb = self.pyr_tb() |
---|
1376 | try: |
---|
1377 | > buf = getattr(tb, method)(*args) |
---|
1378 | |
---|
1379 | test/integration/test_thumbs.py:97: |
---|
1380 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1381 | |
---|
1382 | self = f16baa00-bf29-4133-ac1d-ba2b02122510/8d76ce5f-9ada-4827-b7bd-0cfb7ac0e84fomero.api.ThumbnailStore -t:tcp -h 10.2.1.197 -p 40482 |
---|
1383 | size = object #0 (::omero::RInt) |
---|
1384 | { |
---|
1385 | _val = 60 |
---|
1386 | }, _ctx = None |
---|
1387 | |
---|
1388 | def getThumbnailByLongestSide(self, size, _ctx=None): |
---|
1389 | > return _M_omero.api.ThumbnailStore._op_getThumbnailByLongestSide.invoke(self, ((size, ), _ctx)) |
---|
1390 | E InternalException: exception ::omero::InternalException |
---|
1391 | E { |
---|
1392 | E serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1393 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1394 | E at org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) |
---|
1395 | E at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) |
---|
1396 | E at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) |
---|
1397 | E at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) |
---|
1398 | E at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) |
---|
1399 | E at ome.services.SVGRasterizer.createJPEG(SVGRasterizer.java:116) |
---|
1400 | E at ome.services.ThumbnailBean.compressInProgressImageToStream(ThumbnailBean.java:503) |
---|
1401 | E at ome.services.ThumbnailBean.retrieveThumbnailDirect(ThumbnailBean.java:1122) |
---|
1402 | E at ome.services.ThumbnailBean.retrieveThumbnail(ThumbnailBean.java:1026) |
---|
1403 | E at ome.services.ThumbnailBean.retrieveThumbnailAndUpdateMetadata(ThumbnailBean.java:1003) |
---|
1404 | E at ome.services.ThumbnailBean.getThumbnailByLongestSide(ThumbnailBean.java:1079) |
---|
1405 | E at sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source) |
---|
1406 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1407 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1408 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1409 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1410 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1411 | E at ome.security.basic.EventHandler.invoke(EventHandler.java:154) |
---|
1412 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1413 | E at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:182) |
---|
1414 | E at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:166) |
---|
1415 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1416 | E at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) |
---|
1417 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1418 | E at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) |
---|
1419 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1420 | E at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) |
---|
1421 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1422 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1423 | E at $Proxy90.getThumbnailByLongestSide(Unknown Source) |
---|
1424 | E at sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source) |
---|
1425 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1426 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1427 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1428 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1429 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1430 | E at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98) |
---|
1431 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1432 | E at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43) |
---|
1433 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1434 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1435 | E at $Proxy90.getThumbnailByLongestSide(Unknown Source) |
---|
1436 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1437 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1438 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1439 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1440 | E at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) |
---|
1441 | E at ome.services.throttling.Callback.run(Callback.java:56) |
---|
1442 | E at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) |
---|
1443 | E at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149) |
---|
1444 | E at ome.services.blitz.impl.ThumbnailStoreI.getThumbnailByLongestSide_async(ThumbnailStoreI.java:94) |
---|
1445 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1446 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1447 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1448 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1449 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1450 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1451 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1452 | E at omero.cmd.CallContext.invoke(CallContext.java:59) |
---|
1453 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1454 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1455 | E at $Proxy91.getThumbnailByLongestSide_async(Unknown Source) |
---|
1456 | E at omero.api._ThumbnailStoreTie.getThumbnailByLongestSide_async(_ThumbnailStoreTie.java:136) |
---|
1457 | E at omero.api._ThumbnailStoreDisp.___getThumbnailByLongestSide(_ThumbnailStoreDisp.java:431) |
---|
1458 | E at omero.api._ThumbnailStoreDisp.__dispatch(_ThumbnailStoreDisp.java:720) |
---|
1459 | E at IceInternal.Incoming.invoke(Incoming.java:159) |
---|
1460 | E at Ice.ConnectionI.invokeAll(ConnectionI.java:2357) |
---|
1461 | E at Ice.ConnectionI.dispatch(ConnectionI.java:1208) |
---|
1462 | E at Ice.ConnectionI.message(ConnectionI.java:1163) |
---|
1463 | E at IceInternal.ThreadPool.run(ThreadPool.java:302) |
---|
1464 | E at IceInternal.ThreadPool.access$300(ThreadPool.java:12) |
---|
1465 | E at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) |
---|
1466 | E at java.lang.Thread.run(Thread.java:722) |
---|
1467 | E |
---|
1468 | E serverExceptionClass = ome.conditions.InternalException |
---|
1469 | E message = Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1470 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1471 | E } |
---|
1472 | |
---|
1473 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero_api_ThumbnailStore_ice.py:215: InternalException</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailByLongestSidex64" time="219.328726053"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailByLongestSidex64> |
---|
1474 | |
---|
1475 | def f(self): |
---|
1476 | tb = self.pyr_tb() |
---|
1477 | try: |
---|
1478 | > buf = getattr(tb, method)(*args) |
---|
1479 | |
---|
1480 | test/integration/test_thumbs.py:97: |
---|
1481 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1482 | |
---|
1483 | self = e773d71c-c23e-4fc2-afa6-77c71188ad00/fcffc8f8-45ce-4802-a419-e464c70cc5f0omero.api.ThumbnailStore -t:tcp -h 10.2.1.197 -p 40482 |
---|
1484 | size = object #0 (::omero::RInt) |
---|
1485 | { |
---|
1486 | _val = 64 |
---|
1487 | }, _ctx = None |
---|
1488 | |
---|
1489 | def getThumbnailByLongestSide(self, size, _ctx=None): |
---|
1490 | > return _M_omero.api.ThumbnailStore._op_getThumbnailByLongestSide.invoke(self, ((size, ), _ctx)) |
---|
1491 | E InternalException: exception ::omero::InternalException |
---|
1492 | E { |
---|
1493 | E serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1494 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1495 | E at org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) |
---|
1496 | E at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) |
---|
1497 | E at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) |
---|
1498 | E at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) |
---|
1499 | E at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) |
---|
1500 | E at ome.services.SVGRasterizer.createJPEG(SVGRasterizer.java:116) |
---|
1501 | E at ome.services.ThumbnailBean.compressInProgressImageToStream(ThumbnailBean.java:503) |
---|
1502 | E at ome.services.ThumbnailBean.retrieveThumbnailDirect(ThumbnailBean.java:1122) |
---|
1503 | E at ome.services.ThumbnailBean.retrieveThumbnail(ThumbnailBean.java:1026) |
---|
1504 | E at ome.services.ThumbnailBean.retrieveThumbnailAndUpdateMetadata(ThumbnailBean.java:1003) |
---|
1505 | E at ome.services.ThumbnailBean.getThumbnailByLongestSide(ThumbnailBean.java:1079) |
---|
1506 | E at sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source) |
---|
1507 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1508 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1509 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1510 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1511 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1512 | E at ome.security.basic.EventHandler.invoke(EventHandler.java:154) |
---|
1513 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1514 | E at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:182) |
---|
1515 | E at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:166) |
---|
1516 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1517 | E at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) |
---|
1518 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1519 | E at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) |
---|
1520 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1521 | E at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) |
---|
1522 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1523 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1524 | E at $Proxy90.getThumbnailByLongestSide(Unknown Source) |
---|
1525 | E at sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source) |
---|
1526 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1527 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1528 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1529 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1530 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1531 | E at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98) |
---|
1532 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1533 | E at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43) |
---|
1534 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1535 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1536 | E at $Proxy90.getThumbnailByLongestSide(Unknown Source) |
---|
1537 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1538 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1539 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1540 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1541 | E at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) |
---|
1542 | E at ome.services.throttling.Callback.run(Callback.java:56) |
---|
1543 | E at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) |
---|
1544 | E at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149) |
---|
1545 | E at ome.services.blitz.impl.ThumbnailStoreI.getThumbnailByLongestSide_async(ThumbnailStoreI.java:94) |
---|
1546 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1547 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1548 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1549 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1550 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1551 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1552 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1553 | E at omero.cmd.CallContext.invoke(CallContext.java:59) |
---|
1554 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1555 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1556 | E at $Proxy91.getThumbnailByLongestSide_async(Unknown Source) |
---|
1557 | E at omero.api._ThumbnailStoreTie.getThumbnailByLongestSide_async(_ThumbnailStoreTie.java:136) |
---|
1558 | E at omero.api._ThumbnailStoreDisp.___getThumbnailByLongestSide(_ThumbnailStoreDisp.java:431) |
---|
1559 | E at omero.api._ThumbnailStoreDisp.__dispatch(_ThumbnailStoreDisp.java:720) |
---|
1560 | E at IceInternal.Incoming.invoke(Incoming.java:159) |
---|
1561 | E at Ice.ConnectionI.invokeAll(ConnectionI.java:2357) |
---|
1562 | E at Ice.ConnectionI.dispatch(ConnectionI.java:1208) |
---|
1563 | E at Ice.ConnectionI.message(ConnectionI.java:1163) |
---|
1564 | E at IceInternal.ThreadPool.run(ThreadPool.java:302) |
---|
1565 | E at IceInternal.ThreadPool.access$300(ThreadPool.java:12) |
---|
1566 | E at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) |
---|
1567 | E at java.lang.Thread.run(Thread.java:722) |
---|
1568 | E |
---|
1569 | E serverExceptionClass = ome.conditions.InternalException |
---|
1570 | E message = Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1571 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1572 | E } |
---|
1573 | |
---|
1574 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero_api_ThumbnailStore_ice.py:215: InternalException</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailDirectx64x60" time="212.938359022"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailDirectx64x60> |
---|
1575 | |
---|
1576 | def f(self): |
---|
1577 | tb = self.pyr_tb() |
---|
1578 | try: |
---|
1579 | > buf = getattr(tb, method)(*args) |
---|
1580 | |
---|
1581 | test/integration/test_thumbs.py:97: |
---|
1582 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1583 | |
---|
1584 | self = 520b2434-a714-40c9-a740-afaa7cbebf27/6c582602-7291-4746-9892-8ff85d60fad5omero.api.ThumbnailStore -t:tcp -h 10.2.1.197 -p 40482 |
---|
1585 | sizeX = object #0 (::omero::RInt) |
---|
1586 | { |
---|
1587 | _val = 64 |
---|
1588 | } |
---|
1589 | sizeY = object #0 (::omero::RInt) |
---|
1590 | { |
---|
1591 | _val = 60 |
---|
1592 | }, _ctx = None |
---|
1593 | |
---|
1594 | def getThumbnailDirect(self, sizeX, sizeY, _ctx=None): |
---|
1595 | > return _M_omero.api.ThumbnailStore._op_getThumbnailDirect.invoke(self, ((sizeX, sizeY), _ctx)) |
---|
1596 | E InternalException: exception ::omero::InternalException |
---|
1597 | E { |
---|
1598 | E serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1599 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1600 | E at org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) |
---|
1601 | E at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) |
---|
1602 | E at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) |
---|
1603 | E at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) |
---|
1604 | E at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) |
---|
1605 | E at ome.services.SVGRasterizer.createJPEG(SVGRasterizer.java:116) |
---|
1606 | E at ome.services.ThumbnailBean.compressInProgressImageToStream(ThumbnailBean.java:503) |
---|
1607 | E at ome.services.ThumbnailBean.retrieveThumbnailDirect(ThumbnailBean.java:1122) |
---|
1608 | E at ome.services.ThumbnailBean.getThumbnailDirect(ThumbnailBean.java:1094) |
---|
1609 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1610 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1611 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1612 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1613 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1614 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1615 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1616 | E at ome.security.basic.EventHandler.invoke(EventHandler.java:154) |
---|
1617 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1618 | E at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:182) |
---|
1619 | E at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:166) |
---|
1620 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1621 | E at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) |
---|
1622 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1623 | E at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) |
---|
1624 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1625 | E at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) |
---|
1626 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1627 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1628 | E at $Proxy90.getThumbnailDirect(Unknown Source) |
---|
1629 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1630 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1631 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1632 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1633 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1634 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1635 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1636 | E at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98) |
---|
1637 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1638 | E at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43) |
---|
1639 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1640 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1641 | E at $Proxy90.getThumbnailDirect(Unknown Source) |
---|
1642 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1643 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1644 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1645 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1646 | E at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) |
---|
1647 | E at ome.services.throttling.Callback.run(Callback.java:56) |
---|
1648 | E at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) |
---|
1649 | E at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149) |
---|
1650 | E at ome.services.blitz.impl.ThumbnailStoreI.getThumbnailDirect_async(ThumbnailStoreI.java:101) |
---|
1651 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1652 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1653 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1654 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1655 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1656 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1657 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1658 | E at omero.cmd.CallContext.invoke(CallContext.java:59) |
---|
1659 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1660 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1661 | E at $Proxy91.getThumbnailDirect_async(Unknown Source) |
---|
1662 | E at omero.api._ThumbnailStoreTie.getThumbnailDirect_async(_ThumbnailStoreTie.java:157) |
---|
1663 | E at omero.api._ThumbnailStoreDisp.___getThumbnailDirect(_ThumbnailStoreDisp.java:477) |
---|
1664 | E at omero.api._ThumbnailStoreDisp.__dispatch(_ThumbnailStoreDisp.java:732) |
---|
1665 | E at IceInternal.Incoming.invoke(Incoming.java:159) |
---|
1666 | E at Ice.ConnectionI.invokeAll(ConnectionI.java:2357) |
---|
1667 | E at Ice.ConnectionI.dispatch(ConnectionI.java:1208) |
---|
1668 | E at Ice.ConnectionI.message(ConnectionI.java:1163) |
---|
1669 | E at IceInternal.ThreadPool.run(ThreadPool.java:302) |
---|
1670 | E at IceInternal.ThreadPool.access$300(ThreadPool.java:12) |
---|
1671 | E at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) |
---|
1672 | E at java.lang.Thread.run(Thread.java:722) |
---|
1673 | E |
---|
1674 | E serverExceptionClass = ome.conditions.InternalException |
---|
1675 | E message = Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1676 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1677 | E } |
---|
1678 | |
---|
1679 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero_api_ThumbnailStore_ice.py:239: InternalException</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailDirectx64x64" time="213.293728113"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailDirectx64x64> |
---|
1680 | |
---|
1681 | def f(self): |
---|
1682 | tb = self.pyr_tb() |
---|
1683 | try: |
---|
1684 | > buf = getattr(tb, method)(*args) |
---|
1685 | |
---|
1686 | test/integration/test_thumbs.py:97: |
---|
1687 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1688 | |
---|
1689 | self = a36c336f-1309-4694-9928-4b2cb0a5aa41/a494a3ea-4916-4d5b-a47d-14ec3980c737omero.api.ThumbnailStore -t:tcp -h 10.2.1.197 -p 40482 |
---|
1690 | sizeX = object #0 (::omero::RInt) |
---|
1691 | { |
---|
1692 | _val = 64 |
---|
1693 | } |
---|
1694 | sizeY = object #0 (::omero::RInt) |
---|
1695 | { |
---|
1696 | _val = 64 |
---|
1697 | }, _ctx = None |
---|
1698 | |
---|
1699 | def getThumbnailDirect(self, sizeX, sizeY, _ctx=None): |
---|
1700 | > return _M_omero.api.ThumbnailStore._op_getThumbnailDirect.invoke(self, ((sizeX, sizeY), _ctx)) |
---|
1701 | E InternalException: exception ::omero::InternalException |
---|
1702 | E { |
---|
1703 | E serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1704 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1705 | E at org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) |
---|
1706 | E at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) |
---|
1707 | E at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) |
---|
1708 | E at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) |
---|
1709 | E at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) |
---|
1710 | E at ome.services.SVGRasterizer.createJPEG(SVGRasterizer.java:116) |
---|
1711 | E at ome.services.ThumbnailBean.compressInProgressImageToStream(ThumbnailBean.java:503) |
---|
1712 | E at ome.services.ThumbnailBean.retrieveThumbnailDirect(ThumbnailBean.java:1122) |
---|
1713 | E at ome.services.ThumbnailBean.getThumbnailDirect(ThumbnailBean.java:1094) |
---|
1714 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1715 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1716 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1717 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1718 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1719 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1720 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1721 | E at ome.security.basic.EventHandler.invoke(EventHandler.java:154) |
---|
1722 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1723 | E at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:182) |
---|
1724 | E at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:166) |
---|
1725 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1726 | E at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) |
---|
1727 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1728 | E at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) |
---|
1729 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1730 | E at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) |
---|
1731 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1732 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1733 | E at $Proxy90.getThumbnailDirect(Unknown Source) |
---|
1734 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1735 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1736 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1737 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1738 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1739 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1740 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1741 | E at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98) |
---|
1742 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1743 | E at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43) |
---|
1744 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1745 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1746 | E at $Proxy90.getThumbnailDirect(Unknown Source) |
---|
1747 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1748 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1749 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1750 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1751 | E at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) |
---|
1752 | E at ome.services.throttling.Callback.run(Callback.java:56) |
---|
1753 | E at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) |
---|
1754 | E at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149) |
---|
1755 | E at ome.services.blitz.impl.ThumbnailStoreI.getThumbnailDirect_async(ThumbnailStoreI.java:101) |
---|
1756 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1757 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1758 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1759 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1760 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1761 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1762 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1763 | E at omero.cmd.CallContext.invoke(CallContext.java:59) |
---|
1764 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1765 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1766 | E at $Proxy91.getThumbnailDirect_async(Unknown Source) |
---|
1767 | E at omero.api._ThumbnailStoreTie.getThumbnailDirect_async(_ThumbnailStoreTie.java:157) |
---|
1768 | E at omero.api._ThumbnailStoreDisp.___getThumbnailDirect(_ThumbnailStoreDisp.java:477) |
---|
1769 | E at omero.api._ThumbnailStoreDisp.__dispatch(_ThumbnailStoreDisp.java:732) |
---|
1770 | E at IceInternal.Incoming.invoke(Incoming.java:159) |
---|
1771 | E at Ice.ConnectionI.invokeAll(ConnectionI.java:2357) |
---|
1772 | E at Ice.ConnectionI.dispatch(ConnectionI.java:1208) |
---|
1773 | E at Ice.ConnectionI.message(ConnectionI.java:1163) |
---|
1774 | E at IceInternal.ThreadPool.run(ThreadPool.java:302) |
---|
1775 | E at IceInternal.ThreadPool.access$300(ThreadPool.java:12) |
---|
1776 | E at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) |
---|
1777 | E at java.lang.Thread.run(Thread.java:722) |
---|
1778 | E |
---|
1779 | E serverExceptionClass = ome.conditions.InternalException |
---|
1780 | E message = Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1781 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1782 | E } |
---|
1783 | |
---|
1784 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero_api_ThumbnailStore_ice.py:239: InternalException</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailForSectionDirectx0x0x64x60" time="214.849621058"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailForSectionDirectx0x0x64x60> |
---|
1785 | |
---|
1786 | def f(self): |
---|
1787 | tb = self.pyr_tb() |
---|
1788 | try: |
---|
1789 | > buf = getattr(tb, method)(*args) |
---|
1790 | |
---|
1791 | test/integration/test_thumbs.py:97: |
---|
1792 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1793 | |
---|
1794 | self = 52ef3c94-be3b-468b-8c47-f30687021ebd/0b5dacb7-5d87-433b-8e28-320b5af1957domero.api.ThumbnailStore -t:tcp -h 10.2.1.197 -p 40482 |
---|
1795 | theZ = 0, theT = 0, sizeX = object #0 (::omero::RInt) |
---|
1796 | { |
---|
1797 | _val = 64 |
---|
1798 | } |
---|
1799 | sizeY = object #0 (::omero::RInt) |
---|
1800 | { |
---|
1801 | _val = 60 |
---|
1802 | }, _ctx = None |
---|
1803 | |
---|
1804 | def getThumbnailForSectionDirect(self, theZ, theT, sizeX, sizeY, _ctx=None): |
---|
1805 | > return _M_omero.api.ThumbnailStore._op_getThumbnailForSectionDirect.invoke(self, ((theZ, theT, sizeX, sizeY), _ctx)) |
---|
1806 | E InternalException: exception ::omero::InternalException |
---|
1807 | E { |
---|
1808 | E serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1809 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1810 | E at org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) |
---|
1811 | E at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) |
---|
1812 | E at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) |
---|
1813 | E at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) |
---|
1814 | E at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) |
---|
1815 | E at ome.services.SVGRasterizer.createJPEG(SVGRasterizer.java:116) |
---|
1816 | E at ome.services.ThumbnailBean.compressInProgressImageToStream(ThumbnailBean.java:503) |
---|
1817 | E at ome.services.ThumbnailBean.retrieveThumbnailDirect(ThumbnailBean.java:1122) |
---|
1818 | E at ome.services.ThumbnailBean.getThumbnailForSectionDirect(ThumbnailBean.java:1148) |
---|
1819 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1820 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1821 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1822 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1823 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1824 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1825 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1826 | E at ome.security.basic.EventHandler.invoke(EventHandler.java:154) |
---|
1827 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1828 | E at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:182) |
---|
1829 | E at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:166) |
---|
1830 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1831 | E at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) |
---|
1832 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1833 | E at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) |
---|
1834 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1835 | E at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) |
---|
1836 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1837 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1838 | E at $Proxy90.getThumbnailForSectionDirect(Unknown Source) |
---|
1839 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1840 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1841 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1842 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1843 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1844 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1845 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1846 | E at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98) |
---|
1847 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1848 | E at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43) |
---|
1849 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1850 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1851 | E at $Proxy90.getThumbnailForSectionDirect(Unknown Source) |
---|
1852 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1853 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1854 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1855 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1856 | E at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) |
---|
1857 | E at ome.services.throttling.Callback.run(Callback.java:56) |
---|
1858 | E at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) |
---|
1859 | E at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149) |
---|
1860 | E at ome.services.blitz.impl.ThumbnailStoreI.getThumbnailForSectionDirect_async(ThumbnailStoreI.java:117) |
---|
1861 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1862 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1863 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1864 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1865 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1866 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1867 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1868 | E at omero.cmd.CallContext.invoke(CallContext.java:59) |
---|
1869 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1870 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1871 | E at $Proxy91.getThumbnailForSectionDirect_async(Unknown Source) |
---|
1872 | E at omero.api._ThumbnailStoreTie.getThumbnailForSectionDirect_async(_ThumbnailStoreTie.java:171) |
---|
1873 | E at omero.api._ThumbnailStoreDisp.___getThumbnailForSectionDirect(_ThumbnailStoreDisp.java:505) |
---|
1874 | E at omero.api._ThumbnailStoreDisp.__dispatch(_ThumbnailStoreDisp.java:740) |
---|
1875 | E at IceInternal.Incoming.invoke(Incoming.java:159) |
---|
1876 | E at Ice.ConnectionI.invokeAll(ConnectionI.java:2357) |
---|
1877 | E at Ice.ConnectionI.dispatch(ConnectionI.java:1208) |
---|
1878 | E at Ice.ConnectionI.message(ConnectionI.java:1163) |
---|
1879 | E at IceInternal.ThreadPool.run(ThreadPool.java:302) |
---|
1880 | E at IceInternal.ThreadPool.access$300(ThreadPool.java:12) |
---|
1881 | E at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) |
---|
1882 | E at java.lang.Thread.run(Thread.java:722) |
---|
1883 | E |
---|
1884 | E serverExceptionClass = ome.conditions.InternalException |
---|
1885 | E message = Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1886 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1887 | E } |
---|
1888 | |
---|
1889 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero_api_ThumbnailStore_ice.py:251: InternalException</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailForSectionDirectx0x0x64x64" time="213.761532068"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailForSectionDirectx0x0x64x64> |
---|
1890 | |
---|
1891 | def f(self): |
---|
1892 | tb = self.pyr_tb() |
---|
1893 | try: |
---|
1894 | > buf = getattr(tb, method)(*args) |
---|
1895 | |
---|
1896 | test/integration/test_thumbs.py:97: |
---|
1897 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
1898 | |
---|
1899 | self = 71137a21-d70f-4585-bc68-7c7bf65794d6/3581359c-7932-4eef-8afe-4ca70d253e1aomero.api.ThumbnailStore -t:tcp -h 10.2.1.197 -p 40482 |
---|
1900 | theZ = 0, theT = 0, sizeX = object #0 (::omero::RInt) |
---|
1901 | { |
---|
1902 | _val = 64 |
---|
1903 | } |
---|
1904 | sizeY = object #0 (::omero::RInt) |
---|
1905 | { |
---|
1906 | _val = 64 |
---|
1907 | }, _ctx = None |
---|
1908 | |
---|
1909 | def getThumbnailForSectionDirect(self, theZ, theT, sizeX, sizeY, _ctx=None): |
---|
1910 | > return _M_omero.api.ThumbnailStore._op_getThumbnailForSectionDirect.invoke(self, ((theZ, theT, sizeX, sizeY), _ctx)) |
---|
1911 | E InternalException: exception ::omero::InternalException |
---|
1912 | E { |
---|
1913 | E serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1914 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1915 | E at org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) |
---|
1916 | E at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) |
---|
1917 | E at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) |
---|
1918 | E at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) |
---|
1919 | E at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) |
---|
1920 | E at ome.services.SVGRasterizer.createJPEG(SVGRasterizer.java:116) |
---|
1921 | E at ome.services.ThumbnailBean.compressInProgressImageToStream(ThumbnailBean.java:503) |
---|
1922 | E at ome.services.ThumbnailBean.retrieveThumbnailDirect(ThumbnailBean.java:1122) |
---|
1923 | E at ome.services.ThumbnailBean.getThumbnailForSectionDirect(ThumbnailBean.java:1148) |
---|
1924 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1925 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1926 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1927 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1928 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1929 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1930 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1931 | E at ome.security.basic.EventHandler.invoke(EventHandler.java:154) |
---|
1932 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1933 | E at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:182) |
---|
1934 | E at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:166) |
---|
1935 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1936 | E at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) |
---|
1937 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1938 | E at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) |
---|
1939 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1940 | E at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) |
---|
1941 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1942 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1943 | E at $Proxy90.getThumbnailForSectionDirect(Unknown Source) |
---|
1944 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1945 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1946 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1947 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1948 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1949 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1950 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1951 | E at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98) |
---|
1952 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1953 | E at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43) |
---|
1954 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1955 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1956 | E at $Proxy90.getThumbnailForSectionDirect(Unknown Source) |
---|
1957 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1958 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1959 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1960 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1961 | E at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) |
---|
1962 | E at ome.services.throttling.Callback.run(Callback.java:56) |
---|
1963 | E at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) |
---|
1964 | E at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149) |
---|
1965 | E at ome.services.blitz.impl.ThumbnailStoreI.getThumbnailForSectionDirect_async(ThumbnailStoreI.java:117) |
---|
1966 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
1967 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
1968 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
1969 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
1970 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
1971 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
1972 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
1973 | E at omero.cmd.CallContext.invoke(CallContext.java:59) |
---|
1974 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
1975 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
1976 | E at $Proxy91.getThumbnailForSectionDirect_async(Unknown Source) |
---|
1977 | E at omero.api._ThumbnailStoreTie.getThumbnailForSectionDirect_async(_ThumbnailStoreTie.java:171) |
---|
1978 | E at omero.api._ThumbnailStoreDisp.___getThumbnailForSectionDirect(_ThumbnailStoreDisp.java:505) |
---|
1979 | E at omero.api._ThumbnailStoreDisp.__dispatch(_ThumbnailStoreDisp.java:740) |
---|
1980 | E at IceInternal.Incoming.invoke(Incoming.java:159) |
---|
1981 | E at Ice.ConnectionI.invokeAll(ConnectionI.java:2357) |
---|
1982 | E at Ice.ConnectionI.dispatch(ConnectionI.java:1208) |
---|
1983 | E at Ice.ConnectionI.message(ConnectionI.java:1163) |
---|
1984 | E at IceInternal.ThreadPool.run(ThreadPool.java:302) |
---|
1985 | E at IceInternal.ThreadPool.access$300(ThreadPool.java:12) |
---|
1986 | E at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) |
---|
1987 | E at java.lang.Thread.run(Thread.java:722) |
---|
1988 | E |
---|
1989 | E serverExceptionClass = ome.conditions.InternalException |
---|
1990 | E message = Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
1991 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
1992 | E } |
---|
1993 | |
---|
1994 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero_api_ThumbnailStore_ice.py:251: InternalException</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailSetx64x64" time="432.471284151"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailSetx64x64> |
---|
1995 | |
---|
1996 | def f(self): |
---|
1997 | pix1 = self.missing_pyramid() |
---|
1998 | pix2 = self.missing_pyramid() |
---|
1999 | tb = self.client.sf.createThumbnailStore() |
---|
2000 | copy = list(args) |
---|
2001 | copy.append([pix1.id.val, pix2.id.val]) |
---|
2002 | copy = tuple(copy) |
---|
2003 | try: |
---|
2004 | buf_map = getattr(tb, method)(*copy) |
---|
2005 | for id, buf in buf_map.items(): |
---|
2006 | > self.assertTb(buf, x, y) |
---|
2007 | |
---|
2008 | test/integration/test_thumbs.py:115: |
---|
2009 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
2010 | |
---|
2011 | self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailSetx64x64> |
---|
2012 | buf = '', x = 64, y = 64 |
---|
2013 | |
---|
2014 | def assertTb(self, buf, x=64, y=64): |
---|
2015 | try: |
---|
2016 | from PIL import Image, ImageDraw # see ticket:2597 |
---|
2017 | except ImportError: |
---|
2018 | try: |
---|
2019 | import Image, ImageDraw # see ticket:2597 |
---|
2020 | except ImportError: |
---|
2021 | print "PIL not installed" |
---|
2022 | > thumb = self.open_jpeg_buffer(buf) |
---|
2023 | |
---|
2024 | test/integration/test_thumbs.py:30: |
---|
2025 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
2026 | |
---|
2027 | self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailSetx64x64> |
---|
2028 | buf = '' |
---|
2029 | |
---|
2030 | def open_jpeg_buffer(self, buf): |
---|
2031 | try: |
---|
2032 | from PIL import Image, ImageDraw # see ticket:2597 |
---|
2033 | except ImportError: |
---|
2034 | try: |
---|
2035 | import Image, ImageDraw # see ticket:2597 |
---|
2036 | except ImportError: |
---|
2037 | print "PIL not installed" |
---|
2038 | from cStringIO import StringIO |
---|
2039 | tfile = StringIO(buf) |
---|
2040 | > jpeg = Image.open(tfile) # Raises if invalid |
---|
2041 | |
---|
2042 | test/integration/library.py:528: |
---|
2043 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
2044 | |
---|
2045 | fp = <cStringIO.StringI object at 0x4768330>, mode = 'r' |
---|
2046 | |
---|
2047 | def open(fp, mode="r"): |
---|
2048 | "Open an image file, without loading the raster data" |
---|
2049 | |
---|
2050 | if mode != "r": |
---|
2051 | raise ValueError("bad mode") |
---|
2052 | |
---|
2053 | if isStringType(fp): |
---|
2054 | import __builtin__ |
---|
2055 | filename = fp |
---|
2056 | fp = __builtin__.open(fp, "rb") |
---|
2057 | else: |
---|
2058 | filename = "" |
---|
2059 | |
---|
2060 | prefix = fp.read(16) |
---|
2061 | |
---|
2062 | preinit() |
---|
2063 | |
---|
2064 | for i in ID: |
---|
2065 | try: |
---|
2066 | factory, accept = OPEN[i] |
---|
2067 | if not accept or accept(prefix): |
---|
2068 | fp.seek(0) |
---|
2069 | return factory(fp, filename) |
---|
2070 | except (SyntaxError, IndexError, TypeError): |
---|
2071 | pass |
---|
2072 | |
---|
2073 | if init(): |
---|
2074 | |
---|
2075 | for i in ID: |
---|
2076 | try: |
---|
2077 | factory, accept = OPEN[i] |
---|
2078 | if not accept or accept(prefix): |
---|
2079 | fp.seek(0) |
---|
2080 | return factory(fp, filename) |
---|
2081 | except (SyntaxError, IndexError, TypeError): |
---|
2082 | pass |
---|
2083 | |
---|
2084 | > raise IOError("cannot identify image file") |
---|
2085 | E IOError: cannot identify image file |
---|
2086 | |
---|
2087 | /homes/hudson-x/virtualenv/lib/python2.6/site-packages/PIL/Image.py:1980: IOError</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailx64x60" time="215.443635941"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailx64x60> |
---|
2088 | |
---|
2089 | def f(self): |
---|
2090 | tb = self.pyr_tb() |
---|
2091 | try: |
---|
2092 | > buf = getattr(tb, method)(*args) |
---|
2093 | |
---|
2094 | test/integration/test_thumbs.py:97: |
---|
2095 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
2096 | |
---|
2097 | self = edd8d6f5-5eb6-49cc-8b58-9f8f5d942f39/986719f7-4876-4133-8cd2-c35f29db190comero.api.ThumbnailStore -t:tcp -h 10.2.1.197 -p 40482 |
---|
2098 | sizeX = object #0 (::omero::RInt) |
---|
2099 | { |
---|
2100 | _val = 64 |
---|
2101 | } |
---|
2102 | sizeY = object #0 (::omero::RInt) |
---|
2103 | { |
---|
2104 | _val = 60 |
---|
2105 | }, _ctx = None |
---|
2106 | |
---|
2107 | def getThumbnail(self, sizeX, sizeY, _ctx=None): |
---|
2108 | > return _M_omero.api.ThumbnailStore._op_getThumbnail.invoke(self, ((sizeX, sizeY), _ctx)) |
---|
2109 | E InternalException: exception ::omero::InternalException |
---|
2110 | E { |
---|
2111 | E serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
2112 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
2113 | E at org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) |
---|
2114 | E at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) |
---|
2115 | E at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) |
---|
2116 | E at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) |
---|
2117 | E at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) |
---|
2118 | E at ome.services.SVGRasterizer.createJPEG(SVGRasterizer.java:116) |
---|
2119 | E at ome.services.ThumbnailBean.compressInProgressImageToStream(ThumbnailBean.java:503) |
---|
2120 | E at ome.services.ThumbnailBean.retrieveThumbnailDirect(ThumbnailBean.java:1122) |
---|
2121 | E at ome.services.ThumbnailBean.retrieveThumbnail(ThumbnailBean.java:1026) |
---|
2122 | E at ome.services.ThumbnailBean.retrieveThumbnailAndUpdateMetadata(ThumbnailBean.java:1003) |
---|
2123 | E at ome.services.ThumbnailBean.getThumbnail(ThumbnailBean.java:991) |
---|
2124 | E at sun.reflect.GeneratedMethodAccessor1723.invoke(Unknown Source) |
---|
2125 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
2126 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
2127 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
2128 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
2129 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
2130 | E at ome.security.basic.EventHandler.invoke(EventHandler.java:154) |
---|
2131 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2132 | E at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:182) |
---|
2133 | E at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:166) |
---|
2134 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2135 | E at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) |
---|
2136 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2137 | E at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) |
---|
2138 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2139 | E at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) |
---|
2140 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2141 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
2142 | E at $Proxy90.getThumbnail(Unknown Source) |
---|
2143 | E at sun.reflect.GeneratedMethodAccessor1723.invoke(Unknown Source) |
---|
2144 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
2145 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
2146 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
2147 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
2148 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
2149 | E at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98) |
---|
2150 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2151 | E at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43) |
---|
2152 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2153 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
2154 | E at $Proxy90.getThumbnail(Unknown Source) |
---|
2155 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
2156 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
2157 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
2158 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
2159 | E at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) |
---|
2160 | E at ome.services.throttling.Callback.run(Callback.java:56) |
---|
2161 | E at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) |
---|
2162 | E at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149) |
---|
2163 | E at ome.services.blitz.impl.ThumbnailStoreI.getThumbnail_async(ThumbnailStoreI.java:130) |
---|
2164 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
2165 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
2166 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
2167 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
2168 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
2169 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
2170 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
2171 | E at omero.cmd.CallContext.invoke(CallContext.java:59) |
---|
2172 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2173 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
2174 | E at $Proxy91.getThumbnail_async(Unknown Source) |
---|
2175 | E at omero.api._ThumbnailStoreTie.getThumbnail_async(_ThumbnailStoreTie.java:129) |
---|
2176 | E at omero.api._ThumbnailStoreDisp.___getThumbnail(_ThumbnailStoreDisp.java:359) |
---|
2177 | E at omero.api._ThumbnailStoreDisp.__dispatch(_ThumbnailStoreDisp.java:716) |
---|
2178 | E at IceInternal.Incoming.invoke(Incoming.java:159) |
---|
2179 | E at Ice.ConnectionI.invokeAll(ConnectionI.java:2357) |
---|
2180 | E at Ice.ConnectionI.dispatch(ConnectionI.java:1208) |
---|
2181 | E at Ice.ConnectionI.message(ConnectionI.java:1163) |
---|
2182 | E at IceInternal.ThreadPool.run(ThreadPool.java:302) |
---|
2183 | E at IceInternal.ThreadPool.access$300(ThreadPool.java:12) |
---|
2184 | E at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) |
---|
2185 | E at java.lang.Thread.run(Thread.java:722) |
---|
2186 | E |
---|
2187 | E serverExceptionClass = ome.conditions.InternalException |
---|
2188 | E message = Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
2189 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
2190 | E } |
---|
2191 | |
---|
2192 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero_api_ThumbnailStore_ice.py:179: InternalException</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testGetThumbnailx64x64" time="223.451430082"><failure message="test failure">self = <test.integration.test_thumbs.TestThumbs testMethod=testGetThumbnailx64x64> |
---|
2193 | |
---|
2194 | def f(self): |
---|
2195 | tb = self.pyr_tb() |
---|
2196 | try: |
---|
2197 | > buf = getattr(tb, method)(*args) |
---|
2198 | |
---|
2199 | test/integration/test_thumbs.py:97: |
---|
2200 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
2201 | |
---|
2202 | self = 3d401ac5-3f15-4a93-ab61-f6c5bf5e31ab/b03da8b0-9112-4ad6-93fc-38e11f7df950omero.api.ThumbnailStore -t:tcp -h 10.2.1.197 -p 40482 |
---|
2203 | sizeX = object #0 (::omero::RInt) |
---|
2204 | { |
---|
2205 | _val = 64 |
---|
2206 | } |
---|
2207 | sizeY = object #0 (::omero::RInt) |
---|
2208 | { |
---|
2209 | _val = 64 |
---|
2210 | }, _ctx = None |
---|
2211 | |
---|
2212 | def getThumbnail(self, sizeX, sizeY, _ctx=None): |
---|
2213 | > return _M_omero.api.ThumbnailStore._op_getThumbnail.invoke(self, ((sizeX, sizeY), _ctx)) |
---|
2214 | E InternalException: exception ::omero::InternalException |
---|
2215 | E { |
---|
2216 | E serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
2217 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
2218 | E at org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) |
---|
2219 | E at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) |
---|
2220 | E at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) |
---|
2221 | E at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) |
---|
2222 | E at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) |
---|
2223 | E at ome.services.SVGRasterizer.createJPEG(SVGRasterizer.java:116) |
---|
2224 | E at ome.services.ThumbnailBean.compressInProgressImageToStream(ThumbnailBean.java:503) |
---|
2225 | E at ome.services.ThumbnailBean.retrieveThumbnailDirect(ThumbnailBean.java:1122) |
---|
2226 | E at ome.services.ThumbnailBean.retrieveThumbnail(ThumbnailBean.java:1026) |
---|
2227 | E at ome.services.ThumbnailBean.retrieveThumbnailAndUpdateMetadata(ThumbnailBean.java:1003) |
---|
2228 | E at ome.services.ThumbnailBean.getThumbnail(ThumbnailBean.java:991) |
---|
2229 | E at sun.reflect.GeneratedMethodAccessor1723.invoke(Unknown Source) |
---|
2230 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
2231 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
2232 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
2233 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
2234 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
2235 | E at ome.security.basic.EventHandler.invoke(EventHandler.java:154) |
---|
2236 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2237 | E at ome.tools.hibernate.SessionHandler.doStateful(SessionHandler.java:182) |
---|
2238 | E at ome.tools.hibernate.SessionHandler.invoke(SessionHandler.java:166) |
---|
2239 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2240 | E at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108) |
---|
2241 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2242 | E at ome.tools.hibernate.ProxyCleanupFilter$Interceptor.invoke(ProxyCleanupFilter.java:241) |
---|
2243 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2244 | E at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:116) |
---|
2245 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2246 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
2247 | E at $Proxy90.getThumbnail(Unknown Source) |
---|
2248 | E at sun.reflect.GeneratedMethodAccessor1723.invoke(Unknown Source) |
---|
2249 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
2250 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
2251 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
2252 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
2253 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
2254 | E at ome.security.basic.BasicSecurityWiring.invoke(BasicSecurityWiring.java:98) |
---|
2255 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2256 | E at ome.services.blitz.fire.AopContextInitializer.invoke(AopContextInitializer.java:43) |
---|
2257 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2258 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
2259 | E at $Proxy90.getThumbnail(Unknown Source) |
---|
2260 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
2261 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
2262 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
2263 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
2264 | E at ome.services.blitz.util.IceMethodInvoker.invoke(IceMethodInvoker.java:179) |
---|
2265 | E at ome.services.throttling.Callback.run(Callback.java:56) |
---|
2266 | E at ome.services.throttling.InThreadThrottlingStrategy.callInvokerOnRawArgs(InThreadThrottlingStrategy.java:56) |
---|
2267 | E at ome.services.blitz.impl.AbstractAmdServant.callInvokerOnRawArgs(AbstractAmdServant.java:149) |
---|
2268 | E at ome.services.blitz.impl.ThumbnailStoreI.getThumbnail_async(ThumbnailStoreI.java:130) |
---|
2269 | E at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
---|
2270 | E at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) |
---|
2271 | E at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
---|
2272 | E at java.lang.reflect.Method.invoke(Method.java:601) |
---|
2273 | E at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
---|
2274 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) |
---|
2275 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) |
---|
2276 | E at omero.cmd.CallContext.invoke(CallContext.java:59) |
---|
2277 | E at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) |
---|
2278 | E at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) |
---|
2279 | E at $Proxy91.getThumbnail_async(Unknown Source) |
---|
2280 | E at omero.api._ThumbnailStoreTie.getThumbnail_async(_ThumbnailStoreTie.java:129) |
---|
2281 | E at omero.api._ThumbnailStoreDisp.___getThumbnail(_ThumbnailStoreDisp.java:359) |
---|
2282 | E at omero.api._ThumbnailStoreDisp.__dispatch(_ThumbnailStoreDisp.java:716) |
---|
2283 | E at IceInternal.Incoming.invoke(Incoming.java:159) |
---|
2284 | E at Ice.ConnectionI.invokeAll(ConnectionI.java:2357) |
---|
2285 | E at Ice.ConnectionI.dispatch(ConnectionI.java:1208) |
---|
2286 | E at Ice.ConnectionI.message(ConnectionI.java:1163) |
---|
2287 | E at IceInternal.ThreadPool.run(ThreadPool.java:302) |
---|
2288 | E at IceInternal.ThreadPool.access$300(ThreadPool.java:12) |
---|
2289 | E at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) |
---|
2290 | E at java.lang.Thread.run(Thread.java:722) |
---|
2291 | E |
---|
2292 | E serverExceptionClass = ome.conditions.InternalException |
---|
2293 | E message = Wrapped Exception: (java.lang.NoClassDefFoundError): |
---|
2294 | E com/sun/image/codec/jpeg/JPEGCodec |
---|
2295 | E } |
---|
2296 | |
---|
2297 | /homes/hudson-x/OMERO-CURRENT/lib/python/omero_api_ThumbnailStore_ice.py:179: InternalException</failure></testcase><testcase classname="test.integration.test_thumbs.TestThumbs" name="testThumbnailExists" time="231.739686012"/><testcase classname="test.integration.test_tickets1000.TestTicket1000" name="test711" time="0.26825594902"/><testcase classname="test.integration.test_tickets1000.TestTicket1000" name="test843" time="0.244236946106"/><testcase classname="test.integration.test_tickets1000.TestTicket1000" name="test880" time="0.895837068558"><system-out> test880 - findAll has failed so assertions can't be checked. Is this a fail? |
---|
2298 | </system-out></testcase><testcase classname="test.integration.test_tickets1000.TestTicket1000" name="test883Upload" time="0.740843057632"><system-out> test883Upload - no stderr found. Is this a fail? |
---|
2299 | </system-out></testcase><testcase classname="test.integration.test_tickets1000.TestTicket1000" name="test883WithClose" time="0.599226951599"/><testcase classname="test.integration.test_tickets1000.TestTicket1000" name="test883WithoutClose" time="0.581932067871"/><testcase classname="test.integration.test_tickets1000.TestTicket1000" name="test985" time="0.250438928604"><system-out> test985 - query has failed. Should this query pass? |
---|
2300 | </system-out></testcase><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1018CreationDestructionClosing" time="0.354763031006"><failure message="test failure">self = <test.integration.test_tickets2000.TestTickets2000 testMethod=test1018CreationDestructionClosing> |
---|
2301 | |
---|
2302 | def test1018CreationDestructionClosing(self): |
---|
2303 | c1 = None |
---|
2304 | c2 = None |
---|
2305 | c3 = None |
---|
2306 | c4 = None |
---|
2307 | |
---|
2308 | try: |
---|
2309 | c1 = omero.client() # ok with __del__ |
---|
2310 | s1 = c1.createSession() |
---|
2311 | s1.detachOnDestroy() |
---|
2312 | uuid = s1.ice_getIdentity().name |
---|
2313 | |
---|
2314 | # Intermediate "disrupter" |
---|
2315 | c2 = omero.client() # ok with __del__ |
---|
2316 | s2 = c2.createSession(uuid, uuid) |
---|
2317 | s2.getAdminService().getEventContext() |
---|
2318 | c2.closeSession() |
---|
2319 | |
---|
2320 | # 1 should still be able to continue |
---|
2321 | s1.getAdminService().getEventContext() |
---|
2322 | |
---|
2323 | # Now if s1 exists another session should be able to connect |
---|
2324 | c1.closeSession() |
---|
2325 | c3 = omero.client() # ok with __del__ |
---|
2326 | s3 = c3.createSession(uuid, uuid) |
---|
2327 | s3.getAdminService().getEventContext() |
---|
2328 | c3.closeSession() |
---|
2329 | |
---|
2330 | # Now a connection should not be possible |
---|
2331 | import Glacier2 |
---|
2332 | c4 = omero.client() # ok with __del__ |
---|
2333 | > self.assertRaises(Glacier2.PermissionDeniedException, c4.joinSession, uuid) |
---|
2334 | E AssertionError: PermissionDeniedException not raised |
---|
2335 | |
---|
2336 | test/integration/test_tickets2000.py:60: AssertionError</failure></testcase><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1027" time="0.272598981857"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1064" time="0.229598999023"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1067" time="0.894026994705"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1069" time="1.89219594002"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1071" time="0.760184049606"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1071_1" time="1.09341692924"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1072" time="1.9476890564"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1088" time="0.687219142914"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1109" time="1.31727409363"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1163" time="1.43481087685"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1183" time="1.07028412819"/><testcase classname="test.integration.test_tickets2000.TestTickets2000" name="test1184" time="16.9399678707"><failure message="test failure">self = <test.integration.test_tickets2000.TestTickets2000 testMethod=test1184> |
---|
2337 | |
---|
2338 | def test1184(self): |
---|
2339 | uuid = self.uuid() |
---|
2340 | client = self.new_client(perms="rw----") |
---|
2341 | |
---|
2342 | share = client.sf.getShareService() |
---|
2343 | query = client.sf.getQueryService() |
---|
2344 | update = client.sf.getUpdateService() |
---|
2345 | admin = client.sf.getAdminService() |
---|
2346 | cont = client.sf.getContainerService() |
---|
2347 | |
---|
2348 | ds = DatasetI() |
---|
2349 | ds.setName(rstring('test1184-ds-%s' % (uuid))) |
---|
2350 | |
---|
2351 | for i in range(1,2001): |
---|
2352 | img = ImageI() |
---|
2353 | img.setName(rstring('img1184-%s' % (uuid))) |
---|
2354 | img.setAcquisitionDate(rtime(time.time())) |
---|
2355 | # Saving in one go |
---|
2356 | #dil = DatasetImageLinkI() |
---|
2357 | #dil.setParent(ds) |
---|
2358 | #dil.setChild(img) |
---|
2359 | #update.saveObject(dil) |
---|
2360 | ds.linkImage(img) |
---|
2361 | ds = update.saveAndReturnObject(ds) |
---|
2362 | |
---|
2363 | c = cont.getCollectionCount(ds.__class__.__name__, ("imageLinks"), [ds.id.val], None) |
---|
2364 | self.assert_(c[ds.id.val] == 2000) |
---|
2365 | |
---|
2366 | page = 1 |
---|
2367 | p = omero.sys.Parameters() |
---|
2368 | p.map = {} |
---|
2369 | p.map["eid"] = rlong(admin.getEventContext().userId) |
---|
2370 | p.map["oid"] = rlong(ds.id.val) |
---|
2371 | if page is not None: |
---|
2372 | f = omero.sys.Filter() |
---|
2373 | f.limit = rint(24) |
---|
2374 | f.offset = rint((int(page)-1)*24) |
---|
2375 | p.theFilter = f |
---|
2376 | |
---|
2377 | sql = "select im from Image im join fetch im.details.owner join fetch im.details.group " \ |
---|
2378 | "left outer join fetch im.datasetLinks dil left outer join fetch dil.parent d " \ |
---|
2379 | "where d.id = :oid and im.details.owner.id=:eid order by im.id asc" |
---|
2380 | |
---|
2381 | start = time.time() |
---|
2382 | res = query.findAllByQuery(sql,p) |
---|
2383 | self.assertEquals(24, len(res)) |
---|
2384 | end = time.time() |
---|
2385 | elapsed = end - start |
---|
2386 | self.assertTrue(elapsed < 3.0, |
---|
2387 | > "Expected the test to complete in < 3 seconds, took: %f" % elapsed) |
---|
2388 | E AssertionError: Expected the test to complete in < 3 seconds, took: 10.389108 |
---|
2389 | |
---|
2390 | test/integration/test_tickets2000.py:498: AssertionError</failure></testcase><testcase classname="test.integration.test_tickets3000.TestTickets3000" name="test2396" time="0.966079950333"/><testcase classname="test.integration.test_tickets3000.TestTickets3000" name="test2547" time="2.40928387642"/><testcase classname="test.integration.test_tickets3000.TestTickets3000" name="test2628" time="0.854335784912"/><testcase classname="test.integration.test_tickets3000.TestTickets3000" name="test2762" time="10.3738811016"><failure message="test failure">self = <test.integration.test_tickets3000.TestTickets3000 testMethod=test2762> |
---|
2391 | |
---|
2392 | def test2762(self): |
---|
2393 | """ |
---|
2394 | Test that the page (limit/offset) settings on a ParametersI |
---|
2395 | are properly handled by IQuery.findAllByFullText |
---|
2396 | """ |
---|
2397 | |
---|
2398 | uuid = self.uuid().replace("-","") |
---|
2399 | tas = [] |
---|
2400 | for x in range(15): |
---|
2401 | ta = omero.model.TagAnnotationI() |
---|
2402 | ta.setNs(rstring(uuid)) |
---|
2403 | ta = self.update.saveAndReturnObject(ta) |
---|
2404 | tas.append(ta) |
---|
2405 | self.root.sf.getUpdateService().indexObject(ta) |
---|
2406 | |
---|
2407 | results = self.query.findAllByFullText("TagAnnotation", uuid, None) |
---|
2408 | > self.assertEquals(len(tas), len(results)) |
---|
2409 | E AssertionError: 15 != 11 |
---|
2410 | |
---|
2411 | test/integration/test_tickets3000.py:145: AssertionError</failure></testcase><testcase classname="test.integration.test_tickets3000.TestTickets3000" name="test2952" time="1.94680595398"/><testcase classname="test.integration.test_tickets4000.TestTickets4000" name="test3131" time="0.815360069275"/><testcase classname="test.integration.test_tickets4000.TestTickets4000" name="test3138" time="4.57198500633"><failure message="test failure">self = <test.integration.test_tickets4000.TestTickets4000 testMethod=test3138> |
---|
2412 | |
---|
2413 | def test3138(self): |
---|
2414 | """ |
---|
2415 | Try multiple logins to see if they slow down |
---|
2416 | """ |
---|
2417 | user = self.new_user() |
---|
2418 | name = user.omeName.val |
---|
2419 | |
---|
2420 | self.root.sf.getAdminService().changeUserPassword(name, rstring("GOOD")) |
---|
2421 | |
---|
2422 | self.loginAttempt(name, 0.15, less=True) |
---|
2423 | self.loginAttempt(name, 3.0) |
---|
2424 | > self.loginAttempt(name, 0.15, "GOOD", less=True) |
---|
2425 | |
---|
2426 | test/integration/test_tickets4000.py:30: |
---|
2427 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
2428 | |
---|
2429 | self = <test.integration.test_tickets4000.TestTickets4000 testMethod=test3138> |
---|
2430 | name = '1fc70e88-f835-49fd-b84e-d0b3f614a944', t = 0.14999999999999999 |
---|
2431 | pw = 'GOOD', less = True |
---|
2432 | |
---|
2433 | def loginAttempt(self, name, t, pw="BAD", less=False): |
---|
2434 | """ |
---|
2435 | Checks that login happens in less than or greater than |
---|
2436 | the given time. By default, the password "BAD" is used, |
---|
2437 | and the expectation is that login will take greather |
---|
2438 | than the specified time since the password won't match. |
---|
2439 | To check that logins happen more quickly, pass the |
---|
2440 | correct password and less=True: |
---|
2441 | |
---|
2442 | loginAttempt("user", 0.15, pw="REALVALUE", less=True) |
---|
2443 | |
---|
2444 | See integration.tickets4000 and 5000 |
---|
2445 | """ |
---|
2446 | c = omero.client() # ok because followed by __del__ |
---|
2447 | try: |
---|
2448 | t1 = time.time() |
---|
2449 | try: |
---|
2450 | c.createSession(name, pw) |
---|
2451 | if pw == "BAD": |
---|
2452 | self.fail("Should not reach this point") |
---|
2453 | except Glacier2.PermissionDeniedException: |
---|
2454 | if pw != "BAD": |
---|
2455 | raise |
---|
2456 | t2 = time.time() |
---|
2457 | T = (t2-t1) |
---|
2458 | if less: |
---|
2459 | > self.assertTrue(T < t, "%s > %s" % (T, t)) |
---|
2460 | E AssertionError: 0.215881824493 > 0.15 |
---|
2461 | |
---|
2462 | test/integration/library.py:557: AssertionError</failure></testcase><testcase classname="test.integration.test_tickets4000.TestTickets4000" name="test3201" time="0.977152824402"/><testcase classname="test.integration.test_tickets4000.TestTickets4000" name="testChageActiveGroupWhenConnectionLost" time="0.431888103485"/><testcase classname="test.integration.test_tickets4000.TestTickets4000" name="testChangeActiveGroup" time="0.425472021103"/><testcase classname="test.integration.test_tickets5000.TestTickets5000" name="test4341" time="0.363559007645"/><testcase classname="test.integration.test_tickets6000.TestTickets6000" name="test5684" time="0.716118097305"><failure message="test failure">self = <test.integration.test_tickets6000.TestTickets6000 testMethod=test5684> |
---|
2463 | |
---|
2464 | def test5684(self): |
---|
2465 | """ |
---|
2466 | Similar to integration.tickets4000.TestTickets4000.test3138 |
---|
2467 | but here we check that using a valid session UUID does *not* |
---|
2468 | cause a wait time. |
---|
2469 | |
---|
2470 | Note: this issue only appeared initially while running with |
---|
2471 | LDAP enabled. |
---|
2472 | """ |
---|
2473 | client, user = self.new_client_and_user() |
---|
2474 | uuid = client.getSessionId() |
---|
2475 | name = user.omeName.val |
---|
2476 | |
---|
2477 | admin = self.root.sf.getAdminService() |
---|
2478 | admin.changeUserPassword(name, rstring("GOOD")) |
---|
2479 | |
---|
2480 | # First real password attempt is fast |
---|
2481 | > self.loginAttempt(name, 0.15, "GOOD", less=True) |
---|
2482 | |
---|
2483 | test/integration/test_tickets6000.py:38: |
---|
2484 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
---|
2485 | |
---|
2486 | self = <test.integration.test_tickets6000.TestTickets6000 testMethod=test5684> |
---|
2487 | name = 'c76868f1-0221-4151-8152-f0745aac784a', t = 0.14999999999999999 |
---|
2488 | pw = 'GOOD', less = True |
---|
2489 | |
---|
2490 | def loginAttempt(self, name, t, pw="BAD", less=False): |
---|
2491 | """ |
---|
2492 | Checks that login happens in less than or greater than |
---|
2493 | the given time. By default, the password "BAD" is used, |
---|
2494 | and the expectation is that login will take greather |
---|
2495 | than the specified time since the password won't match. |
---|
2496 | To check that logins happen more quickly, pass the |
---|
2497 | correct password and less=True: |
---|
2498 | |
---|
2499 | loginAttempt("user", 0.15, pw="REALVALUE", less=True) |
---|
2500 | |
---|
2501 | See integration.tickets4000 and 5000 |
---|
2502 | """ |
---|
2503 | c = omero.client() # ok because followed by __del__ |
---|
2504 | try: |
---|
2505 | t1 = time.time() |
---|
2506 | try: |
---|
2507 | c.createSession(name, pw) |
---|
2508 | if pw == "BAD": |
---|
2509 | self.fail("Should not reach this point") |
---|
2510 | except Glacier2.PermissionDeniedException: |
---|
2511 | if pw != "BAD": |
---|
2512 | raise |
---|
2513 | t2 = time.time() |
---|
2514 | T = (t2-t1) |
---|
2515 | if less: |
---|
2516 | > self.assertTrue(T < t, "%s > %s" % (T, t)) |
---|
2517 | E AssertionError: 0.212474107742 > 0.15 |
---|
2518 | |
---|
2519 | test/integration/library.py:557: AssertionError</failure></testcase></testsuite> |
---|