Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-08-31 Thread Pulasthi Mahawithana
Hi,

There is already a carbon JIRA[1] for this issue.

[1] https://wso2.org/jira/browse/CARBON-14904


On Sun, Aug 31, 2014 at 10:52 AM, Firzhan Naqash firz...@wso2.com wrote:

 Hi,

 Thanks Ajith for the detailed explanation. I have created following JIRA[1]

 [1] https://wso2.org/jira/browse/REGISTRY-2291




 Regards,
 Firzhan


 On Sun, Aug 31, 2014 at 7:53 AM, Ajith Vitharana aji...@wso2.com wrote:


 If your product is using the registry search feature, this bundle will
 include to the product. If so it is must to add this configuration to the
 registry.xml.
 Anyway we need handle this NPE for the products which don't use the
 indexing based registry search.

 Please report a JIRA to handle this NPE.

 Thanks
 Ajith.


 On Sun, Aug 31, 2014 at 2:34 AM, Firzhan Naqash firz...@wso2.com wrote:

 Hi,

 I debugged the code and the code seems to be throwing exception in the
 GREG's org.wso2.carbon.registry.indexing.RegistryConfigLoader class.

 This exception occurred because of missing XML elements in registry.xml.
 After I added the indexingConfiguration it worked fine.

  if the  file doesn't have the indexingConfiguration
 /indexingConfiguration tags.



 indexingConfiguration
 startingDelayInSeconds300/startingDelayInSeconds
 indexingFrequencyInSeconds60/indexingFrequencyInSeconds
 batchSize10/batchSize
 indexerPoolSize10/indexerPoolSize
 !-- location storing the time the indexing took place--

 lastAccessTimeLocation/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime/lastAccessTimeLocation
 indexers
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer
 mediaTypeRegEx=application/vnd.ms-excel/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer
 mediaTypeRegEx=application/vnd.ms-powerpoint/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSWordIndexer
 mediaTypeRegEx=application/msword/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PDFIndexer
 mediaTypeRegEx=application/pdf/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
 mediaTypeRegEx=application/xml/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
 mediaTypeRegEx=application/(.)+\+xml/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
 mediaTypeRegEx=text/(.)+/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
 mediaTypeRegEx=application/x-javascript/
 /indexers
 exclusions
 exclusion
 pathRegEx=/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html/
 exclusion
 pathRegEx=/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*/
 /exclusions
 /indexingConfiguration



 @subash:- Do we have to add this part to the registry.xml file in each
 product or am I missing some thing in initial configuration which is
 forcing me to add this xml tag ?




 Regards,
 Firzhan


 On Sat, Aug 30, 2014 at 11:24 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:


 Please raise a jira on this.

 Thanks.


 On Sat, Aug 30, 2014 at 10:54 PM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Malinga,

 I am also encountering the same error when I tried to shut down the
  BPSserver.

 Any luck with the above error ? Can you share your findings ?

 Regards,
 Firzhan


 On Fri, Jul 4, 2014 at 7:30 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Any idea about the following,

 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been
 completed. {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  Waiting for server task
 completion... {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
 into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
 java.lang.NullPointerException
 at
 org.wso2.carbon.registry.indexing.RegistryConfigLoader.init(RegistryConfigLoader.java:88)
 at
 org.wso2.carbon.registry.indexing.IndexingManager.init(IndexingManager.java:68)
  at
 org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
 at
 org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
  at
 org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
 at
 org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
  at
 org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
 at
 org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:894)

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 

Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-08-31 Thread Firzhan Naqash
Hi,

Thanks for pointing out. Although the error occurs in difference mode, root
cause seems to be the same reason.

I think this is not a carbon issue and this is a registry issue.

Thanks

Regards,
Firzhan


On Sun, Aug 31, 2014 at 4:36 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi,

 There is already a carbon JIRA[1] for this issue.

 [1] https://wso2.org/jira/browse/CARBON-14904


 On Sun, Aug 31, 2014 at 10:52 AM, Firzhan Naqash firz...@wso2.com wrote:

 Hi,

 Thanks Ajith for the detailed explanation. I have created following
 JIRA[1]

 [1] https://wso2.org/jira/browse/REGISTRY-2291




 Regards,
 Firzhan


 On Sun, Aug 31, 2014 at 7:53 AM, Ajith Vitharana aji...@wso2.com wrote:


 If your product is using the registry search feature, this bundle will
 include to the product. If so it is must to add this configuration to the
 registry.xml.
 Anyway we need handle this NPE for the products which don't use the
 indexing based registry search.

 Please report a JIRA to handle this NPE.

 Thanks
 Ajith.


 On Sun, Aug 31, 2014 at 2:34 AM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi,

 I debugged the code and the code seems to be throwing exception in the
 GREG's org.wso2.carbon.registry.indexing.RegistryConfigLoader class.

 This exception occurred because of missing XML elements in
 registry.xml. After I added the indexingConfiguration it worked fine.

  if the  file doesn't have the indexingConfiguration
 /indexingConfiguration tags.



 indexingConfiguration
 startingDelayInSeconds300/startingDelayInSeconds
 indexingFrequencyInSeconds60/indexingFrequencyInSeconds
 batchSize10/batchSize
 indexerPoolSize10/indexerPoolSize
 !-- location storing the time the indexing took place--

 lastAccessTimeLocation/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime/lastAccessTimeLocation
 indexers
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer
 mediaTypeRegEx=application/vnd.ms-excel/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer
 mediaTypeRegEx=application/vnd.ms-powerpoint/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSWordIndexer
 mediaTypeRegEx=application/msword/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PDFIndexer
 mediaTypeRegEx=application/pdf/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
 mediaTypeRegEx=application/xml/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
 mediaTypeRegEx=application/(.)+\+xml/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
 mediaTypeRegEx=text/(.)+/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
 mediaTypeRegEx=application/x-javascript/
 /indexers
 exclusions
 exclusion
 pathRegEx=/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html/
 exclusion
 pathRegEx=/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*/
 /exclusions
 /indexingConfiguration



 @subash:- Do we have to add this part to the registry.xml file in each
 product or am I missing some thing in initial configuration which is
 forcing me to add this xml tag ?




 Regards,
 Firzhan


 On Sat, Aug 30, 2014 at 11:24 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:


 Please raise a jira on this.

 Thanks.


 On Sat, Aug 30, 2014 at 10:54 PM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Malinga,

 I am also encountering the same error when I tried to shut down the
  BPSserver.

 Any luck with the above error ? Can you share your findings ?

 Regards,
 Firzhan


 On Fri, Jul 4, 2014 at 7:30 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi,

 Any idea about the following,

 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have 
 been
 completed. {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  Waiting for server task
 completion... {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
 into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
 java.lang.NullPointerException
 at
 org.wso2.carbon.registry.indexing.RegistryConfigLoader.init(RegistryConfigLoader.java:88)
 at
 org.wso2.carbon.registry.indexing.IndexingManager.init(IndexingManager.java:68)
  at
 org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
 at
 org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
  at
 org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
 at
 

Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-08-30 Thread Firzhan Naqash
Hi Malinga,

I am also encountering the same error when I tried to shut down the
 BPSserver.

Any luck with the above error ? Can you share your findings ?

Regards,
Firzhan


On Fri, Jul 4, 2014 at 7:30 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Any idea about the following,

 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been
 completed. {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  Waiting for server task
 completion... {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
 into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
 java.lang.NullPointerException
 at
 org.wso2.carbon.registry.indexing.RegistryConfigLoader.init(RegistryConfigLoader.java:88)
 at
 org.wso2.carbon.registry.indexing.IndexingManager.init(IndexingManager.java:68)
  at
 org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
 at
 org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
  at
 org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
 at
 org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
  at
 org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
 at
 org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:894)

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-08-30 Thread Kasun Gajasinghe
Please raise a jira on this.

Thanks.


On Sat, Aug 30, 2014 at 10:54 PM, Firzhan Naqash firz...@wso2.com wrote:

 Hi Malinga,

 I am also encountering the same error when I tried to shut down the
  BPSserver.

 Any luck with the above error ? Can you share your findings ?

 Regards,
 Firzhan


 On Fri, Jul 4, 2014 at 7:30 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Any idea about the following,

 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been
 completed. {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  Waiting for server task
 completion... {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
 into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
 java.lang.NullPointerException
 at
 org.wso2.carbon.registry.indexing.RegistryConfigLoader.init(RegistryConfigLoader.java:88)
 at
 org.wso2.carbon.registry.indexing.IndexingManager.init(IndexingManager.java:68)
  at
 org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
 at
 org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
  at
 org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
 at
 org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
  at
 org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
 at
 org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:894)

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-08-30 Thread Firzhan Naqash
Hi,

I debugged the code and the code seems to be throwing exception in the
GREG's org.wso2.carbon.registry.indexing.RegistryConfigLoader class.

This exception occurred because of missing XML elements in registry.xml.
After I added the indexingConfiguration it worked fine.

 if the  file doesn't have the indexingConfiguration
/indexingConfiguration tags.



indexingConfiguration
startingDelayInSeconds300/startingDelayInSeconds
indexingFrequencyInSeconds60/indexingFrequencyInSeconds
batchSize10/batchSize
indexerPoolSize10/indexerPoolSize
!-- location storing the time the indexing took place--

lastAccessTimeLocation/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime/lastAccessTimeLocation
indexers
indexer
class=org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer
mediaTypeRegEx=application/vnd.ms-excel/
indexer
class=org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer
mediaTypeRegEx=application/vnd.ms-powerpoint/
indexer
class=org.wso2.carbon.registry.indexing.indexer.MSWordIndexer
mediaTypeRegEx=application/msword/
indexer
class=org.wso2.carbon.registry.indexing.indexer.PDFIndexer
mediaTypeRegEx=application/pdf/
indexer
class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
mediaTypeRegEx=application/xml/
indexer
class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
mediaTypeRegEx=application/(.)+\+xml/
indexer
class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
mediaTypeRegEx=text/(.)+/
indexer
class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
mediaTypeRegEx=application/x-javascript/
/indexers
exclusions
exclusion
pathRegEx=/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html/
exclusion
pathRegEx=/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*/
/exclusions
/indexingConfiguration



@subash:- Do we have to add this part to the registry.xml file in each
product or am I missing some thing in initial configuration which is
forcing me to add this xml tag ?




Regards,
Firzhan


On Sat, Aug 30, 2014 at 11:24 PM, Kasun Gajasinghe kas...@wso2.com wrote:


 Please raise a jira on this.

 Thanks.


 On Sat, Aug 30, 2014 at 10:54 PM, Firzhan Naqash firz...@wso2.com wrote:

 Hi Malinga,

 I am also encountering the same error when I tried to shut down the
  BPSserver.

 Any luck with the above error ? Can you share your findings ?

 Regards,
 Firzhan


 On Fri, Jul 4, 2014 at 7:30 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Any idea about the following,

 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been
 completed. {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  Waiting for server task
 completion... {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
 into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
 java.lang.NullPointerException
 at
 org.wso2.carbon.registry.indexing.RegistryConfigLoader.init(RegistryConfigLoader.java:88)
 at
 org.wso2.carbon.registry.indexing.IndexingManager.init(IndexingManager.java:68)
  at
 org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
 at
 org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
  at
 org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
 at
 org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
  at
 org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
 at
 org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:894)

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 *Kasun Gajasinghe*
 Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-08-30 Thread Ajith Vitharana
If your product is using the registry search feature, this bundle will
include to the product. If so it is must to add this configuration to the
registry.xml.
Anyway we need handle this NPE for the products which don't use the
indexing based registry search.

Please report a JIRA to handle this NPE.

Thanks
Ajith.


On Sun, Aug 31, 2014 at 2:34 AM, Firzhan Naqash firz...@wso2.com wrote:

 Hi,

 I debugged the code and the code seems to be throwing exception in the
 GREG's org.wso2.carbon.registry.indexing.RegistryConfigLoader class.

 This exception occurred because of missing XML elements in registry.xml.
 After I added the indexingConfiguration it worked fine.

  if the  file doesn't have the indexingConfiguration
 /indexingConfiguration tags.



 indexingConfiguration
 startingDelayInSeconds300/startingDelayInSeconds
 indexingFrequencyInSeconds60/indexingFrequencyInSeconds
 batchSize10/batchSize
 indexerPoolSize10/indexerPoolSize
 !-- location storing the time the indexing took place--

 lastAccessTimeLocation/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime/lastAccessTimeLocation
 indexers
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer
 mediaTypeRegEx=application/vnd.ms-excel/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer
 mediaTypeRegEx=application/vnd.ms-powerpoint/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSWordIndexer
 mediaTypeRegEx=application/msword/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PDFIndexer
 mediaTypeRegEx=application/pdf/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
 mediaTypeRegEx=application/xml/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
 mediaTypeRegEx=application/(.)+\+xml/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
 mediaTypeRegEx=text/(.)+/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
 mediaTypeRegEx=application/x-javascript/
 /indexers
 exclusions
 exclusion
 pathRegEx=/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html/
 exclusion
 pathRegEx=/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*/
 /exclusions
 /indexingConfiguration



 @subash:- Do we have to add this part to the registry.xml file in each
 product or am I missing some thing in initial configuration which is
 forcing me to add this xml tag ?




 Regards,
 Firzhan


 On Sat, Aug 30, 2014 at 11:24 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:


 Please raise a jira on this.

 Thanks.


 On Sat, Aug 30, 2014 at 10:54 PM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Malinga,

 I am also encountering the same error when I tried to shut down the
  BPSserver.

 Any luck with the above error ? Can you share your findings ?

 Regards,
 Firzhan


 On Fri, Jul 4, 2014 at 7:30 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Any idea about the following,

 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been
 completed. {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  Waiting for server task
 completion... {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
 into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
 java.lang.NullPointerException
 at
 org.wso2.carbon.registry.indexing.RegistryConfigLoader.init(RegistryConfigLoader.java:88)
 at
 org.wso2.carbon.registry.indexing.IndexingManager.init(IndexingManager.java:68)
  at
 org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
 at
 org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
  at
 org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
 at
 org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
  at
 org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
 at
 org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:894)

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 *Kasun Gajasinghe*
 Senior Software Engineer, WSO2 Inc.
 

Re: [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-08-30 Thread Firzhan Naqash
Hi,

Thanks Ajith for the detailed explanation. I have created following JIRA[1]

[1] https://wso2.org/jira/browse/REGISTRY-2291




Regards,
Firzhan


On Sun, Aug 31, 2014 at 7:53 AM, Ajith Vitharana aji...@wso2.com wrote:


 If your product is using the registry search feature, this bundle will
 include to the product. If so it is must to add this configuration to the
 registry.xml.
 Anyway we need handle this NPE for the products which don't use the
 indexing based registry search.

 Please report a JIRA to handle this NPE.

 Thanks
 Ajith.


 On Sun, Aug 31, 2014 at 2:34 AM, Firzhan Naqash firz...@wso2.com wrote:

 Hi,

 I debugged the code and the code seems to be throwing exception in the
 GREG's org.wso2.carbon.registry.indexing.RegistryConfigLoader class.

 This exception occurred because of missing XML elements in registry.xml.
 After I added the indexingConfiguration it worked fine.

  if the  file doesn't have the indexingConfiguration
 /indexingConfiguration tags.



 indexingConfiguration
 startingDelayInSeconds300/startingDelayInSeconds
 indexingFrequencyInSeconds60/indexingFrequencyInSeconds
 batchSize10/batchSize
 indexerPoolSize10/indexerPoolSize
 !-- location storing the time the indexing took place--

 lastAccessTimeLocation/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime/lastAccessTimeLocation
 indexers
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer
 mediaTypeRegEx=application/vnd.ms-excel/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer
 mediaTypeRegEx=application/vnd.ms-powerpoint/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.MSWordIndexer
 mediaTypeRegEx=application/msword/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PDFIndexer
 mediaTypeRegEx=application/pdf/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
 mediaTypeRegEx=application/xml/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.XMLIndexer
 mediaTypeRegEx=application/(.)+\+xml/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
 mediaTypeRegEx=text/(.)+/
 indexer
 class=org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer
 mediaTypeRegEx=application/x-javascript/
 /indexers
 exclusions
 exclusion
 pathRegEx=/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html/
 exclusion
 pathRegEx=/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*/
 /exclusions
 /indexingConfiguration



 @subash:- Do we have to add this part to the registry.xml file in each
 product or am I missing some thing in initial configuration which is
 forcing me to add this xml tag ?




 Regards,
 Firzhan


 On Sat, Aug 30, 2014 at 11:24 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:


 Please raise a jira on this.

 Thanks.


 On Sat, Aug 30, 2014 at 10:54 PM, Firzhan Naqash firz...@wso2.com
 wrote:

 Hi Malinga,

 I am also encountering the same error when I tried to shut down the
  BPSserver.

 Any luck with the above error ? Can you share your findings ?

 Regards,
 Firzhan


 On Fri, Jul 4, 2014 at 7:30 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Any idea about the following,

 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been
 completed. {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
 {org.wso2.carbon.core.ServerManagement} -  Waiting for server task
 completion... {org.wso2.carbon.core.ServerManagement}
 TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
 {org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
 into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
 java.lang.NullPointerException
 at
 org.wso2.carbon.registry.indexing.RegistryConfigLoader.init(RegistryConfigLoader.java:88)
 at
 org.wso2.carbon.registry.indexing.IndexingManager.init(IndexingManager.java:68)
  at
 org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
 at
 org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
  at
 org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
 at
 org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
  at
 org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
 at
 org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:894)

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

 ___
 Dev mailing list
 Dev@wso2.org
 

[Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader

2014-07-04 Thread Supun Malinga
Hi,

Any idea about the following,

TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
{org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been
completed. {org.wso2.carbon.core.ServerManagement}
TID: [0] [AS] [2014-07-04 19:10:56,219]  INFO
{org.wso2.carbon.core.ServerManagement} -  Waiting for server task
completion... {org.wso2.carbon.core.ServerManagement}
TID: [0] [AS] [2014-07-04 19:10:56,226] ERROR
{org.wso2.carbon.core.init.CarbonServerManager} -  Cannot put transports
into maintenance mode {org.wso2.carbon.core.init.CarbonServerManager}
java.lang.NullPointerException
at
org.wso2.carbon.registry.indexing.RegistryConfigLoader.init(RegistryConfigLoader.java:88)
at
org.wso2.carbon.registry.indexing.IndexingManager.init(IndexingManager.java:68)
 at
org.wso2.carbon.registry.indexing.IndexingManager.getInstance(IndexingManager.java:78)
at
org.wso2.carbon.registry.indexing.internal.IndexingServiceComponent$1.startingShutdown(IndexingServiceComponent.java:80)
 at
org.wso2.carbon.core.ServerManagement.waitForServerTaskCompletion(ServerManagement.java:113)
at
org.wso2.carbon.core.ServerManagement.startMaintenanceForShutDown(ServerManagement.java:97)
 at
org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:878)
at
org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:894)

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev