facebook

Struts graphical flow viewer resets the model after restart

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #229559 Reply

    PHoldener
    Member

    everytime I change the model in the graphical flow viewer (z.b.: position of the nods, actions or JSPs) it all gets reset to an automatic generated diagramm after i restart Myeclipse. I use Myeclipse 3.8.4 and eclipse 3.0.2

    #229573

    Brian Fernandes
    Moderator

    Stupid question, but I have to ask – Are you saving your diagram after you move the nodes around?

    How about saving the diagram, closing the editor and re-opening it without restarting MyEclipse, does that work for you?
    Also, can you try another dummy struts configuration file and see if it works for that?

    Each time your open your diagram, do any messages or question dialogs pop up?

    If you can look at the .log file (it’s in workspace\.metadata directory) and paste it here, that would be helpful.

    Brian.

    #232666

    PHoldener
    Member

    Hi brian!
    Thanks for the reply. Sorry for my late answer, I was buys with other stuff. I still have the same problem though.
    Here are the answers to your Questions:

    Are you saving your diagram after you move the nodes around?:
    Yes, I am saving after I move the nodes around.

    How about saving the diagram, closing the editor and re-opening it without restarting MyEclipse, does that work for you?:
    It also happens when I just close the diagramm without restarting.

    Also, can you try another dummy struts configuration file and see if it works for that?:
    That works fine!

    Each time you open your diagram, do any messages or question dialogs pop up?:
    No.

    If you can look at the .log file (it’s in workspace\.metadata directory) and paste it here, that would be helpful.:
    This is what the logfile says for the time it happens. Maybe it helps.

    !ENTRY com.genuitec.eclipse.struts 1 1 Jul 11, 2005 13:20:32.702
    !MESSAGE Unable to parse .mex file

    regards Peter

    #232668

    Brian Fernandes
    Moderator

    Peter,

    Looks like the mex file was corrupted somehow; neverthelesss, it should have been re-written completely when you save the diagram.

    Can you “Refresh” the folder containing the mex file, and then delete it? It should work fine after that.

    If you’re still experiencing issues saving, we’ll probe the matter further.

    I’m assuming you’re still using ME 3.8.4 with E 3.0.2?

    Best,
    Brian

    #232686

    PHoldener
    Member

    In the eclipse workspace it doesnt show the .mex file so i deleted the .struts-config.mex over the windowsexplorer in the folder WEB-INF after the restart a new file gets created but the problem remains.

    Yes i am using ME 3.8.4 with E 3.0.2

    #232700

    Brian Fernandes
    Moderator

    Peter,

    You can’t see the .mex file becuase of the View usually filters it out. Did you refresh your workspace after deleting the file in explorer?

    For further testing, can you create a brand new dummy struts project, but instead of using the generated struts-config.xml file, can you overwrite it with your current config file and then open, modify and save and check if the problem persists?

    Based on what happens then, we should be able to figure out what’s going wrong.

    Thanks,
    Brian.

    #232856

    PHoldener
    Member

    Did you refresh your workspace after deleting the file in explorer?:
    Yes

    For further testing, can you create a brand new dummy struts project, but instead of using the generated struts-config.xml file, can you overwrite it with your current config file and then open, modify and save and check if the problem persists?:
    I did that and the problem persists. It shows the original diagramm and it cant be changed just like in the other project.

    #232859

    Brian Fernandes
    Moderator

    Peter,

    This is really strange; if possible, can you mail your struts-config.xml to support@genuitec.com ATTN Brian so that I can see what’s going wrong with your particular config?

    Are you still seeing the parsing error in your .log file each time you open the file?

    Thanks,
    Brian.

    #233211

    Brian Fernandes
    Moderator

    Peter,

    We received your mex file, I was able to take a quick look at it today (between 4.0 activities 🙂 )

    The problem seems to be encoding issue with German characters.

    You have a forward named “zurück zur Anamnese”, and maybe there are some others that I haven’t seen – as it is a large file.

    To clarify that this is indeed an encoding issue, can you remove German characters from your struts-config.xml and see if the file saves and loads okay?

    I will try to do the same here, and we should be able to fix this for the next release.

    We appreciate your help in tracking this down,
    Brian.

    #233226

    PHoldener
    Member

    Awesome! Its finally working, thanks a lot for your help.
    D*** it. I could have thought of that myself, its not the first that this causes Problem.
    Peter

    #233227

    Brian Fernandes
    Moderator

    Peter,

    Thank you for the confirmation, I have replicated the issue locally as well.

    We will fix this bug in the next release so that it works with all character sets.

    Thanks for bringing this issue to light,

    Regards,
    Brian.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Struts graphical flow viewer resets the model after restart

You must be logged in to post in the forum log in