[ 
https://issues.apache.org/jira/browse/OLINGO-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098231#comment-14098231
 ] 

Challen commented on OLINGO-403:
--------------------------------

a new exception : java.lang.Class cannot be cast to 
java.lang.reflect.ParameterizedType
--------------------------
line#54: return ((ParameterizedType) 
paramType.getGenericInterfaces()[0]).getActualTypeArguments();
where paramType.getGenericInterfaces()[0] --> interface 
com.ms.odatateam.demo.microsoft.exchange.services.odata.model.types.RecipientCollection
--------------------------
ClassCastException.<init>(String) line: 59      
ClassUtils.extractGenericType(Class<?>, Class<?>...) line: 54   
ClassUtils.extractTypeArg(Class<?>, Class<?>...) line: 71       
CoreUtils.guessTypeFromObject(CommonEdmEnabledODataClient<?>, Object) line: 269 
CoreUtils.getODataProperty(CommonEdmEnabledODataClient<?>, String, EdmTypeInfo, 
Object) line: 234       
CoreUtils.getODataProperty(CommonEdmEnabledODataClient<?>, EdmElement, String, 
Object) line: 202        
CoreUtils.getODataEntityProperty(CommonEdmEnabledODataClient<?>, 
FullQualifiedName, String, Object) line: 170   
CoreUtils.addProperties(CommonEdmEnabledODataClient<?>, Map<String,Object>, 
CommonODataEntity) line: 318        
EntitySetInvocationHandler<T,KEY,EC>(AbstractInvocationHandler).deleteEntity(EntityInvocationHandler,
 URI) line: 161    
EntitySetInvocationHandler<T,KEY,EC>.delete(S) line: 264        
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available 
[native method]  
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 57      
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43  
Method.invoke(Object, Object...) line: 606      
EntitySetInvocationHandler<T,KEY,EC>(AbstractInvocationHandler).invokeSelfMethod(Method,
 Object[]) line: 92     
EntitySetInvocationHandler<T,KEY,EC>.invoke(Object, Method, Object[]) line: 91  
$Proxy19.delete(EntityType) line: not available 




> java client - navigation deletion error
> ---------------------------------------
>
>                 Key: OLINGO-403
>                 URL: https://issues.apache.org/jira/browse/OLINGO-403
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: V4 4.0.0-beta-01
>            Reporter: Challen
>            Assignee: Francesco Chicchiriccò
>             Fix For: V4 4.0.0-beta-01
>
>
> Message msg2 = <new message...>;
> msg2.setId("key2_chh");
> container.getMe().getDrafts().getMessages().delete(msg2);
> -------------------------
> the .delete(msg2) will throw java.lang.NullPointerException:
> EntitySetInvocationHandler<T,KEY,EC>(AbstractInvocationHandler).deleteEntity(EntityInvocationHandler,
>  URI) line: 151  
> EntitySetInvocationHandler<T,KEY,EC>.delete(S) line: 262      
> NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not 
> available [native method]        
> NativeMethodAccessorImpl.invoke(Object, Object[]) line: 57    
> DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43        
> Method.invoke(Object, Object...) line: 606    
> EntitySetInvocationHandler<T,KEY,EC>(AbstractInvocationHandler).invokeSelfMethod(Method,
>  Object[]) line: 92   
> EntitySetInvocationHandler<T,KEY,EC>.invoke(Object, Method, Object[]) line: 
> 91        
> $Proxy18.delete(EntityType) line: not available       
> -------------------------
>     final String name = handler.getUUID().getType()  
>       
> .getAnnotation(org.apache.olingo.ext.proxy.api.annotations.EntityType.class)
>       .name();
> -------------------------
> .getType()  --> org.apache.olingo.ext.proxy.api.Annotatable
> .getAnnotation --> null



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to