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 <[email protected]> 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> > <startingDelayInSeconds>300</startingDelayInSeconds> > <indexingFrequencyInSeconds>60</indexingFrequencyInSeconds> > <batchSize>10</batchSize> > <indexerPoolSize>10</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 <[email protected]> > wrote: > >> >> Please raise a jira on this. >> >> Thanks. >> >> >> On Sat, Aug 30, 2014 at 10:54 PM, Firzhan Naqash <[email protected]> >> 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 <[email protected]> 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: [email protected] <[email protected]> >>>> mobile: +94 (0)71 56 91 321 >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> 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 > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : [email protected] Mobile : +94772217350
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
