Hazelcast 3.2.5 (hazelcast-spring-3.2.xsd): org.xml.sax.SAXParseException configuring Client network attributes using placeholder

76 views
Skip to first unread message

Neko Escondido

unread,
Sep 9, 2014, 5:06:55 PM9/9/14
to haze...@googlegroups.com
Hello 

I'm trying to create Hazelcast client instance via Spring but getting error using property placeholder for client network attributes (hz:client hz:network) with the following configuration:

    <hz:client id="hazelcastClientInstance" >
        <hz:group name="${hazelcastClient.groupName}" password="${hazelcastClient.groupPassword}" />
        <hz:network connection-attempt-limit="${hazelcastClient.connectionAttemptLimit}" 
                                connection-attempt-period="${hazelcastClient.connectionAttemptPeriod}" 
                                connection-timeout="${hazelcastClient.connectionTimeout}"  
                                redo-operation="${hazelcastClient.networkRedoOperation}"
                                smart-routing="${hazelcastClient.networkSmartRouting}" >
            <hz:member>${hazelcastCliet.clusterMember.0}</hz:member>
            <hz:member>${hazelcastClient.clusterMember.1}</hz:member>
        </hz:network>
    </hz:client>

Error is:
Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '${hazelcastClient.connectionAttemptLimit}' is not a valid value for 'integer'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
...

In schema, the data type of these attributes are integer so unless placeholder resolution happens BEFORE "hz" namespace is processed, the above error results.
Is there any way to get around this or am I doing something wrong?

Any suggestions/feedback are greatly appreciated.
Best regards.

Serkan Özal

unread,
Sep 9, 2014, 5:11:23 PM9/9/14
to haze...@googlegroups.com
Hi Neko,

It is fixed at Hazelcast 3.3. 

You can upgrade your Hazelcast version if it is possibly.

Neko Escondido

unread,
Sep 11, 2014, 10:20:46 PM9/11/14
to haze...@googlegroups.com
Thank you very much Serkan.  :)
Reply all
Reply to author
Forward
0 new messages