New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error has occurred: java.lang.NullPointerException #105

Closed
evandrocoan opened this Issue Mar 10, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@evandrocoan

evandrocoan commented Mar 10, 2018

projectclassdiagram

dot -version
dot - graphviz version 2.38.0 (20140413.2041)
libdir = "D:\User\Documents\graphviz-2.38\release\bin"
Activated plugin library: gvplugin_dot_layout.dll
Using layout: dot:dot_layout
Activated plugin library: gvplugin_core.dll
Using render: dot:core
Using device: dot:dot:core
The plugin configuration file:
        D:\User\Documents\graphviz-2.38\release\bin\config6
                was successfully loaded.
    render      :  cairo dot fig gd gdiplus map pic pov ps svg tk vml vrml xdot
    layout      :  circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
    textlayout  :  textlayout
    device      :  bmp canon cmap cmapx cmapx_np dot emf emfplus eps fig gd gd2 gif gv imap imap_np ismap jpe jpeg jpg metafile pdf pic plain plain-ext png pov ps ps2 svg svgz tif tiff tk vml vmlz vrml wbmp xdot xdot1.2 xdot1.4
    loadimage   :  (lib) bmp eps gd gd2 gif jpe jpeg jpg png ps svg


@startuml
  skinparam defaultFontName Consolas

  MainWindow      <|-- Gtk::Window
  MainWindow      *--  Viewport : viewport

  DrawOptionsBox  <|-- Gtk::Frame     ' remove this to fix the error
  DrawOptionsBox  *-- MainWindow      : mainWindow
  DrawOptionsBox  *-- AddObjectWindow : add_object_window

  class MainWindow {
    Gtk::Box   main_box
    Gtk::Box   left_box
    Gtk::Frame left_frame
    Gtk::Frame right_frame
    Viewport*  getViewport()
  }

  AddObjectWindow <|-- Gtk::Window
  AddObjectWindow *-- DrawOptionsBox  : draw_options_box

  Viewport <|-- Gtk::DrawingArea
  Viewport *-- Viewwindow
  Viewport *-- DisplayFile

  class AddObjectWindow {
    Gtk::Grid              point_grid
    Gtk::Grid              line_grid
    Gtk::Grid              polygn_grid
    std::list<Coordinate*> polygon_cord_list
  }

  class DisplayFile {
    std::map< string, DrawableObject* > objectsMap
    void addObject( DrawableObject* )
    void removeObject( DrawableObject* )
    void removeObjectByName( string )
  }

@enduml


If you remove the ' remove this to fix the error it compiles correctly.

@arnaudroques

This comment has been minimized.

Contributor

arnaudroques commented Mar 15, 2018

Thanks for the report.
This has been fixed in last beta http://beta.plantuml.net/plantuml.jar
Since you are using the .war you can overwrite the existing .jar in your war file with the new plantuml.jar

Regards,

@evandrocoan

This comment has been minimized.

evandrocoan commented Mar 15, 2018

I am just running a local server with https://github.com/plantuml/plantuml-server

I could not find any .war or .jar file on the server folder:

image

How can I update it?

@arnaudroques

This comment has been minimized.

Contributor

arnaudroques commented Mar 15, 2018

Ok, we've put a patched war file on http://beta.plantuml.net/plantuml.war
Tell us if it's working for you!

@evandrocoan

This comment has been minimized.

evandrocoan commented Mar 15, 2018

I still do not know what to do with a .war file. I just run mvn jetty:run and the plantuml-server just setup everything by himself and start working.

I killed my server and started it again, then I monitored the files it loaded, and I found the plantuml-server is reading the file from my user directory at:

C:\Users\User\.m2\repository\net\sourceforge\plantuml\plantuml\1.2018.1\plantuml-1.2018.1.jar

Then I replaced that .jar with the beta one you gave me and it is working now, no crashes:

projectclassdiagram


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment