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

Ask Your Question

wasefmasood's profile - activity

2020-02-11 06:22:40 -0500 received badge  Notable Question (source)
2020-02-11 06:22:40 -0500 received badge  Popular Question (source)
2020-02-11 06:22:40 -0500 received badge  Famous Question (source)
2019-09-16 04:08:53 -0500 received badge  Famous Question (source)
2017-09-12 02:18:49 -0500 received badge  Popular Question (source)
2017-09-12 02:18:49 -0500 received badge  Famous Question (source)
2017-09-12 02:18:49 -0500 received badge  Notable Question (source)
2017-08-25 09:21:55 -0500 received badge  Famous Question (source)
2017-08-25 09:21:55 -0500 received badge  Popular Question (source)
2017-08-25 09:21:55 -0500 received badge  Notable Question (source)
2017-06-30 01:22:10 -0500 received badge  Notable Question (source)
2017-03-23 14:30:27 -0500 received badge  Popular Question (source)
2017-03-23 14:30:27 -0500 received badge  Notable Question (source)
2016-06-24 08:26:57 -0500 received badge  Popular Question (source)
2016-06-24 08:26:57 -0500 received badge  Notable Question (source)
2016-06-24 08:26:57 -0500 received badge  Famous Question (source)
2016-04-13 08:12:55 -0500 received badge  Notable Question (source)
2016-04-13 08:12:55 -0500 received badge  Popular Question (source)
2016-02-11 11:38:51 -0500 received badge  Popular Question (source)
2015-12-04 12:11:55 -0500 marked best answer SpaceURLValidationException: GENERIC.LOOKUP.ATTRIBUES}' is expected.

We see the following exception, but lookup seems to succeed, any ideas?

CACHE: Connecting to jini:// /*/spacename?locator= Jul 8, 2008 3:01:15 PM SEVERE http://com.gigaspaces.common.spaceurl: Space URL validation failed. Please check the error and fix the SpaceURL, since it might have serious implications on the initialized topology. com.j_spaces.core.client.SpaceURLValidationException: Space url validation :: GENERIC.LOOKUP.ATTRIBUES}' is expected. at com.j_spaces.core.client.SpaceURLValidator.validate(SourceFile:215) at com.j_spaces.core.client.SpaceURLParser.parseURL(SourceFile:322) at com.j_spaces.core.client.SpaceFinder.prepareUrl(SourceFile:310) at com.j_spaces.core.client.SpaceFinder.prepareUrl(SourceFile:450) at com.j_spaces.core.client.SpaceFinder.find(SourceFile:409) at GSStartup.getSpace(GSStartup.java:55) at GSStartup.main(GSStartup.java:24)

CACHE: Found a space with URL: jini://<ipaddress>/*/spacename?locator=hostname&groups=gigaspaces-6.0XAP&state=started

Code: getSpace("jini://<ipaddress>/*/spacename?locator=hostname");

public static IJSpace getSpace(String spaceUrl) {

IJSpace space = null; try { System.out.println("CACHE: Connecting to " + spaceUrl);

if (space == null) { space = (IJSpace) SpaceFinder.find(spaceUrl); }

System.out.println("CACHE: Found a space with URL: " + space.getFinderURL()); } catch (FinderException e) { // TODO throw some exception System.out.println(e.toString()); }

return space; }

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

2015-12-04 12:10:49 -0500 marked best answer template search

1) How can I read all instances of type A below? The sample below returns only instances of B.Is it correct that i have to create templates of each subclass and read the instances separately.

public interface A public class B implements A public class C extends B

// write instances of B and C

// read all A A a = new B(); ijSpace.readMultiple(a,...); // returns only instances of B?

2) Can you confirm I can't get all instances of D that have value isVisible set to either {true|false} in a single template search? This would cause two searches to be performed to get all instances of D, one with isVisible=true, and the other with isVisible=false

public class D { public boolean isVisible; }

D d = new D() // defaults isVisible to false ijSpace.readMultiple(d); // returns only instances of d with isVisible set to false;

SM

Edited by: s m on Sep 14, 2008 8:53 PM h4. Attachments

[QueryAbstract.zip|/upfiles/13759715533215086.zip]

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

2015-12-04 12:09:52 -0500 marked best answer Failed to start an embedded Jini Lookup Service - null

For embedded space: Is this exception because space can't access GS policy file : JSHOMEDIR/conf/policy/policy.all

WARNING [com.gigaspaces.container]: Failed to start an embedded Jini Lookup Service - null java.lang.NullPointerException at sun.security.provider.PolicyFile.canonicalizeCodebase(PolicyFile.java:921) at sun.security.provider.PolicyFile.access$400(PolicyFile.java:89) at sun.security.provider.PolicyFile$5.run(PolicyFile.java:816) at java.security.AccessController.doPrivileged(Native Method) at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:813) at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:787) at java.security.Policy.getPermissions(Unknown Source) at net.jini.security.policy.PolicyFileProvider.getPermissions(PolicyFileProvider.java:215) at net.jini.security.policy.DynamicPolicyProvider$DomainPermissions.<init>(DynamicPolicyProvider.java:325) at net.jini.security.policy.DynamicPolicyProvider.getDomainPermissions(DynamicPolicyProvider.java:262) at net.jini.security.policy.DynamicPolicyProvider.ensureDependenciesResolved(DynamicPolicyProvider.java:253) at net.jini.security.policy.DynamicPolicyProvider.<init>(DynamicPolicyProvider.java:141) at com.sun.jini.start.ActivateWrapper.getServicePolicyProvider(ActivateWrapper.java:655) at com.sun.jini.start.NonActivatableServiceDescriptor.create(NonActivatableServiceDescriptor.java:603) at com.j_spaces.core.JSpaceContainerImpl.bb(SourceFile:4186) at com.j_spaces.core.JSpaceContainerImpl.aN(SourceFile:692) at com.j_spaces.core.JSpaceContainerImpl.<init>(SourceFile:610) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:695) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:814) at com.j_spaces.core.client.SpaceFinder._find(SourceFile:540) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:345) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:333) at com.j_spaces.core.client.SpaceFinder.find(SourceFile:412)

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

2015-12-04 12:09:43 -0500 marked best answer Incompatible Class Change Error

When I query class through IJSpace read(), it works, but querying class through GS UI gives following error. Restarting the space and application has no effect. Notice that in the error message below, the super-classes list in the first set is empty, and the second super-classes list has several classes.

SEVERE [ http://com.gigaspaces.core.engine ]: Incompatible Class Change Error - an incompatible class change has occurred. java.sql.SQLException: Select failed Incompatible Class Change Error. An incompatible class change has occurred for class [ http://com.myPkg.myClass ]. Either its field names, field types and/or super classes don't match the current version in space. To resolve this problem please clean the space server and restart your application. Class information held at server: super-classes: [], checksum: 1232660465 fields: [http://....], checksum: -1399023814

Class information supplied for com.myPkg.myClass : super-classes: [[com.myPkg.mySuperClass1, com.myPkg.mySuperClass2, com.myPkg.mySuperClass3|http://com.myPkg.mySuperClass1,%20com.myPkg.mySuperClass2,%20com.myPkg.mySuperClass3]], checksum: 175439213 fields: [http://......], checksum: 2086461732

SM

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

2015-12-04 12:09:17 -0500 marked best answer Gigaspace 6.5 persisting hierarchy with hibernate

I am using GS 6.5, jdk 1.5. can you describe how a datamodel comprised of a hierarchy (inheritance) of objects is persisted to database using GS POJO approach (not Entry). Should there be one gs.xml and hbm.xml for each concrete class in the hierarchy. I know that the model needs to be flattened. Eg: B implements A, C extends B, D extends C.
Should C define mappings in its C.gs.xml all the fields that are defined in B.gs.xml?

Is there an example of persisting a hierarchy through GS.

SM. h4. Attachments

[helloSpacePojo.zip|/upfiles/13759715738120039.zip]

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

2015-12-04 12:08:22 -0500 marked best answer Gigaspaces ga build release dates and email notification

Is there any documentation that lists the release dates of Gigaspaces GA builds (eg: 6.x.y-> mm/dd/yyyyy, 6.x.y+1 -> mm/dd/yyyyy, etc).

Is it possible to register for notifications by email for a new ga build release?

Thanks.

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

2015-12-04 12:06:52 -0500 marked best answer Gigaspaces ports required

What is the list of gigaspaces ports that are required to be open. We use GS 6.5.x/6.6.x in embedded mode in jboss jvm.

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

2015-12-04 12:06:12 -0500 marked best answer com.j_spaces.core.DetailedUnusableEntryException

I have a POJO that has a field "transient String mUID", and is written to space using IJSpace.write(). However when I later read the POJO, and call its getUID() method, it returns null. I am trying to use the mUID in a call to IJSpace.update(), which requires UID. The following exception is thrown at runtime:

com.j_spaces.core.DetailedUnusableEntryException: Update: UID must be supplied for updated entry.

Here's the code:

ClassA result = ijSpace.read(template, transaction, WAIT_TIME);

ClassA updatedA = new ClassA(m1, null, result.__getEntryUID()); Object obj = ijSpace.update(updatedA, transaction,Lease.FOREVER, WAIT_TIME, UpdateModifiers.UPDATE_ONLY);

This used to work until I changed ClassA to NOT implement Entry interface.

Edited by: s m on Feb 19, 2008 12:46 PM

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

2015-12-04 12:05:48 -0500 marked best answer Web service and persistence questions

I have an EJB that reads/writes ClassA (Simple class with two strings, and implements Entry interface) using IJSpace and is deployed to JBOSS running an embedded gigaspace. My questions are:

  1. The EJB methods return instances of the classA, and can throw space exceptions. Can the EJB be exposed as a web service to be used by C++ clients. SOAP implementation used is Apache axis 2 and axis 2/c respectively.

  2. What is required in terms of configuration and space API/annotations to persist classA to a database: Where should the hibernate config and hbm.xml files be plugged into the space.

Edited by: s m on Feb 12, 2008 5:24 PM

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

2015-12-04 12:01:41 -0500 marked best answer Instructions for migration from Gigaspaces 6.0.3 to 6.5

We are researching migration from Gigaspaces 6.0.3 to 6.5, however the page at http://www.gigaspaces.com/wiki/displa... does not have any instructions; can you provide this?

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

2015-12-04 12:01:27 -0500 marked best answer java.lang.IllegalArgumentException: object is not an instance of declaring

I am trying to write a POJO to a persistent space by calling

spaceInstance.write(person, null, Lease.FOREVER);

However I get this issue:
SEVERE com.gigaspaces.pojo: Failed to convert the POJO to Entry due to : java.lang.IllegalArgumentException: object is not an instance of declaring class
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.gigaspaces.converter.pojo.Pojo2ExternalEntryConverter.toEntry(SourceFile:274)
    at com.j_spaces.core.client.action.common.PreConvertProxyActionListener.onAction(SourceFile:152)
    at com.j_spaces.core.client.action.common.PreConvertProxyActionListener.onAction(SourceFile:26)
    at com.j_spaces.core.client.AbstractSpaceProxy.write(SourceFile:430)
at com.j_spaces.core.client.AbstractSpaceProxy.write(SourceFile:420)

16:43:27,969 INFO STDOUT GigaSpaces J2EE/ReplicatedSessionBean -- com.gigaspaces.converter.ConversionException: Failed to convert the Entry to POJO
16:43:27,969 ERROR STDERR com.gigaspaces.converter.ConversionException: Failed to convert the Entry to POJO
16:43:27,969 ERROR STDERR at com.gigaspaces.converter.pojo.Pojo2ExternalEntryConverter.toEntry(SourceFile:423)
16:43:27,969 ERROR STDERR at com.j_spaces.core.client.action.common.PreConvertProxyActionListener.onAction(SourceFile:152)
16:43:27,969 ERROR STDERR at com.j_spaces.core.client.action.common.PreConvertProxyActionListener.onAction(SourceFile:26)
16:43:28,000 ERROR STDERR at com.j_spaces.core.client.AbstractSpaceProxy.write(SourceFile:430)
16:43:28,000 ERROR STDERR at com.j_spaces.core.client.AbstractSpaceProxy.write(SourceFile:420)

Heree's the POJO class
public class Person implements Serializable{
private String firstName;

private String lastName;

private Integer id;
//private Set adresses;

// must have empty constructor
    public Person() {
}

public Person(String firstName, String lastName, Integer id) {
        this.firstName = firstName;
        this.lastName = lastName;
this.id = id;

}
    public String toString() {
        String tmp;
        tmp = "ID:" + id + " firstName:" + firstName + " lastName:" + lastName;// +" Adress " ;
        //Iterator inter = adresses.iterator();
        //while(inter.hasNext()){
        // tmp += "\n\t" + inter.next().toString();
        //}
        return tmp;
}

public static String __getSpaceIndexedFields() {
        return new String { "id", "firstName" };
}

public String getFirstName() {
        return firstName;
}

public void setFirstName(String firstName) {
        this.firstName = firstName;
}

public String getLastName() {
        return lastName;
}

public void setLastName(String lastName) {
        this.lastName = lastName;
}

public Integer getId() {
        return id;
}

public void setId(Integer id) {
        this.id = id;
    }
}

Hibernate mapping:
<hibernate-mapping>
    <class name="com.j_spaces.examples.datasource.Person" table="Person">
        <id name="id" type="integer">
            <column name="ID" />
            <generator class="assigned" />
        </id>
        <property name="firstName" type="string">
            <column name="FIRSTNAME" length="20" />
        </property>
        <property name="lastName" type="string">
            <column name="LASTNAME" length="20" />
        </property>
    </class>
</hibernate-mapping>

gs mapping:
<gigaspaces-mapping>
    <class name="com.j_spaces.examples.datasource.Person" persist="true"
    replicate="true" fifo="false">
        <property name="firstName" index="none" />
        <property name="lastName" index="none" />
        <id name="id" auto-generate="false"/>
    </class>
</gigaspaces-mapping>

Also, I tried querying existing object in space using GS UI, and same exception:
java.sql.SQLException: Select failed
 Failed to getCacheContext.; nested exception is:
    com.jspaces.core.sadapter.SAException: com.gigaspaces.converter.ConversionException: Failed to convert the Entry to POJO :com.jspaces.examples.benchmark.messages.Message
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SourceFile:362)
    at com.j_spaces.jdbc.QueryHandler.a(SourceFile:97)
    at com.j_spaces.jdbc.QueryProcessor.executeQuery(SourceFile:294)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.j_spaces.obf.iw.a(SourceFile:333)
    at com.j_spaces.obf.fh.b(SourceFile:292)
    at com.j_spaces.obf.fh.a(SourceFile:358)
    at com.j_spaces.obf.jk.dispatch(SourceFile:118)
    at com.j_spaces.obf.ca.run(SourceFile:62)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.rmi.RemoteException: Failed to getCacheContext.; nested exception is:
    com.jspaces.core.sadapter.SAException: com.gigaspaces.converter.ConversionException: Failed to convert the Entry to POJO :com.jspaces.examples.benchmark.messages.Message
    at com.j_spaces.obf.ko.readMultiple(SourceFile:2084)
    at com.j_spaces.core.JSpaceImpl.readMultiple(SourceFile:1546)
    at com.j_spaces.core.lrmi.LRMIRemoteSpaceImpl.readMultiple(SourceFile:216)
    at com.j_spaces.core.client.single.action.AbstractSingleSpaceReadTakeMultipleActionListener.readMultiple(SourceFile:74)
    at com.j_spaces.core.client.single.action.SingleSpaceReadMultipleActionListener.onAction(SourceFile:35)
    at com.j_spaces.core.client.single.action.SingleSpaceReadMultipleActionListener.onAction(SourceFile:16)
    at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:623)
    at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:596)
    at com.j_spaces.jdbc.SelectQuery.b(SourceFile:1215)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SourceFile:181)
    ... 14 more
Caused by: com.jspaces.core.sadapter.SAException: com.gigaspaces.converter.ConversionException: Failed to convert the Entry to POJO :com.jspaces.examples.benchmark.messages.Message
    at com.j_spaces.sadapter.datasource.DataAdapter.makeEntriesIter(SourceFile:932)
    at com.j_spaces.obf.cj.E(SourceFile:242)
    at com.j_spaces.obf.cj.next(SourceFile:27)
    at com.j_spaces.obf.ko.a(SourceFile:4640)
    at com.j_spaces.obf.ko.readMultiple(SourceFile:2042)
    ... 23 more
Caused by: com.gigaspaces.converter.ConversionException: Failed to convert the Entry to POJO :com.j_spaces.examples.benchmark.messages.Message
    at com.gigaspaces.converter.pojo.Pojo2ExternalEntryConverter.toPojoFromIGSEntry(SourceFile:814)
    at com.j_spaces.obf.z.toObject(SourceFile:59)
    at com.j_spaces.sadapter.datasource.EntryAdapter.toObject(SourceFile:99)
    at com.j_spaces.sadapter.datasource.DataAdapter.makeEntriesIter(SourceFile:861)
    ... 27 more
Caused by: java.lang.IllegalArgumentException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.gigaspaces.converter.pojo.Pojo2ExternalEntryConverter.toPojoFromIGSEntry(SourceFile:730)
... 30 more

This thread was imported from the previous forum.
For your reference, the original is available here

2015-12-04 12:00:26 -0500 marked best answer Classloading

I am starting an embedded persistent space using a servlet in JBOSS 4.2 AS. The embedded persistent space start fine, until I enable scoped class loading in jboss-app.xml, in which case space can't find jdbc driver: <loader-repository> com.company.project:archive=projectname.ear </loader-repository>

The ojdbc.jar driver and all the GS jars are in lib directory, which is on the MANIFEST Class-Path.

13:55:33,858 INFO [Version] Hibernate Annotations 3.2.1.GA 13:55:34,155 INFO [Environment] Hibernate 3.2.4.sp1 13:55:34,202 INFO [Environment] hibernate.properties not found 13:55:34,202 INFO [Environment] Bytecode provider name : javassist 13:55:34,218 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 13:55:34,577 INFO [Configuration] configuring from resource: /config/node1/hibernate.cfg.xml 13:55:34,577 INFO [Configuration] Configuration resource: /config/node1/hibernate.cfg.xml 13:55:34,811 WARN [Environment] Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately 13:55:34,811 INFO [Configuration] Reading mappings from resource : com/jdsu/netanalyst/common/beans/ResourceMapping.hbm.xml 13:55:34,858 INFO [Configuration] Configured SessionFactory: null 13:55:35,124 INFO [HbmBinder] Mapping class: com.jdsu.netanalyst.common.beans.ResourceMapping -> RESOURCE_MAP 13:55:35,671 WARN [Environment] Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately 13:55:35,702 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!) 13:55:35,702 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20 13:55:35,702 INFO [DriverManagerConnectionProvider] autocommit mode: false 13:55:35,702 INFO [DriverManagerConnectionProvider] using driver: oracle.jdbc.driver.OracleDriver at URL: xxxxxxxxxxxx 13:55:35,702 INFO [DriverManagerConnectionProvider] connection properties: {user=xxx, password=xxx} 13:55:35,702 WARN [SettingsFactory] Could not obtain connection metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) at com.gigaspaces.datasource.hibernate.SessionFactoryBuilder.getFactory(SourceFile:66) at com.gigaspaces.datasource.hibernate.HibernateDataSource.init(SourceFile:137) at com.j_spaces.obf.de.init(SourceFile:457) at com.j_spaces.sadapter.datasource.DataAdapter.init(SourceFile:295) at com.j_spaces.obf.fr.a(SourceFile:346) at com.j_spaces.obf.ko.a(SourceFile:699) at com.j_spaces.core.JSpaceImpl.u(SourceFile:3385) at com.j_spaces.core.JSpaceImpl.r(SourceFile:3263) at com.j_spaces.core.JSpaceImpl.start(SourceFile:3100) at com.j_spaces.core.JSpaceImpl.<init>(SourceFile:369) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2997) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2920) at com.j_spaces.core.JSpaceContainerImpl.aU(SourceFile:1315) at com.j_spaces.core.JSpaceContainerImpl.aN(SourceFile:715) at com.j_spaces.core.JSpaceContainerImpl.<init>(SourceFile:610) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:695) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:814) at com.j_spaces.core.client.SpaceFinder._find(SourceFile:540) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:345) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:333) at com.j_spaces.core.client.SpaceFinder.find(SourceFile:412)

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

2015-12-04 11:59:00 -0500 marked best answer composite keys in gs.xml

Does gs support equivalent of hibernate composite keys?

This thread was imported from the previous forum.
For your reference, the original is available here

2015-12-04 11:58:54 -0500 marked best answer GS periodic refresh from backend database

If Gigaspaces is running and connnected to backend database, and data in database is modified directly using sql, does gigaspaces reload the modified record from the database into its cache?

Is there some documentation on different modes when GS has a backend database (ALL_IN_CACHE, LRU etc)

Versions: GS version 6.5, backend oracle 10g, jdk 5

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

2015-12-04 11:58:54 -0500 marked best answer GS integration with Weblogic

What is the procedure for integrating GS 6.5 with Weblogic 9.x.

The page at link below says: "This page is specific to:GigaSpaces 6.0 This feature is deprecated as of version 6.5 " [ http://www.gigaspaces.com/wiki/displa... ]

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

2015-12-04 11:58:41 -0500 marked best answer Topology and persistence questions
  1. We have a primary-backup cluster, with the backup scheduled to take over if the primary fails. Both run on separate hosts, and the code is configured to persist to a backend RDBMS. I want to verify that the backup will write to DB only when it is in the primary mode, and not when its running in backup mode.

  2. What kind of compatibility with hibernate mappings does GS support? For instance hibernate supports one-to-many; many-to-many etc mappings. I have legacy code that I need to enable Cache for, with write through to RDBMS. The legacy code objects reference other objects, (eg: Class Person creates instance of class Address). I understand that GS will write such objects to space, but are read queries supported for such objects. i.e, Can I do the following: Person personTemplate = new Person(); Address addrTemplate = new Address(); personTemplate.setAddreTemplate(addrTemplate); space.find(personTemplate, null, JavaSpace.NO_WAIT); // expectation is space will read through such objects from RDBMS.

If such queries are supported, can the object graph be of any complexity?

If Person has a java collection of instances of another class (eg: Person has field java.util.List<vehicles>), what are my options apart from flattening the structure so that Vehicle instances are stored outside and "joined" through a foreign key?

  1. Can async_replicated schema also have backups for each primary instance in the cluster.

Thanks, sm.

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

2015-12-04 11:58:41 -0500 marked best answer FinderException on container url for clustered space

The following code works fine for non-clustered space, but throws exception if the space is started as clustered. Any suggestions on what may be wrong?

#Start gs url

gsInstance.bat "/./mySpace?cluster_schema=primary_backup&clustername=probeProxyCluster&total_members=1,1&id=1 INFO [com.gigaspaces.core.common]: Space <myspace_container1:myspace> with url [/./mySpace?cluster_schema=primary_backup spaces-6.5.1-XAP-ga&state=started] started successfully

Code: spaceURL="jini:////mySpace" System.out.println("Trying to connect to space with url: " + spaceURL + " ..."); IJSpace space = (IJSpace) SpaceFinder.find(spaceURL); System.out.println.println("Connected to space."); containerURL = "jini:///mySpace_container1?groups=gigaspaces-6.5.1-XAP-ga" IJSpaceContainer spaceContainer = (IJSpaceContainer) SpaceFinder .find(containerURL);

Output Trying to connect to space with url: jini:////mySpace ... Connected to space. com.j_spaces.core.client.FinderException: LookupFinder failed to find service using the following service attributes:

 Service attributes: [com.j_spaces.lookup.entry.ContainerName(name=mySpace_container1_1)]
 Service attributes: [net.jini.lookup.entry.Name(name=mySpace_container1_1)]
 Lookup timeout: [5000]
 Classes: [interface com.j_spaces.core.service.Service]
 Jini Lookup Groups: [gigaspaces-6.5.1-XAP-ga]
 Number of Lookup Services: 1

com.j_spaces.core.client.FinderException: LookupFinder failed to find service using the following service attributes:

 Service attributes: [com.j_spaces.lookup.entry.ContainerName(name=mySpace_container1_1)]
 Service attributes: [net.jini.lookup.entry.Name(name=mySpace_container1_1)]
 Lookup timeout: [5000]
 Classes: [interface com.j_spaces.core.service.Service]
 Jini Lookup Groups: [gigaspaces-6.5.1-XAP-ga]
 Number of Lookup Services: 1

at com.j_spaces.core.client.LookupFinder.find(SourceFile:332)
at com.j_spaces.core.client.SpaceFinder.a(SourceFile:1054)
at com.j_spaces.core.client.SpaceFinder._find(SourceFile:615)
at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:408)
at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:392)
at com.j_spaces.core.client.SpaceFinder.find(SourceFile:479)

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

2015-12-04 11:58:24 -0500 marked best answer API to shutdown space instance

1) Is there any api to shutdown a 6.5 space instance (IJSpace.shutdown?) ? I have a servlet that starts a persistent embedded space in weblogic, and want to stop the space instance when the application is undeployed.

2) When the ReplicatedSessionBean application provided by GS as an example of integration with Weblogic is deployed the space starts up and functions correctly, however, the following exception is seen during Weblogic shutdown: INFO [com.gigaspaces.core.cluster.replication]: replicator thread was interupted . Exception in thread "ShutdownHook" java.lang.NoClassDefFoundError: net/jini/lookup/JoinManager$ModifyAttributesTask at net.jini.lookup.JoinManager.modifyAttributes(JoinManager.java:2318) at com.j_spaces.core.service.AbstractService.modifyLookupAttributes(Sour ceFile:294) at com.j_spaces.core.JSpaceImpl.stop(SourceFile:3499) at com.j_spaces.core.JSpaceImpl.shutdown(SourceFile:2979) at com.j_spaces.core.JSpaceContainerImpl.shutdown(SourceFile:2121) at com.j_spaces.core.JSpaceContainerImpl.shutdown(SourceFile:2091) at com.j_spaces.obf.jh.run(SourceFile:449) Exception in thread "ShutdownHook" java.lang.NoClassDefFoundError: net/jini/look up/JoinManager$ModifyAttributesTask at net.jini.lookup.JoinManager.modifyAttributes(JoinManager.java:2318) at com.j_spaces.core.service.AbstractService.modifyLookupAttributes(Sour ceFile:294) at com.j_spaces.core.JSpaceImpl.stop(SourceFile:3499) at com.j_spaces.core.JSpaceImpl.shutdown(SourceFile:2979) at com.j_spaces.core.JSpaceContainerImpl.shutdown(SourceFile:2121) at com.j_spaces.core.JSpaceContainerImpl.shutdown(SourceFile:2091) at com.j_spaces.obf.jh.run(SourceFile:449) Stopping PointBase server... PointBase server stopped.

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

2015-12-04 11:58:24 -0500 marked best answer Space locator attribute in space startup url

GS version is: GigaSpaces XAP 6.5.1 ga (build 2400)

I have a clustered space running on two hosts 'host1' and 'host2' on different subnets. To enable both multicast and unicast lookup, will the following urls with specific locators attributes work? This is my understanding from the SpaceURL API doc, but just wanted to confirm 1) that this is correct, and 2) The locators attributes should contain host:port attributes for all other hosts where other members of the cluster are running (and not this host which is starting the space instance).

Host #1

// create space and save proxy for operations since space lookup is expensive IJSpace proxy = SpaceFinder.find("/./mySpace?cluster_schema=primary_backup&clustername=myCluster&total_members=1,1&id=1&groups=myGroup&locators=host2:4162") // perform space operations proxy.read(), proxy.write() etc....

Host #2

// create space and save proxy for operations since space lookup is expensiveIJSpace proxy = SpaceFinder.find (/./mySpace?cluster_schema=primary_backup&clustername=myCluster&total_members=1,1&id=1&backup_id=1&groups=myGroup&locators=host1:4162) // perform space operations proxy.read(), proxy.write() etc....

Reference: [ http://www.gigaspaces.com/docs/JavaDo... ]

"The locators URL property should be used to perform unicast LUS discovery. To enable both multicast and unicast discovery the following Space URL should be used. SpaceFinder.find("jini:////Space?groups=g1,g2,g3&locators=h1:port,h2:port,h3:port)."

Edited by: s m on Jul 21, 2009 10:19 AM - Correction, the GS version is: GigaSpaces XAP 6.5.1 ga (build 2400)

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

2015-12-04 11:58:23 -0500 marked best answer Does gigaspaces clone objects on read | write| take operations?

Does gigaspaces clones objects when:

a) you write them to the space

b) when you read them from the space

c) when you invoke take() on the space

Thanks.

This thread was imported from the previous forum.
For your reference, the original is available here

2015-12-04 11:58:19 -0500 marked best answer Transaction error if a space instance in a cluster is (re)starting

GS 6.5 in embedded jvm (jboss) mode, jdk 5 using primary-backup cluster. When one of the space instances in a cluster is stopped or started, the following exception is thrown when attempting read/write operation on space. The process has a proxy to the cluster, so it shouldn't be attempting to write to the backup space.

net.jini.core.transaction.TransactionException: Target space
Space-Test_container1:Space-Test not available. Operation is under transaction
- TransactionId: 1 operation terminated.

Operation is under transaction - TransactionId: 1 operation terminated.
        at com.j_spaces.core.cluster.JSpaceClusteredProxy.handleFailedOpUnderXtn(SourceFile:1496)
        at com.j_spaces.core.cluster.JSpaceClusteredProxy.handleFailedMethod(SourceFile:599)
        at com.j_spaces.core.cluster.JSpaceClusteredProxy.readMultipleBasic(SourceFile:2205)
        at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(SourceFile:75)
        at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:32)
        at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:25)
        at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:583)
at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:566)

Caused by: com.gigaspaces.cluster.activeelection.InactiveSpaceException: [probeProxySpace-Test_container
1:probeProxySpace-Test] servers as backup-only space and can't accept any operation while primary [probe
ProxySpace-Testcontainer12:probeProxySpace-Test] space is alive.
        at com.j_spaces.core.JSpaceImpl.fm(SourceFile:1148)
        at com.j_spaces.core.JSpaceImpl.checkState(SourceFile:1115)
        at com.j_spaces.core.JSpaceImpl.checkState(SourceFile:1102)
        at com.j_spaces.core.JSpaceImpl.readMultiple(SourceFile:1525)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.j_spaces.obf.nf.a(SourceFile:332)
        at com.j_spaces.obf.hq.a(SourceFile:437)
        at com.j_spaces.obf.hq.a(SourceFile:525)
        at com.j_spaces.obf.ow.work(SourceFile:174)
        at com.j_spaces.obf.oe.a(SourceFile:211)
        at com.j_spaces.obf.oe.dispatch(SourceFile:201)
        at com.j_spaces.obf.de.run(SourceFile:62)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
... 1 more

Thanks in advance for any help/ideas.

questions:,
1) Can you use a LocalTransactionManager with a clustered space:

spaceURL = "=/./Space-Test?clusterschema=primarybackup&clustername=spaceCluster&total_members=1,3&id=1&groups=spaceTest
Group&locators=s1:4162,s2:4162,s2:4162,s3:4162" // use unicast because multicast is disabled.

IJSpace ijSpace = SpaceFinder.find(spaceURL);
     TransactionManager trManager = LocalTransactionManager
                .getInstance( ijSpace );
// perform read, write operations using ijSpace proxy.

// Same procedure on other space instances

Is above tx possible, or do you have to use a Jini distributed transaction manager? If a dist tx manager has to be used, how can it be created for the above space URL?

2) if the primary space in a primary-backup cluser goes down (but backup spaces are up), is there a time window during which space operations will fail?

This thread was imported from the previous forum.
For your reference, the original is available here

2015-12-04 11:58:18 -0500 marked best answer List of jars needed to start embedded gigaspace

What is the complete list of jars needed by an application (java Enterprise or web application) at runtime to start an embedded gigaspace instance and perform operations(read|write|take etc) as a client. So far I know:

  1. gs-platform.jar 2 gs-lib.jar 3 JSpaces.jar
  2. gs-boot.jar

Is there any difference in the capabilities of an embedded versus standalone gigaspace instance? Thanks, sm.

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

2015-12-04 11:57:58 -0500 marked best answer Entry implementation contract

From what I know of gigaspaces(and part of it is hearsay), an object that needs to be persisted to GS should obey the following contract: 1. The class extends net.jini.core.entry.Entry interface. 2. All the fields of the class are public. 3. The class need to be on the classpath of gigaspaces.

However, the existing data model classes in our system, which is a candidate to use GS, don't follow this contract, and we would like to keep the gs persistence separate from the data model (non-intrusive). The current proposal is to use "meta-classes" that follow the contract and encapsulate the data model class information. These meta-classes are then persisted to space.

Is there a cleaner solution available in GS 6.0.3, where the data model classes themselves can be written to space, without having to make all their members public?

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

2015-12-04 11:57:58 -0500 marked best answer Hibernate Data Source

Are any of the following (DataAdapter or HibernateDataSource) deprecated in 6.5.1? If so, what is the replacement to use?

datasource1.properties: space-config.persistent.StorageAdapterClass=com.j_spaces.sadapter.datasource.DataAdapter space-config.external-data-source.data-source-class=com.gigaspaces.datasource.hibernate.HibernateDataSource

SM

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

2015-12-04 11:57:54 -0500 marked best answer How to search fields nested in Collections

I have two POJOs defined as follows

ClassA{ String a1; String a2; ...etc. }

Class B{ String b1; List <classa> listA = new ArrayList <classa> (); }

If there are several instances of Class B in space, is it possible to search for instances containing specific ClassA, for instance, as follows: ClassA templateA = new ClassA(p1, p2); // Instance of A with values p1, p2 ClassB templateB = new ClassB();
templateB.getListA().add(templateA); // Instance of B with Collection containing templateA IJSpace.readMultiple(templateB,.....); // expectation is to find all instances in space that correspond to templateB.

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

2015-12-04 11:57:22 -0500 marked best answer GS integration with Weblogic example

I tried the example for GS-Weblogic integration at the url below:
http://www.gigaspaces.com/wiki/display/GS6/J2EEWebLogic9.2.1and10ReplicatedSessionBeanExample
jdk 1.5 and wl 9.2

(http://www.gigaspaces.com/wiki/display/GS6/J2EEWebLogic9.2.1and10ReplicatedSessionBeanExample#J2EEWebLogic9.2.1and10ReplicatedSessionBeanExample-RuntheApplication)
I get the index.html page, but when I click "Go" button, I get a response page with text below:

<% // Grab the variables from the form int numEntries = Integer.valueOf(request.getParameter("numEntries")).intValue(); float numEntriesf = (float) numEntries ; long totalTime =0; String operationType= new String(request.getParameter("gp1")); float averageTime = 0; int count = 0; int beforecount = 0; long NOTIFYWAITTIMEFOR10OBJECTS = 400; long NOTIFYWAITTIME = ((numEntries/10) * NOTIFYWAITTIMEFOR10OBJECTS) + NOTIFYWAITTIMEFOR10OBJECTS; boolean isMap = false; if(operationType.equals("IDCacheMap.Put") || operationType.equals("IDCacheMap.Get") || operationType.equals("IDCacheMap.Remove")) isMap = true; System.out.println("operationType:"+ operationType); try { javax.naming.InitialContext initial = new javax.naming.InitialContext(); Object obj = initial.lookup("ejb/ReplicatedSessionRemoteHome"); com.jspaces.examples.ReplicatedSessionHome home = (com.jspaces.examples.ReplicatedSessionHome)javax.rmi.PortableRemoteObject.narrow(obj,com.jspaces.examples.ReplicatedSessionHome.class); com.jspaces.examples.ReplicatedSession gssess = home.create(); beforecount= gssess.count(isMap); long startTime = System.currentTimeMillis(); if (operationType.equals("Read")) { numEntries = gssess.read(numEntries); numEntriesf = (float)numEntries; } else if (operationType.equals("Write")) { gssess.write(numEntries); } else if (operationType.equals("Take")) { gssess.take(numEntries); } else if (operationType.equals("Update")) { gssess.update(numEntries); } else if (operationType.equals("Clear")) { gssess.clear(); } else if (operationType.equals("Notify")) { gssess.startNotify(); gssess.write(numEntries); try{Thread.sleep(NOTIFYWAITTIME);} catch (Exception e){} System.out.println("Wait " + NOTIFYWAITTIME + " milisec for messags"); gssess.cancelNotify(); } else if (operationType.equals("ReadMultiple")) { gssess.readM(numEntries); } else if (operationType.equals("WriteMultiple")) { gssess.writeM(numEntries); } else if (operationType.equals("TakeMultiple")) { gssess.takeM(numEntries); } else if (operationType.equals("UpdateMultiple")) { gssess.updateM(numEntries); } else if (operationType.equals("IDCacheMap.Put")) { gssess.put(numEntries); } else if (operationType.equals("IDCacheMap.Get")) { gssess.get(numEntries); } else if (operationType.equals("IDCacheMap.Remove")) { gssess.remove(numEntries); } long endTime = System.currentTimeMillis(); if (operationType.equals("Notify")) { endTime = endTime - NOTIFYWAITTIME; } totalTime = endTime - startTime; averageTime = totalTime/numEntriesf ; try{Thread.sleep(1000);} catch (Exception e){} count = gs_sess.count(isMap); initial.close(); } catch (Exception e) { System.out.println("Caught Exception:" + e.getMessage()); e.printStackTrace(); } %>
Hello

Before Operation "<%=operationType%>" there are <%= beforecount %> objects in space
Operation "<%=operationType%>" for <%=numEntries%> Entries - took <%=totalTime %> milli seconds
Average Time: <%= averageTime %> milli seconds
After Operation "<%=operationType%>" there are <%= count %> objects in space

This thread was imported from the previous forum.
For your reference, the original is available here

2015-12-04 11:57:04 -0500 marked best answer High CPU usage

We have jboss server running three embedded spaces on a Solaris 10 Sun-Fire-V445.When a space operation is performed, CPU usage is high -35-50%.. The operations are simple reads/writes to space of a small amount of data, sequential and low volume. I tried the benchmark available through the GS Management Center UI using the defaults on a PC, and while the benchmark completed quickly, the CPU usage went up to 83% (See attached). Do you suggest any tuning.

What are the requirements for space to run in terms of memory: 1. Memory footprint of a single GS instance when it starts up; and assuming no data in it. 2. Memory needed to cache a single java object instance of size x. I will configure jboss accordingly.

Is there a Gigaspaces XAP System requirements doc that specifies what is required (and recommended) in terms of cpu, memory, network etc.

SM.

Edited by: s m on Apr 17, 2008 6:07 PM h4. Attachments

[cpu_usage.JPG|/upfiles/13759720129783099.jpeg]

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

2015-12-04 11:57:04 -0500 marked best answer GS configuration, setup and administration

We use gigaspaces 6.5, in embedded mode inside Jboss with jdk 5. Our applications (different .ear archives) package the 6.5 jars and use gs urls to startup embedded gs instances as part of different clustering schemes (Primary Backup, Async-replicated).

Right now we use gigaspaces with settings out of the box, but we would like to get an understanding of, and document, what configuration, administration, and monitoring we are required to do, or can optionally do, on these gigaspaces instances running as part of different clusters in a production environment. I would appreciate detailed replies with examples whre applicable. Note that we would prefer CLI for all of these.

Our current packaging includes just the jars that are part of gs distribution, can you specify list of, or link to doc for:

1) possible configuration items ( such as algorithms to use, timeouts, schema configurations, locking algorithms, etc)

2) possible administration items

3) configuration files that should be included in the package

4) What configuration changes can be made without restarting space, and what require restart. For example, How about space name change?

i. # of retries per space (between space instances) in case of loss of connection ii. timeout per space (between space instances) iii. Configuration for specifying that replication of data among space instances should be batched (in case of primary-backup or replicated schemas). iv. List of Reconciliation algorithms to choose from among space instances in case of data conflicts v. if a cluster started with 3 members, can have a fourth member startup and become a part of the cluster.

5) Gigaspace support for SSL and firewall

6) I tried the example at:

http://www.gigaspaces.com/wiki/displa...

but got exception below: java.lang.reflect.UndeclaredThrowableException at $Proxy12.hashCode(Unknown Source) ... Caused by: javax.management.ReflectionException at sun.management.MXBeanSupport.invoke(MXBeanSupport.java:649) at sun.management.MXBeanSupport.invoke(MXBeanSupport.java:94) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImp l.java:213) .....

Edited by: s m on Nov 14, 2008 8:12 AM

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

2015-12-04 11:57:03 -0500 marked best answer java.lang.NoClassDefFoundError: com.gigaspaces...hib...SessionFactoryBuil

When starting embedded persistent space, I get following error. Do you know what jar file am I missing: java.lang.NoClassDefFoundError at com.gigaspaces.datasource.hibernate.SessionFactoryBuilder.getFactory(SourceFile:50) at com.gigaspaces.datasource.hibernate.HibernateDataSource.init(SourceFile:137) at com.j_spaces.obf.de.init(SourceFile:457) at com.j_spaces.sadapter.datasource.DataAdapter.init(SourceFile:295) at com.j_spaces.obf.fr.a(SourceFile:346) at com.j_spaces.obf.ko.a(SourceFile:699) at com.j_spaces.core.JSpaceImpl.u(SourceFile:3385) at com.j_spaces.core.JSpaceImpl.r(SourceFile:3263) at com.j_spaces.core.JSpaceImpl.start(SourceFile:3100) at com.j_spaces.core.JSpaceImpl.<init>(SourceFile:369) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2997) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2920) at com.j_spaces.core.JSpaceContainerImpl.aU(SourceFile:1315) at com.j_spaces.core.JSpaceContainerImpl.aN(SourceFile:715) at com.j_spaces.core.JSpaceContainerImpl.<init>(SourceFile:610) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:695) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:814) at com.j_spaces.core.client.SpaceFinder._find(SourceFile:540) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:345) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:333) at com.j_spaces.core.client.SpaceFinder.find(SourceFile:412)

Edited by: s m on Apr 25, 2008 12:43 PM

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

2015-12-04 11:50:19 -0500 marked best answer java.lang.ArrayStoreException on readMultiple inside Weblogic

On reading from space instance running inside Weblogic, the following exception is thrown.

java.lang.ArrayStoreException
        at java.lang.System.arraycopy(Native Method)
        at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:556)
at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:545)

If the same code is run as a standalone program with a main, the read call is successful w/o any issues.

//code
                StringBuffer queryClause = new StringBuffer();
queryClause.append("path like ? and Id=?");

SQLQuery<Node> query = new SQLQuery<Node>(
                "com.....model.type.Node",
queryClause.toString(), nodePath + "%", testId);

Object objects = ijSpace.readMultiple(query, tx, Integer.MAX_VALUE);

//config
GS 6.5 embedded persistent instance, JDK 5

Any suggestions?

This thread was imported from the previous forum.
For your reference, the original is available here

2015-12-04 11:49:17 -0500 marked best answer Exception with Calendar class

GS 6.5, jdk 1.5: SEVERE [com.gigaspaces.query]: java.util.GregorianCalendar java.lang.ClassCastException: java.util.GregorianCalendar at com.j_spaces.obf.pw.a(SourceFile:3377) at com.j_spaces.obf.pw.b(SourceFile:3352) at com.j_spaces.obf.pw.a(SourceFile:3168) at com.j_spaces.obf.pw.a(SourceFile:3211) at com.j_spaces.obf.pw.a(SourceFile:5360) at com.j_spaces.obf.pw.b(SourceFile:5276) at com.j_spaces.obf.pw.a(SourceFile:4800) at com.j_spaces.obf.pw.a(SourceFile:4582) at com.j_spaces.obf.pw.a(SourceFile:4125) at com.j_spaces.obf.pw.readMultiple(SourceFile:1888) at com.j_spaces.core.JSpaceImpl.readMultiple(SourceFile:1528) at com.j_spaces.core.lrmi.LRMIRemoteSpaceImpl.readMultiple(SourceFile:208) at com.j_spaces.core.cluster.JSpaceClusteredProxy.internalReadMultiple(SourceFile:2248) at com.j_spaces.core.cluster.JSpaceClusteredProxy.readMultipleBasic(SourceFile:2201) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(SourceFile:75) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:32) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:25) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:583) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:551) at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:282) at com.j_spaces.jdbc.parser.ExpNode.accept(SourceFile:195) at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:244) at com.j_spaces.jdbc.parser.AndNode.accept(SourceFile:74) at com.j_spaces.jdbc.SelectQuery.a(SourceFile:382) at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SourceFile:192) at com.j_spaces.core.client.AbstractDirectSpaceProxy.executeSqlStatment(SourceFile:1136) at com.j_spaces.core.client.AbstractDirectSpaceProxy.executeSQLQuery(SourceFile:1214) at com.j_spaces.core.client.AbstractDirectSpaceProxy.readMultSQLTemplate(SourceFile:1482) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(SourceFile:47) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:32) at com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(SourceFile:25) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:583) at com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(SourceFile:566)

Failed to execute readMultiple: java.util.GregorianCalendar at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:294) at com.j_spaces.jdbc.parser.ExpNode.accept(SourceFile:195) at com.j_spaces.jdbc.executor.QueryExecutor.execute(SourceFile:244) at com.j_spaces.jdbc.parser.AndNode.accept(SourceFile:74) at com.j_spaces.jdbc.SelectQuery.a(SourceFile:382) at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SourceFile:192) ... 12 more

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