Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3974000
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:31:00+00:00 2026-05-20T04:31:00+00:00

I implemented an own Marshalling/Unmarshalling Sytem with JMS (exercise). I do Request and get

  • 0

I implemented an own Marshalling/Unmarshalling Sytem with JMS (exercise). I do Request and get Responses back. I want to fire an own callback in response after i received the correct response. But i think my exception is a serialization problem. But i don’t know how to fix it.

I use that code to call a server

button.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            Request request = new Request("printServer:" + printMessage.getText());
            request.setAsyncCallback(new AsyncCallback() {

                /**
                 * 
                 */
                private static final long serialVersionUID = 5204649755139243369L;

                @Override
                public void onSuccess(String content) {
                    System.out.println("async callback: " + content);

                }
            });
            c.callServer(request);

        }
    });

My request looks like this:

public class Request extends Conveyable
{
private static final long serialVersionUID = 4535036450648916878L;

public static int requestIDInc = 0;

private int requestID;

private AsyncCallback callback;

public Request(String content)
{
    super(content);
    synchronized (this) {
        requestID = ++requestIDInc;
    }   
}

public int getRequestID() {
    return requestID;


}

public AsyncCallback getAsyncCallback() {
    // TODO Auto-generated method stub
    return callback;
}

public void setAsyncCallback(AsyncCallback callback)
{
    this.callback = callback;
}

}

My own Callback looks like this:

public abstract class AsyncCallback implements Serializable{
/**
 * 
 */
private static final long serialVersionUID = 4951246599084406476L;

public abstract void onSuccess(String content);

}

And the exception i got is this:

javax.jms.MessageFormatException: machines.client.ClientWindow$1
at org.exolab.jms.message.ObjectMessageImpl.setObject(ObjectMessageImpl.java:194)

It looks a little bit as if the ClientWindow in which a create the Request and fire it off with a buttonClick is included in this callback. But i don’t know why. Or maybe the problem isn’t there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:31:00+00:00Added an answer on May 20, 2026 at 4:31 am

    Your subclass of AsyncCallback is created as an inner class inside ClientWindow. Non-static inner classes contain a reference back to the parent class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to implement and understand the concept of marshalling over my own rpc
I've implemented my own event handler and added it to the selection model of
I have an own Tree object implemented in PHP. Say we have a tree
I want to implement my own clustering algorithm using this Virtual Earth javascript API:
I implemented my own CMFCToolTipCtrl class in order to modify enhanced tooltip in Ribbon
I have implemented my own form field as IsEditor<LeafValueEditor<String>> that I'd like to use
I have implemented my own usercontrol based on listboxes. It has a dependency property
I've implemented my own class system and I'm having trouble with __tostring ; I
I have implemented my own inversion of control methodology in MVC 2. I was
Based on Rob Pike's load balancer demo , I implemented my own priority queue,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.