GitHub user haoruiqian added a comment to the discussion: "Invalid thread access" exception in a previously opened Hop web page after opening the same Hop web page in another tab
Update: I've found the root cause. `MetadataPerspective` instance is static and shared with all the UI sessions. Each time a new UI session is initiated, a new MetadataPerspective is constructed and set to the static `instance` variable, see https://github.com/apache/hop/blob/release/2.13.0/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java#L138. Then, all other UI sessions will use this new MetadataPerspective instance and will cause the issue. I can store the MetadataPerspective instance in a ThreadLocal variable so each UI session thread will have its own instance. Does anyone see any potential issues with this solution? GitHub link: https://github.com/apache/hop/discussions/5317#discussioncomment-13164926 ---- This is an automatically sent email for users@hop.apache.org. To unsubscribe, please send an email to: users-unsubscr...@hop.apache.org