Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Does RPC on server not use super source?

47 views
Skip to first unread message

Neil Aggarwal

unread,
Feb 7, 2025, 11:42:47 AMFeb 7
to google-we...@googlegroups.com
Hello all:

I have a super source version of java.awt.Color, it is simple and
has one field, a String to hold the color value.

When I try to do an RPC call to get a class which uses java.awt.Color,
I get this error on the server:

org.apache.catalina.core.ApplicationContext.log Exception while
dispatching incoming RPC call
java.lang.reflect.InaccessibleObjectException: Unable to make field
private java.awt.color.ColorSpace java.awt.Color.cs accessible: module
java.desktop does not "opens java.awt" to unnamed module @2f896e3c


It looks like the server is using the non super-source version of the
class.

Is there a way to tell it use the super-source version of the class?

Thank you,
Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

Colin Alworth

unread,
Feb 7, 2025, 11:46:59 AMFeb 7
to GWT Users
The server does not use super-source, no, that is only for the compiler to read, use that source in place of whatever else is on the classpath. The server doesn't run source at all, but uses compiled JVM bytecode.

GWT-RPC uses reflection to read/write object fields - you will need to either do the add-opens that it requested, or write a CustomFieldSerializer type that handles assigning any/all fields you think are appropriate - by their setters of course, since you probably don't want to use reflection there either.

Neil Aggarwal

unread,
Feb 7, 2025, 11:51:19 AMFeb 7
to google-we...@googlegroups.com

> The server does not use super-source

 

Thanks for the info.  I will look into the options you gave me.

Neil Aggarwal

unread,
Feb 7, 2025, 12:07:53 PMFeb 7
to google-we...@googlegroups.com

I think I am going to try moving my class from super source to a regular
class and have my code use it instead of java.awt.Color

Reply all
Reply to author
Forward
0 new messages