[
https://issues.apache.org/jira/browse/IGNITE-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Denis Magda resolved IGNITE-1369.
---------------------------------
Resolution: Fixed
Assignee: Vasilisa Sidorova (was: Denis Magda)
Improved cache related tests to get rid off the error saying that a cache has
already been started. Just calling {{cache.destroy}} at the end of the example
execution.
The documentation is absolutely correct.
You have to use {{ExamplePortableNodeStartup}} when running portable {{Ignite}}
examples from Intellij. If you run these examples with
{{GridExampleNodeStartup}} you will get an error (I'm getting the one).
{{GridExampleNodeStartup}} has to be used along with the cross-platform example
that is still a part of GG. Please make sure that it works in conjuntion with
.Net.
> CacheClientPortableQueryExample need to update javadoc
> ------------------------------------------------------
>
> Key: IGNITE-1369
> URL: https://issues.apache.org/jira/browse/IGNITE-1369
> Project: Ignite
> Issue Type: Bug
> Components: documentation
> Affects Versions: 1.1.4
> Reporter: Vasilisa Sidorova
> Assignee: Vasilisa Sidorova
> Priority: Minor
>
> CacheClientPortableQueryExample fails with exception:
> {noformat}
> Exception in thread "main" org.apache.ignite.cache.CacheExistsException:
> Failed to start cache (a cache with the same name is already started):
> CacheClientPortableQueryExampleOrganizations
> at
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.dynamicStartCache(GridCacheProcessor.java:2133)
> at
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.dynamicStartCache(GridCacheProcessor.java:2094)
> at
> org.apache.ignite.internal.IgniteKernal.createCache(IgniteKernal.java:2392)
> at
> org.apache.ignite.examples.portable.datagrid.CacheClientPortableQueryExample.main(CacheClientPortableQueryExample.java:87)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
> {noformat}
> if it's running with node from command line. And
> CacheClientPortableQueryExample is running OK with GridExampleNodeStartup.
> So, it's need to delete text:
> {noformat}
> * Alternatively you can run {@link ExamplePortableNodeStartup} in another JVM
> which will
> * start node with {@code
> examples/config/portable/example-ignite-portable.xml} configuration.
> {noformat}
> from example description
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)