Skip navigation
rohsin47
Currently Being Moderated

exception while invoking submit in customised workspace

Feb 16, 2011 2:28 AM

Hi,

 

I have built a custom workpace as per the requiremnts. also, custom approval container,

 

now what is happening is that while submit the data from custom workspace , it is throwing exception;

 

Exception when invoking service 'remoting-service': flex.messaging.MessageException: Cannot invoke method 'prepareForSubmit'. Method 'prepareForSubmit' not found.

incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
operation = prepareForSubmit

parameters = [EBB9CD44-7C5C-102D-8E25-00000A051045, 2902]
clientId = BC3D5FB2-9709-5A3C-5C2A-92AB0A3A1430

destination = task-actions
messageId = A3AA04BE-D287-DAE6-C042-2D277978BD5A

timestamp = 1297837685127
timeToLive = 0
body = null
hdr(DSId) = BC3CAB65-5D1C-688A-272F-3D7C4343E301
hdr(DSEndpoint) = workspace-polling-amf

Exception: flex.messaging.MessageException: Cannot invoke method 'prepareForSubmit'. Method 'prepareForSubmit' not found.
at flex.messaging.util.MethodMatcher.methodNotFound(MethodMatcher.java:3 78)
at flex.messaging.util.MethodMatcher.getMethod(MethodMatcher.java:186)
at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdap ter.java:420)
at flex.messaging.services.RemotingService.serviceMessage(RemotingServic e.java:183)
at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java :1406)
at flex.messaging.AsyncMessageBroker.routeMessageToService(AsyncMessageB roker.java:571)
at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndp oint.java:1005)
at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBroker Filter.java:103)
at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:15 8)
at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java: 44)
at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFi lter.java:67)
at flex.messaging.endpoints.amf.SerializationFilter.invoke(Serialization Filter.java:165)
at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.ja va:293)
at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java :364)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 

and form remains as usual in workspace. this is not happening with only my custom apprval container but also with default and approval container too.

 

it's seems to me there is some probem with my custom workspace code. as it is working fine with default workspace.

what i did, was created custom login, as well as  some header comp and just lc:ToDo componet to which session is bound in Main.mxml.

what is going wrong here? can anybody explain?

 

want to add some more is that "prepareForSubmit" is present in TaskManager - api project - workspcae source code. But what i don't understand why it is not able to found it?

 
Replies
  • Currently Being Moderated
    Feb 16, 2011 5:46 AM   in reply to rohsin47

    Sounds like a version mismatch.  Whatever SP level you are at, apply the latest Process Management patch to get both a server side update AND the workspace source zip update.  Make sure you customization is on the updated source in the patch.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points