[ https://jira.terracotta.org/jira//browse/CDV-263?page=comments#action_20861 ] Tim Eck commented on CDV-263: -----------------------------
I'm confused -- what is wrong about that message? It says you are trying to share an instance of NetInputStream (which is a subclass of java.io.InputStream). NetInputStream is not included, and java.io.InputStream is not in the boot jar. Both of those would have to be true (and can be) to try to make NetInputStream portable. Now -- more than likely there is a reference to something non-portable in the graph of that NetInputStream (like a socket), but that doesn't mean someone couldn't make it transient or something. I'm generalizing a bit since no one should be trying to cluster an instance of oracle's database driver (the case here). Long story short, this isn't yet a case of unshareable type > misleading error message > ------------------------ > > Key: CDV-263 > URL: https://jira.terracotta.org/jira//browse/CDV-263 > Project: Community Development > Issue Type: Bug > Reporter: Taylor Gautier > Assigned To: Juris Galang > Fix For: trunk-nightly > > > From the forums: > http://forums.terracotta.org/forums/posts/list/236.page > I have another question. In the exception what the following line exactly > means: > *************************************************** > Attempt to share an instance of a non-portable class referenced by a portable > class. This > unshareable class has not been included for sharing in the configuration. > Please add this > class to the <includes> section of the configuration file. This class also > has a super-class > that must be in the DSO boot jar. Please add this class to the boot jar > configuration and > re-create the DSO boot jar. > Referring class : oracle.jdbc.driver.T4CMAREngine > Referring field : oracle.jdbc.driver.T4CMAREngine.inStream > Thread : main > JVM ID : VM(3) > Non-portable root name : com.pramati.jdbc.terracotta.DBBeanClient.dbBean > Non-included class : oracle.net.ns.NetInputStream > Class to add to boot jar: java.io.InputStream > *********************************************** > Per the Moraga PRD we are supposed to tell the user the class is unshareable, > if we know it is unshareable, instead of telling them to add it to the boot > jar which will not have any effect. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://jira.terracotta.org/jira//secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ tc-dev mailing list [email protected] http://lists.terracotta.org/mailman/listinfo/tc-dev
