An error has occured: java.lang.IllegalStateException:Canot find color #000007 in usecase puml when there is a package

0 votes
asked Jan 13, 2025 in Bug by anonymous
PlantUML(1.2024.8)

Graphviz:version 12.2.1(20241206.2353)

OS:linux

The flowing puml has error when it is executed in linux OS.

The error is An error has occured: java.lang.IllegalStateException:Canot find color #000007。

When remove package,it will be ok.

@startuml

left to right direction

actor Guest as g

package Professional {

actor Chef as c actor "Food Critic" as fc

}

package Restaurant {

usecase "Eat Food" as UC1

usecase "Pay for Food" as UC2

usecase "Drink" as UC3

usecase "Review" as UC4

}

fc --> UC4

g --> UC1

g --> UC2

g --> UC3

@enduml

1 Answer

0 votes
answered Jan 13, 2025 by The-Lu (88,340 points)

Hello A.,

It seems there is no issue on an online server, as:

@startuml

left to right direction

actor Guest as g

package Professional {

actor Chef as c

actor "Food Critic" as fc

}


package Restaurant {

usecase "Eat Food" as UC1

usecase "Pay for Food" as UC2

usecase "Drink" as UC3

usecase "Review" as UC4

}


fc --> UC4

g --> UC1

g --> UC2

g --> UC3


@enduml

Regards,
Th.

commented Jan 14, 2025 by Lena Lv

Thank you for your quick reply.

The issue existed in an linux os with Graphviz which was installed by compiled.

I run the command :   java -jar plantuml-1.2024.8.jar usecase1.puml.

I browsered the previous questions. The reply was : Graphviz compiled missed Libexpat.  I checked in my server, the libexpat was installed. And Graphviz was configured with expat.

How can I resolve this issue?

commented Jan 14, 2025 by The-Lu (88,340 points)

Hi,

I have no ideas, crying

Could you test:

@startuml
testdot
@enduml

Regards,
Th.

...