Exception on calling of Java Action call via Microflow

0
        Dear Team,         when I click on microflow button ( Integrated java action call ) from Home-page I am getting following issue.     Error messages 1:            Log Node : Connector       Message:              An error has occurred while handling the request. [User 'MxAdmin' with session id '6e384a95-XXXX-XXXX-XXXX-XXXXXXXX0be4' and roles 'Administrator']     Error messages 2:                  Log Node : Client      Message:             An error occurred while executing an action of MyFirstModule.Home_Web.actionButton1:  Error: An error occurred while executing an action of MyFirstModule.Home_Web.actionButton1:      at http://localhost:8080/mxclientsystem/mxui/mxui.js?637704924786114159:68:118789     at we (http://localhost:8080/mxclientsystem/mxui/mxui.js?637704924786114159:24:6501)     at i (http://localhost:8080/mxclientsystem/mxui/mxui.js?637704924786114159:24:6402)     at x (http://localhost:8080/mxclientsystem/mxui/mxui.js?637704924786114159:66:5472)   Thanks in Advance for guiding !….    
asked
3 answers
1

From your model and JAVA I can deduct 2 things

Either you wrote some simple JAVA and tries to use it in Mendix, because you want to learn and understand how to use JAVA in Mendix in a complexer scenario. Or you just start using Mendix and you enthousiastically start with using JAVA for stuff you shouldn’t use JAVA.

In both cases;

  1. Take the Mendix Rapid developer learning path: https://academy.mendix.com/link/path/31/Become-a-Rapid-Developer
  2. Build some stand alone app to understand really how Mendix works
  3. decide whether you really need JAVA → secret, don’t tell others; what you currently are doing shouldn’t be done using JAVA ;-)

 

answered
0

Probably your JAVA is doing something wrong.

As you don’t have specified what your JAVA is doing and what the stacktrace of that call is, your question will be left unanswered.

But what worries me the most; You haven’t taken any Mendix learning path and you are questioning us about JAVA integration.

Please take the Rapid developer course first, understand how Mendix works in the first place before starting with JAVA; https://academy.mendix.com/link/path/31/Become-a-Rapid-Developer 

answered
0

Hi Rene van Hofwegen,

        Thanks for your feedback

    

Followed Steps:

 

 I have deployed successfully and able to explore the code in Spring suit tool. Added some code in the JA_CreateOrder .executeAction() and restarted the application my added codes get cleared and showing original code and java call not returning any object.

Entity:

   

Java Action:

     

 

Microflow

     

 


 

 

Error messages 1:
     

     Log Node : Connector 

     Message: 

            An error has occurred while handling the request. [User 'MxAdmin' with session id '6e384a95-XXXX-XXXX-XXXX-XXXXXXXX0be4' and roles 'Administrator']  

 

Error messages 2:

               

 Log Node : Client

     Message: 

           An error occurred while executing an action of MyFirstModule.Home_Web.actionButton1:  Error: An error occurred while executing an action of MyFirstModule.Home_Web.actionButton1: 
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637704924786114159:68:118789
    at we (http://localhost:8080/mxclientsystem/mxui/mxui.js?637704924786114159:24:6501)
    at i (http://localhost:8080/mxclientsystem/mxui/mxui.js?637704924786114159:24:6402)
    at x (http://localhost:8080/mxclientsystem/mxui/mxui.js?637704924786114159:66:5472)

Thanks for guiding !….

 

answered