Hi Sameera,
The code is related to publisher extension.
Going further down the error in console I can see followings:
[2015-04-30 12:49:55,898] ERROR
{org.wso2.carbon.registry.eventing.services.EventingServiceImpl} - Unable
to add subscription
org.wso2.carbon.event.core.exception.EventBrokerException: Topic name
/registry/notifications/StoreAssetUpdate/_system/governance/dishes/Name
with [ ] is not a valid topic name. Only alphanumeric characters, hyphens
(-), stars(*), hash(#) ,dot(.),question mark(?) and underscores (_) are
allowed.
at
org.wso2.carbon.event.core.internal.topic.registry.RegistryTopicManager.addTopic(RegistryTopicManager.java:105)
.......................
[2015-04-30 12:49:56,029] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.apache.solr.common.SolrException: Failure at query [* TO *] (eval
code#1(eval)#348) (/publisher/controllers/assets-router.jag#75)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.apache.solr.common.SolrException: Failure at query [* TO *] (eval
code#1(eval)#348) (/publisher/controllers/assets-router.jag#75)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
.............................
Seems this came with an issue related to subscribing to a topic.
At the moment this can be avoided by not using those square-brackets.
Will this going to be a future limitation?
Thank you!
On Thu, Apr 30, 2015 at 1:56 PM, Sameera Medagammaddegedara <
[email protected]> wrote:
> Hi Buddhima,
>
>
> We have not done any changes to the create method recently that would
> effect the above code.Is the above snippet found in a store or publisher
> extension?
>
> Thank You,
> Sameera
>
> On Thu, Apr 30, 2015 at 1:02 PM, Buddhima Wijeweera <[email protected]>
> wrote:
>
>> Hi All,
>>
>> Previously we were able to use the following code to insert an RXT
>> instance dynamically.
>>
>> var asset = require('rxt').asset;
>> var am = asset.createUserAssetManager(ctx.session, 'dish');
>> var assetInstance = {
>> name: "Name with [ ]",
>>
>> attributes: {
>>
>> overview_name: randomNumber +
>> descriptorXML.overview.name.text(),
>>
>> ..............
>>
>> }
>> };
>>
>> am.create(assetInstance);
>>
>>
>> But with latest build from ES, we were unable to do so. We get the
>> following error :
>>
>> [2015-04-30 12:46:07,159] ERROR
>> {org.wso2.carbon.registry.eventing.services.EventingServiceImpl} - Unable
>> to add subscription
>> org.wso2.carbon.event.core.exception.EventBrokerException: Topic name
>> /registry/notifications/StoreLifecycleStateChange/_system/governance/dishes/Name
>> with [ ] is not a valid topic name. Only alphanumeric characters, hyphens
>> (-), stars(*), hash(#) ,dot(.),question mark(?) and underscores (_) are
>> allowed.
>>
>>
>>
>> So, would like to know, was there a change in createUserAssetManager
>> method recently?
>>
>> Thank you!
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Mobile: +94 71 427 9966
>> Email: [email protected]
>> Blog: https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: [email protected]
> Mobile: + 94 077 255 3005
>
--
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,
Mobile: +94 71 427 9966
Email: [email protected]
Blog: https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev