[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15106949#comment-15106949 ] David Kantor commented on ATLAS-396: [~shwethags] A member of our team would like to start working on this item, but I was unable to assign to it her. Her JIRA ID is [~guptaneeru]. I think she needs the "Assignable User" permission in order to be assigned items. Please advise on how to request this permission so that she can be assigned items. Thanks... > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Priority: Minor > Labels: regression > Fix For: trunk > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315)\n\tat > > org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:280)\n\tat > > org.apache.atlas.web.resources
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15108000#comment-15108000 ] Shwetha G S commented on ATLAS-396: --- [~dkantor], I have added [~guptaneeru] as contributor and have assigned this jira to her. She is all set. Thanks > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: trunk > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315)\n\tat > > org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:280)\n\tat > > org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:114)\n\tat > sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)\n\tat > sun.reflect.DelegatingMethodAccessorImpl.invoke(Delega
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15108820#comment-15108820 ] David Kantor commented on ATLAS-396: [~shwethags] Thanks very much for your help and quick response. > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: trunk > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315)\n\tat > > org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:280)\n\tat > > org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:114)\n\tat > sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)\n\tat > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat > java.la
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15153569#comment-15153569 ] Suma Shivaprasad commented on ATLAS-396: +1 > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: trunk > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315)\n\tat > > org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:280)\n\tat > > org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:114)\n\tat > sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)\n\tat > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat > java.lang.reflect.Method.invoke(Method.java:497)\n\tat > co
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15153575#comment-15153575 ] Suma Shivaprasad commented on ATLAS-396: Attached patch from reviewboard. [~guptaneeru] Can you pls atach the patch to both RB and jira from now on. Thanks for taking this up. > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: trunk > > Attachments: rb42967.patch > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315)\n\tat > > org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:280)\n\tat > > org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:114)\n\tat > sun.reflect.GeneratedMethodAccessor29.invoke(Unknown
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15153576#comment-15153576 ] ATLAS QA commented on ATLAS-396: {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12788587/rb42967.patch against master revision a2cc01c. {color:red}-1 patch{color}. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-ATLAS-Build/23//console This message is automatically generated. > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: trunk > > Attachments: rb42967.patch > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315)\n\tat > > org.a
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154547#comment-15154547 ] Suma Shivaprasad commented on ATLAS-396: [~guptaneeru] Can you pls rebase and attach the patch. It is failing to apply. > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: trunk > > Attachments: rb42967.patch > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315)\n\tat > > org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:280)\n\tat > > org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:114)\n\tat > sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)\n\tat > sun.reflect.DelegatingMethodAccessorImpl
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154696#comment-15154696 ] Neeru Gupta commented on ATLAS-396: --- Attaching latest patch > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: trunk > > Attachments: rb42967.patch > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315)\n\tat > > org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:280)\n\tat > > org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:114)\n\tat > sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)\n\tat > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat > java.lang.r
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15155098#comment-15155098 ] Suma Shivaprasad commented on ATLAS-396: [~guptaneeru] Patch does not apply still. Can you pls check how you are generating the patch? {verbose} 15:04:48-sshivaprasad~/workspace-latest/atlas-commit (master)$ git apply ~/Downloads/atlas-396-patch /Users/sshivaprasad/Downloads/atlas-396-patch:9: trailing whitespace. } catch(TypeNotFoundException e) { /Users/sshivaprasad/Downloads/atlas-396-patch:10: trailing whitespace. throw e; /Users/sshivaprasad/Downloads/atlas-396-patch:22: trailing whitespace. /Users/sshivaprasad/Downloads/atlas-396-patch:23: trailing whitespace. @Test(expectedExceptions = TypeNotFoundException.class) /Users/sshivaprasad/Downloads/atlas-396-patch:24: trailing whitespace. public void testCreateEntityWithUnknownDatatype() throws Exception { error: patch failed: repository/src/main/java/org/apache/atlas/services/DefaultMetadataService.java:311 error: repository/src/main/java/org/apache/atlas/services/DefaultMetadataService.java: patch does not apply error: patch failed: repository/src/test/java/org/apache/atlas/service/DefaultMetadataServiceTest.java:165 error: repository/src/test/java/org/apache/atlas/service/DefaultMetadataServiceTest.java: patch does not apply {verbose} > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: trunk > > Attachments: atlas-396-patch, rb42967.patch > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:0
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15156475#comment-15156475 ] ATLAS QA commented on ATLAS-396: {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12788733/atlas-396-patch against master revision 648c8d8. {color:red}-1 patch{color}. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-ATLAS-Build/24//console This message is automatically generated. > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: trunk > > Attachments: atlas-396-patch, rb42967.patch > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315
[jira] [Commented] (ATLAS-396) Creating an entity with non-existing type results in "Unable to deserialize json" error
[ https://issues.apache.org/jira/browse/ATLAS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157934#comment-15157934 ] Suma Shivaprasad commented on ATLAS-396: Committed. Thanks [~guptaneeru] > Creating an entity with non-existing type results in "Unable to deserialize > json" error > --- > > Key: ATLAS-396 > URL: https://issues.apache.org/jira/browse/ATLAS-396 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.6-incubating >Reporter: Ayub Khan >Assignee: Neeru Gupta >Priority: Minor > Labels: regression > Fix For: 0.7-incubating > > Attachments: atlas-396-patch-v4, rb42967.patch > > > Creating an entity with non-existing type results in "Unable to deserialize > json" error. This error message should have been "Unknown datatype: ". > This is a regression issue.. > Logs > {noformat} > Configuring TestNG with: TestNG652Configurator > 2015-12-17 14:21:59,381 INFO - [main:] ~ Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/types?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:21:59,383 INFO - [main:] ~ Request Method: POST > (BaseRequest:165) > 2015-12-17 14:21:59,384 INFO - [main:] ~ Request Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:168) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Status: HTTP/1.1 201 > Created (BaseRequest:195) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Date > Value=Thu, 17 Dec 2015 08:51:59 GMT (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Content-Type > Value=application/json; charset=UTF-8 (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: > Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:00,238 INFO - [main:] ~ Response Header: Name=Server > Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:00,254 INFO - [main:] ~ > > (TestNGListener:36) > 2015-12-17 14:22:00,254 INFO - [main:] ~ Testing going to start for: > org.apache.atlas.regression.tests.EntityResourceTest.createEntityForNonExistantType([]) > (TestNGListener:37) > 2015-12-17 14:22:00,678 INFO - [main:createEntityForNonExistantType] ~ > Request body is :{ > > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", > "id":{ > "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id", > "id":"-145034232025579", > "version":0, > "typeName":"createEntityForNonExistantTypeo88sflmm7k" > }, > "typeName":"createEntityForNonExistantTypeo88sflmm7k", > "values":{ > > }, > "traitNames":[ > > ], > "traits":{ > > } > } (EntityResourceTest:394) > 2015-12-17 14:22:00,680 INFO - [main:createEntityForNonExistantType] ~ > Request Url: > http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities?user.name=apathan > (BaseRequest:164) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Method: POST (BaseRequest:165) > 2015-12-17 14:22:00,681 INFO - [main:createEntityForNonExistantType] ~ > Request Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:168) > 2015-12-17 14:22:01,309 INFO - [main:createEntityForNonExistantType] ~ > Response Status: HTTP/1.1 400 Bad Request (BaseRequest:195) > 2015-12-17 14:22:01,310 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Date Value=Thu, 17 Dec 2015 08:52:01 GMT > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Content-Type Value=application/json; charset=UTF-8 > (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Transfer-Encoding Value=chunked (BaseRequest:197) > 2015-12-17 14:22:01,312 INFO - [main:createEntityForNonExistantType] ~ > Response Header: Name=Server Value=Jetty(9.2.12.v20150709) (BaseRequest:197) > 2015-12-17 14:22:01,314 INFO - [main:createEntityForNonExistantType] ~ > Response is: {"error":"Unable to deserialize > json","stackTrace":"java.lang.IllegalArgumentException: Unable to deserialize > json\n\tat > org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:315)\n\tat > > org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:280)\n\tat > > org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:114)\n\tat > sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)\n\tat > sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegating