Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Java data types (Classes) in multiple beans and ActiveX bean bridge
I have 2 separate JavaBeans that I have written. They are in separate
packages and archived into separate JAR files. Both beans have a
property that is of a type (lets call it "TheClass") that is defined
in another package (lets call it "thepackage") that both beans import.

If I instantiate an instance of each of these 2 beans in something
like the Java Beanbox, I am able to get the "TheClass" property from
one of the beans and set it to the other bean with no problems.

I used the ActiveX Bridge packager from the 1.4.2 SDK to wrap each of
these beans into something that I can drop onto a Visual Basic form.
If I get the property and assign it to a Variant variable, I can set
it back to the bean that I got it from, but not the other bean. When I
try to set this property to the other bean I get:

java.lang.IllegalArgumentException: thepackage.TheClass cannot be
converted to type: {0}thepackage.TheClass
at sun.plugin.com.TypeConverter.convertObject(Unknown Source)
at sun.plugin.com.TypeConverter.convertObjectArray(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.BeanDispatchImpl.invoke(Unknown Source)

It appears that now the ActiveX wrapped bean1's thepackage.TheClass
and the ActiveX wrapped bean2's thepackage.TheClass are 2 completely
different types.
Does anybody know why?
Is there a work around for this?
What does the packager do to create that DLL that it creates?

Report this thread to moderator Post Follow-up to this message
Old Post
EPfromPPT
10-29-04 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:15 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.