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

  • Home
  • SEARCH
  • 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 9179785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:53:14+00:00 2026-06-17T17:53:14+00:00

We have a Flex application communicating with a Java backend via BlazeDS. Before, if

  • 0

We have a Flex application communicating with a Java backend via BlazeDS.

Before, if an SQL error occurred, the SQL exception would be shown as an alert in the Flex application and the CallResponder’s fault handler was called informing the user that something had gone wrong.

Flex code:
Call Responder:

<s:CallResponder id="loginResult" result="loginResult_resultHandler(event)" fault="displayGenericErrorMessage(event)"/>

Call to service:

var authenticationMessage:String = loginResult.lastResult as String;

Old Java Code:

Map resultSet = simpleJdbcCall.execute();
ArrayList list = (ArrayList) resultSet.get("RESULT_SET");

Now, as can be seen from the code above, the SQL execute statement is not inside a try-catch block (a coding error). This actually doesn’t cause too much trouble but we wanted to be able to print the exception to the error log and it’s correct to put the execute statement inside a try-catch block anyway. So, the code became as follows:

New Java code:

ArrayList list = new ArrayList();

        try {
            Map resultSet = simpleJdbcCall.execute();
            list = (ArrayList) resultSet.get("RESULT_SET");
        }
        catch (Exception e) {
            logger.error(e.getMessage());
        }

Before (without the try-catch block), if an exception occurred, the exception’s message was passed back to Flex where it was displayed as an alert and the CallResponder’s fault handler was called. We didn’t necessarily want the exception shown as an alert but having the fault handler being called was good as it informed the user that something had gone wrong.

Now (with the try-catch block), if an exception occurs, the exception is put out to the log as required but the CallResponder’s fault handler is not called. Flex thinks that the service returned successfully with a null value which is not correct.

Is there some other way to indicate to Flex that the call was not successful and that the fault handler should be called other than removing the try-catch block?

Thanks in advance.

  • 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-06-17T17:53:15+00:00Added an answer on June 17, 2026 at 5:53 pm

    Just rethrow the exception after it’s been logged on the server-side and it will propergate to the Flex frontend as before.

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

Sidebar

Related Questions

I have a typical Flex-based application that was written to use a Java/Hibernate/MySQL backend.
I have a flex application that communicates via BlazeDS with two webapps running inside
I have a flex application which is configured with blazeds sever and i am
I have a working Flex/BlazeDS application (for simple AMF remoting) with the following settings:
I have a Flex application which is served via a JSP page. In this
I have a Flex application with Java server. I have some stateless and stateful
I have a Flex/Java web application that uses Maven as a build tool. Currently,
I have a flex application and a papervision BasicView. I would like to add
I have a main Flex Application ('A.swf') loading a SubApplication (defined in' B.swf') via
I have a Flex application that connects to a BlazeDS server using the StreamingAMF

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.