plantuml-1.2022.13.jar on macOS Ventura with Java openjdk 19.0.1 2022-10-18

0 votes
asked Dec 5, 2022 in Question / help by crizzo (120 points)
When I try to run plantuml locally ("java -jar plantuml-1.2022.13.jar" on the command line), java spits out a bunch of java.io.IOException errors.  The app window opens, but no files show up in the window (I usually double click on the png file to open the rendering of the diagram).  Running on macOS Ventura 13.0.1 on an Intel based MacBook Pro with the following Java OpenJDK version:

openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment (build 19.0.1+10-21)
OpenJDK 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)

java.io.IOException: Operation timed out

    at java.base/java.io.FileInputStream.readBytes(Native Method)

    at java.base/java.io.FileInputStream.read(FileInputStream.java:293)

    at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:308)

    at java.base/java.io.BufferedInputStream.implRead(BufferedInputStream.java:382)

    at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:361)

    at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:333)

    at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:376)

    at java.base/sun.nio.cs.StreamDecoder.lockedRead(StreamDecoder.java:219)

    at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:173)

    at java.base/java.io.InputStreamReader.read(InputStreamReader.java:189)

    at java.base/java.io.BufferedReader.fill(BufferedReader.java:161)

    at java.base/java.io.BufferedReader.implReadLine(BufferedReader.java:371)

    at java.base/java.io.BufferedReader.readLine(BufferedReader.java:348)

    at java.base/java.io.BufferedReader.readLine(BufferedReader.java:437)

    at net.sourceforge.plantuml.preproc.ReadLineReader.readLine(ReadLineReader.java:81)

    at net.sourceforge.plantuml.preproc.UncommentReadLine.readLine(UncommentReadLine.java:59)

    at net.sourceforge.plantuml.preproc2.ReadFilterAddConfig$1.readLine(ReadFilterAddConfig.java:75)

    at net.sourceforge.plantuml.preproc2.ReadFilterMergeLines$1.readLine(ReadFilterMergeLines.java:58)

    at net.sourceforge.plantuml.preproc2.Preprocessor.readLine(Preprocessor.java:58)

    at net.sourceforge.plantuml.BlockUmlBuilder.init(BlockUmlBuilder.java:108)

    at net.sourceforge.plantuml.BlockUmlBuilder.<init>(BlockUmlBuilder.java:97)

    at net.sourceforge.plantuml.SourceFileReaderAbstract.<init>(SourceFileReaderAbstract.java:94)

    at net.sourceforge.plantuml.SourceFileReader.<init>(SourceFileReader.java:75)

    at net.sourceforge.plantuml.DirWatcher2.buildCreatedFiles(DirWatcher2.java:88)

    at net.sourceforge.plantuml.swing.MainWindow.refreshDir(MainWindow.java:353)

    at net.sourceforge.plantuml.swing.MainWindow.access$600(MainWindow.java:89)

    at net.sourceforge.plantuml.swing.MainWindow$10.run(MainWindow.java:336)

    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)

    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)

    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)

    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)

    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)

    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)

    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)

    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)

    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)

    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)

    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)

    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Has anyone else experienced this issue?

Thanks.
commented Dec 5, 2022 by crizzo (120 points)
Never mind this question. I found the problem. The issue was with Microsoft OneDrive. Files needed by plantuml were not present/accessible because MS OneDrive is not properly syncing the local directory.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...