rwth-acis / mobsos-evaluation-center

Web UI for collaborative success modeling
3 stars 1 forks source link

Changes in success models can not be saved[BUG] #111

Closed piahalkour closed 2 years ago

piahalkour commented 2 years ago

When trying to use the "Save model" button, the message "Model can not be saved" always appears. Even after logging out, restarting and deleting web storage nothing changes.

Dev - Network

lakhoune commented 2 years ago

Are there any logs in the console?

piahalkour commented 2 years ago
Object { headers: {…}, status: 500, statusText: "Internal Server Error", url: "https://git.tech4comp.dbis.rwth-aachen.de/mobsos-success-mod…5628fc74a1cb93c819a89d5ba6fab4f355cf22ada3bb9f6a387473fabd6c", ok: false, name: "HttpErrorResponse", message: "Http failure response for https://git.tech4comp.dbis.rwth-aachen.de/mobsos-success-mod…628fc74a1cb93c819a89d5ba6fab4f355cf22ada3bb9f6a387473fabd6c: 500 Internal Server Error", error: {…} }
​
error: Object { code: 500, msg: "For input string: \"\"", stacktrace: (1) […] }
​​
code: 500
​​
msg: "For input string: \"\""
​​
stacktrace: Array [ "java.lang.NumberFormatException: For input string: \"\"" ]
​​
<prototype>: Object { … }
​
headers: Object { normalizedNames: Map(0), lazyUpdate: null, lazyInit: lazyInit() }
​​
lazyInit: function lazyInit()
​​
lazyUpdate: null
​​
normalizedNames: Map(0)
​​
<prototype>: Object { … }
​
message: "Http failure response for https://git.tech4comp.dbis.rwth-aachen.de/mobsos-success-mod…628fc74a1cb93c819a89d5ba6fab4f355cf22ada3bb9f6a387473fabd6c: 500 Internal Server Error"
​
name: "HttpErrorResponse"
​
ok: false
​
status: 500
​
statusText: "Internal Server Error"
​
url: "https://git.tech4comp.dbis.rwth-aachen.de/mobsos-success-mod…5628fc74a1cb93c819a89d5ba6fab4f355cf22ada3bb9f6a387473fabd6c"
​
<prototype>: Object { … }
​​
constructor: function Le(ne)
​​
<prototype>: Object { … }
main.434ded5015680d10.js:1:998215
lakhoune commented 2 years ago

Hmm the logs show i5.las2peer.serialization.MalformedXMLException: Measure name Mensa (de): Wie zufrieden sind Sie mit dem Essen in der Mensa? is unknown! This means this measure is in the model but missing in the catalog Maybe try to delete this measure from the success model

piahalkour commented 2 years ago

Deleted the Measure. Now when I try to save the model I get " The success model could not be saved.Could not update measure catalog, reason: For input string: "" " Log in console: Object { headers: {…}, status: 500, statusText: "Internal Server Error", url: "https://git.tech4comp.dbis.rwth-aachen.de/mobsos-success-mod…5628fc74a1cb93c819a89d5ba6fab4f355cf22ada3bb9f6a387473fabd6c", ok: false, name: "HttpErrorResponse", message: "Http failure response for https://git.tech4comp.dbis.rwth-aachen.de/mobsos-success-mod…628fc74a1cb93c819a89d5ba6fab4f355cf22ada3bb9f6a387473fabd6c: 500 Internal Server Error", error: {…} } ​ error: Object { message: "Could not update measure catalog, reason: For input string: \"\"" } ​ headers: Object { normalizedNames: Map(0), lazyUpdate: null, lazyInit: lazyInit() } ​ message: "Http failure response for https://git.tech4comp.dbis.rwth-aachen.de/mobsos-success-mod…628fc74a1cb93c819a89d5ba6fab4f355cf22ada3bb9f6a387473fabd6c: 500 Internal Server Error" ​ name: "HttpErrorResponse" ​ ok: false ​ status: 500 ​ statusText: "Internal Server Error" ​ url: "https://git.tech4comp.dbis.rwth-aachen.de/mobsos-success-mod…5628fc74a1cb93c819a89d5ba6fab4f355cf22ada3bb9f6a387473fabd6c" ​

: Object { … } store.effects.ts:372:22
lakhoune commented 2 years ago

Should be fixed now @piahalkour can you confirm?

piahalkour commented 2 years ago

Fixed!