[jira] [Commented] (ISIS-766) ISIS Service / ViewModel method calling twice when this method processing BLOB type

2014-08-05 Thread Ranganath Chittari (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14085877#comment-14085877
 ] 

Ranganath Chittari commented on ISIS-766:
-

Hi Dan,
I came back to this issue now. I am using 1.5.0 version. Even with this version 
upload method doesn't get called twice but I am getting the following exception 
consistently:
12:07:08,430  [RequestListenerInterface 32086393@qtp-5077965-5 WARN ]  behavior 
not enabled; ignore call. Behavior 
org.apache.wicket.ajax.markup.html.form.AjaxButton$1@1b9174e at component 
[AjaxButton [Component id = okButton]]
12:07:08,432  [RequestCycleExtra32086393@qtp-5077965-5 WARN ]  

12:07:08,434  [RequestCycleExtra32086393@qtp-5077965-5 WARN ]  Handling the 
following exception
org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException: 
Behavior rejected interface invocation. Component: [AjaxButton [Component id = 
okButton]] Behavior: 
org.apache.wicket.ajax.markup.html.form.AjaxButton$1@1b9174e Listener: 
[RequestListenerInterface name=IBehaviorListener, method=public abstract void 
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
at 
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at 
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at 
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at 
org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at 
org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at 
org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at 
org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at 
org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at 
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
12:07:08,435  [RequestCycleExtra32086393@qtp-5077965-5 WARN ]  




 ISIS Service / ViewModel method calling twice when this method processing 
 BLOB type
 ---

 Key: ISIS-766
 URL: 

[jira] [Updated] (ISIS-766) ISIS Service / ViewModel method calling twice when this method processing BLOB type

2014-08-05 Thread Ranganath Chittari (JIRA)

 [ 
https://issues.apache.org/jira/browse/ISIS-766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ranganath Chittari updated ISIS-766:


Attachment: Behaviour-Rejected-Error.log

This error is coming even with out disconnecting from the LAN.


 ISIS Service / ViewModel method calling twice when this method processing 
 BLOB type
 ---

 Key: ISIS-766
 URL: https://issues.apache.org/jira/browse/ISIS-766
 Project: Isis
  Issue Type: Bug
  Components: Viewer: Wicket
Affects Versions: viewer-wicket-1.4.1
Reporter: Ranganath Chittari
Assignee: Dan Haywood
Priority: Minor
 Fix For: viewer-wicket-1.7.0

 Attachments: Behaviour-Rejected-Error.log, Files.zip, 
 Upload-Invocation-Failed.log, dom.zip


 Isis service or ViewModel method getting called twice.
 For ex:
 I have one Hidden service which has lookup method with @HomePage returning  a 
 ViewModel instance using newViewModelInstance(..) method and that renders one 
 action method taking Blob parameter as button. It's basically upload button 
 to upload a file. When I click on upload button, this upload method called 
 and completed the uploading and again getting called second time by itself. 
 And this is inconsistent behavior. Some times its working(meaning called only 
 once) but some other times it's not.
 So I tried this upload action with service class by extending AbstractService 
 which appears in the menu with Upload action. Here also it's the same issue.
 Please find attached files in this Jira as I don't have GIT client to push 
 the files in github
 BR
 Ranganath Varma



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


[jira] [Updated] (ISIS-766) ISIS Service / ViewModel method calling twice when this method processing BLOB type

2014-08-05 Thread Ranganath Chittari (JIRA)

 [ 
https://issues.apache.org/jira/browse/ISIS-766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ranganath Chittari updated ISIS-766:


Priority: Blocker  (was: Minor)

 ISIS Service / ViewModel method calling twice when this method processing 
 BLOB type
 ---

 Key: ISIS-766
 URL: https://issues.apache.org/jira/browse/ISIS-766
 Project: Isis
  Issue Type: Bug
  Components: Viewer: Wicket
Affects Versions: viewer-wicket-1.4.1
Reporter: Ranganath Chittari
Assignee: Dan Haywood
Priority: Blocker
 Fix For: viewer-wicket-1.7.0

 Attachments: Behaviour-Rejected-Error.log, Files.zip, 
 Upload-Invocation-Failed.log, dom.zip


 Isis service or ViewModel method getting called twice.
 For ex:
 I have one Hidden service which has lookup method with @HomePage returning  a 
 ViewModel instance using newViewModelInstance(..) method and that renders one 
 action method taking Blob parameter as button. It's basically upload button 
 to upload a file. When I click on upload button, this upload method called 
 and completed the uploading and again getting called second time by itself. 
 And this is inconsistent behavior. Some times its working(meaning called only 
 once) but some other times it's not.
 So I tried this upload action with service class by extending AbstractService 
 which appears in the menu with Upload action. Here also it's the same issue.
 Please find attached files in this Jira as I don't have GIT client to push 
 the files in github
 BR
 Ranganath Varma



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


[jira] [Created] (ISIS-850) Target field in IsisCommand is to small to save actions on viewmodels

2014-08-05 Thread Jeroen van der Wal (JIRA)
Jeroen van der Wal created ISIS-850:
---

 Summary: Target field in IsisCommand is to small to save actions 
on viewmodels
 Key: ISIS-850
 URL: https://issues.apache.org/jira/browse/ISIS-850
 Project: Isis
  Issue Type: Bug
  Components: Modules
Affects Versions: core-1.6.0
Reporter: Jeroen van der Wal
Assignee: Jeroen van der Wal


When executing an action on a viewmodel the target contains the full memento so 
it will exceed the 255 characters of the column in the IsisCommand table.

Need to investigate further what the maximum column length should be and decide 
to either extend or change to Clob/Text



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


[jira] [Commented] (ISIS-766) ISIS Service / ViewModel method calling twice when this method processing BLOB type

2014-08-05 Thread Ranganath Chittari (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14085918#comment-14085918
 ] 

Ranganath Chittari commented on ISIS-766:
-

If upload method return type is void, this error not reproducible. If return 
type is ViewModel and any other type(String), its throwing same exception.

public void upload(@Named(Browse sheet)Blob provSheet) - No exception.

public ODSProvisioning upload(@Named(Browse sheet)Blob provSheet) - Behaviour 
rejected Exception.
In this case Im just returning this.

 ISIS Service / ViewModel method calling twice when this method processing 
 BLOB type
 ---

 Key: ISIS-766
 URL: https://issues.apache.org/jira/browse/ISIS-766
 Project: Isis
  Issue Type: Bug
  Components: Viewer: Wicket
Affects Versions: viewer-wicket-1.4.1
Reporter: Ranganath Chittari
Assignee: Dan Haywood
Priority: Blocker
 Fix For: viewer-wicket-1.7.0

 Attachments: Behaviour-Rejected-Error.log, Files.zip, 
 Upload-Invocation-Failed.log, dom.zip


 Isis service or ViewModel method getting called twice.
 For ex:
 I have one Hidden service which has lookup method with @HomePage returning  a 
 ViewModel instance using newViewModelInstance(..) method and that renders one 
 action method taking Blob parameter as button. It's basically upload button 
 to upload a file. When I click on upload button, this upload method called 
 and completed the uploading and again getting called second time by itself. 
 And this is inconsistent behavior. Some times its working(meaning called only 
 once) but some other times it's not.
 So I tried this upload action with service class by extending AbstractService 
 which appears in the menu with Upload action. Here also it's the same issue.
 Please find attached files in this Jira as I don't have GIT client to push 
 the files in github
 BR
 Ranganath Varma



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


[jira] [Comment Edited] (ISIS-766) ISIS Service / ViewModel method calling twice when this method processing BLOB type

2014-08-05 Thread Ranganath Chittari (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14085918#comment-14085918
 ] 

Ranganath Chittari edited comment on ISIS-766 at 8/5/14 7:30 AM:
-

If upload method return type is void, this error not reproducible. If return 
type is ViewModel and any other type(String), its throwing same exception.

public void upload(@Named(Browse sheet)Blob provSheet) - No exception.

public ODSProvisioning upload(@Named(Browse sheet)Blob provSheet) - Behaviour 
rejected Exception.
In this case Im just returning this.

But I cant use void type here. I have to return ListOmSite object.


was (Author: ranganath.chittari):
If upload method return type is void, this error not reproducible. If return 
type is ViewModel and any other type(String), its throwing same exception.

public void upload(@Named(Browse sheet)Blob provSheet) - No exception.

public ODSProvisioning upload(@Named(Browse sheet)Blob provSheet) - Behaviour 
rejected Exception.
In this case Im just returning this.

 ISIS Service / ViewModel method calling twice when this method processing 
 BLOB type
 ---

 Key: ISIS-766
 URL: https://issues.apache.org/jira/browse/ISIS-766
 Project: Isis
  Issue Type: Bug
  Components: Viewer: Wicket
Affects Versions: viewer-wicket-1.4.1
Reporter: Ranganath Chittari
Assignee: Dan Haywood
Priority: Blocker
 Fix For: viewer-wicket-1.7.0

 Attachments: Behaviour-Rejected-Error.log, Files.zip, 
 Upload-Invocation-Failed.log, dom.zip


 Isis service or ViewModel method getting called twice.
 For ex:
 I have one Hidden service which has lookup method with @HomePage returning  a 
 ViewModel instance using newViewModelInstance(..) method and that renders one 
 action method taking Blob parameter as button. It's basically upload button 
 to upload a file. When I click on upload button, this upload method called 
 and completed the uploading and again getting called second time by itself. 
 And this is inconsistent behavior. Some times its working(meaning called only 
 once) but some other times it's not.
 So I tried this upload action with service class by extending AbstractService 
 which appears in the menu with Upload action. Here also it's the same issue.
 Please find attached files in this Jira as I don't have GIT client to push 
 the files in github
 BR
 Ranganath Varma



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