java - Error setting expression X with value [Ljava.lang.String;@......] -


I sometimes get a weird error sometimes:

  Error setting Expression X with [Ljava.lang.String; @ ......]  

This is sometimes and sometimes not. This annoying cool error sometimes happens with this class:

  package com.coreRestaurant.menuItem; Import com.google.gson.Gson; Import com.opensymphony.xwork2.ActionSupport; Import com.opensymphony.xwork2.ModelDriven; PublicSquare MenuItemAction ActionSupport Imposes ModelDriven & lt; MenuItem & gt; {Private menu item menuItem = new MenuItem (); Private Final String DATABASE_PROBLEMS = "Error Code: Database Issues"; Private string Jason; Execute Public String () {MenuItemService itemService = new MenuItemService (); If (itemService.testDatabaseConnectionU ()) {setJson (New GSN). ToJson (itemService.getMenuItemsByMenuId (menuItem.getMenuId ()))); } Other {setErrorToBeSentBackToClientSide (DATABASE_PROBLEMS); } Return Success; } @ Override public MenuItem getModel () {return menuItem; } Public string getJson () {return json; } Public Zero Set Jason (String JSN) {this.json = json; } Private Zero SetAeratoboAbestabacktoClaSaisa (string error) {string error code = error; Set Jason (new GSN). Togenan (error code)); }}  

and then menu item class:

  package com.coreRestaurant.menuItem; Public class MenuItem {Private string name; Private double price; Private input menu id; Public string getName () {return name; } Public Zero Setname (string name) {this.name = name; } Public double getprice () {return value; } Public Zero Set Processes (Double Pricing) {this.price = price; } Public int getMenuId () {return menuId; } Public Zero setmenuide (int menu id) {this.menuId = menuId; } Public Zero Set menuUd (menus from Jensen) {setName (fromJson.getName ()); SetPrice (fromJson.getPrice ()); }}  

And I'm calling those things from a PHP file (two rows do this, but the other thing is worrisome):

  $ SpecificMenuJson = File_get_contents ('http: // localhost: 8080 / core / reading? Id ='. MenuId); $ TypicalmenitesJason = file_gate_content ('http: // localhost: 8080 / core / redemanintimebiid? Menu id ='. $ Menu id);  

There is a problem setting the value of menuId , but I have the gates and the setters. I do not know why this sometimes fails to do this Any suggestions?

method setMenuId

  with JasonMinide Public Zero (MenuItem from Jensen) {setName (fromJson.getName ()); SetPrice (fromJson.getPrice ()); }  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -