Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Interop Processing Unit

Hello,

I am trying to create an interop processing unit. Deployment fails with the exceptions:

2012-02-21 08:16:17,814 mpu [1] SEVERE [com.gigaspaces.core.common] - com.j_spaces.core.exception.ClosedResourceException: Space [dataExampleSpace_container:dataExampleSpace] is not available. Internal resources are being closed.; Caused by: com.j_spaces.core.exception.ClosedResourceException: Space [dataExampleSpace_container:dataExampleSpace] is not available. Internal resources are being closed.

and

2012-02-20 17:34:51,098 GSC SEVERE [com.gigaspaces.grid.gsc] - Failed to instantiate mpu.2 [2]; Caused by: org.jini.rio.core.JSBInstantiationException: java.lang.IllegalArgumentException: Type descriptor for type [dpu.DPUData] does not contain an introspector for OBJECT

I have already used the class (dpu.DPUData) successfully in the Java processing unit deployed as a Java-only pu, and shared it successfully between the Java processing unit and a C# processing unit using a C# interoperable class.

Any thoughts on what is going wrong?

Thanks.

-Dan

Edited by: Dan Stone on Feb 21, 2012 2:19 AM h4. Attachments

[mpu.rar|/upfiles/13759703118156796.txt]

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3822]{quote}

asked 2012-02-20 12:06:05 -0500

subuta gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Dan,
Do you have relevant libraries in the GSC path (\lib\platform\native)?
Are you using the GigaSpaces .Net API?
Shay

Attachments

  1. mpu.rar

answered 2012-02-21 06:05:42 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Hi Shay,

I'm using XAP .NET. I think that means I'm using the GigaSpaces .Net API.

As for the relevant libraries, maybe not. Here is the classpath from the GSC log:

2012-02-21 07:30:37,422 INFO [com.gigaspaces.start] - GSC Classpath is: C:\GigaSpaces\XAP.NET 8.0.6 x86\Runtime\lib\required\com.springso... 8.0.6 x86\Runtime\lib\required\commons-logg... 8.0.6 x86\Runtime\lib\required\gs-openspace... 8.0.6 x86\Runtime\lib\required\org.springfr... 8.0.6 x86\Runtime\lib\required\org.springfr... 8.0.6 x86\Runtime\lib\required\org.springfr... 8.0.6 x86\Runtime\lib\required\org.springfr... 8.0.6 x86\Runtime\lib\required\org.springfr... 8.0.6 x86\Runtime\lib\required\org.springfr... 8.0.6 x86\Runtime\lib\required\org.springfr... 8.0.6 x86\Runtime\lib\required\org.springfr... 8.0.6 x86\Runtime\lib\required\org.springfr... 8.0.6 x86\Runtime\lib\optional\spring\com.s... 8.0.6 x86\Runtime\lib\optional\spring\com.s... 8.0.6 x86\Runtime\lib\optional\spring\org.s... 8.0.6 x86\Runtime\lib\optional\spring\org.s... 8.0.6 x86\Runtime\lib\optional\spring\org.s... 8.0.6 x86\Runtime\lib\optional\spring\org.s... 8.0.6 x86\Runtime\lib\optional\spring\org.s... 8.0.6 x86\Runtime\lib\optional\spring\org.s... 8.0.6 x86\Runtime\lib\optional\security\spring-security-core-3.0.7.RELEASE.jar; 2012-02-21 07:30:39,642 GSC INFO [com.gigaspaces.grid.gsc] -

There is nothing in it that I can see about \lib\platform\native. Perhaps this is the problem?

From the fact that I can run pure .Net PUs (and pure Java PUs, and I can share my data class between them) I thought that my environment was set up properly for XAP .NET. Is there something that is only needed for interop PUs and that might be missing from my environment?

Thanks for the help.

-Dan h4. Attachments

[mpu.rar|/upfiles/13759703126336239.txt]

subuta gravatar imagesubuta ( 2012-02-21 06:22:45 -0500 )edit

Dan, If you are using the .Net API you should not have anything within the \lib\platform\native folder. Do you have the .Net libraries within the right location within the PU folder? Can you post the test? Are you sure your Java and .Net classes have the same structure with the same field names? Shay h4. Attachments

[mpu.rar|/upfiles/1375970312306658.txt]

shay hassidim gravatar imageshay hassidim ( 2012-02-21 06:27:12 -0500 )edit

Hi Shay,

I ain't sure of nothing :)

The PU folder is small, so I will upload it.

As for the class, I am already sharing it between a .Net PU and a Java PU:

.Net Feeder with .Net Processor - ok .Net Feeder with Java Processor - ok

(Note that although the .Net assemblies have the same names as the originals from the GS example project, I have edited the C# source and rebuilt the assemblies . I changed the data calss in Common to map it to my Java class, and I fiddled with the Feeder and Processor logic in ways that I don't think are related to the issue I am seeing.)

Thanks again.

-Dan h4. Attachments

[mpu.rar|/upfiles/1375970312313518.txt]

subuta gravatar imagesubuta ( 2012-02-21 06:49:26 -0500 )edit

Hi Dan,

From the pu you provided it is unclear how your data object is defined in .NET It seems that when the .NET portion of the pu is loading it cannot locate the corresponding java class.

I would recommand putting the
<bean id="dotnetProcessingUnitContainer" class="org.openspaces.interop.DotnetProcessingUnitBean"> </bean>

At the end of the pu.xml, so first the java part is loaded. This is always better between .NET and Java interop. If that does not help, can you please open a support case and we'll follow this from there.

Thanks Eitan

eitany gravatar imageeitany ( 2012-02-21 10:53:06 -0500 )edit

Hi Eitan,

Your suggestion that I move the dotnetProcessingUnitContainer definition to the end of the pu.xml file did the trick. Thanks very much.

I'm thinking that might be a good detail to include in the documentation for the interop PU feature.

-Dan

subuta gravatar imagesubuta ( 2012-02-21 11:11:03 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-02-20 12:06:05 -0500

Seen: 77 times

Last updated: Feb 21 '12