java.lang.StringIndexOutOfBoundsException

tip

You need to make sure that capitalisation of the case for the plugin in the
properties file is exactly: "AllocinePlugin" and not "allocineplugin"

tip

This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • The installation instructions at http://code.google.com/p/toro-channels/wiki/Installation pass for uPortal 2.6 M1, but fail for both RC1 and RC2 First the install fails because PersonDirs.xml is not present. mergeUPortalConfiguration: [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/groups/compositeGroupServices.xml [java] Replacing text at path: /servicelist/service[name='local']/service_factory with: net.unicon.portal.groups.framework.eve.caching.CachingGroupServiceFactory [java] Replacing text at path: /servicelist/service[name='local']/entity_store_factory with: net.unicon.portal.groups.framework.eve.EntityStoreFactory [java] Replacing text at path: /servicelist/service[name='local']/group_store_factory with: net.unicon.portal.groups.framework.eve.GroupStoreFactory [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/personDirectory.xml [java] Replacing node at path: /beans/bean[@id='personAttributeDao'] [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/PersonDirs.xml [java] java.io.FileNotFoundException: /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/PersonDirs.xml (No such file or directory) [java] at java.io.FileInputStream.open(Native Method) [java] at java.io.FileInputStream.<init>(FileInputStream.java:106) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.backupOriginalFile(MergeUPortalConfiguration.java:332) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeXmlChanges(MergeUPortalConfiguration.java:162) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeChanges(MergeUPortalConfiguration.java:120) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.execute(MergeUPortalConfiguration.java:109) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.main(MergeUPortalConfiguration.java:359) Copying the PersonDirs.xml file from the M1 snapshot into basedir/src/portal/properties/PersonDirs.xml fixes the issue for RC1, and the portal successfully installs. However, the RC2 install still fails even after providing the PersonDirs.xml file. Error below: mergeUPortalConfiguration: [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/groups/compositeGroupServices.xml [java] Replacing text at path: /servicelist/service[name='local']/service_factory with: net.unicon.portal.groups.framework.eve.caching.CachingGroupServiceFactory [java] Replacing text at path: /servicelist/service[name='local']/entity_store_factory with: net.unicon.portal.groups.framework.eve.EntityStoreFactory [java] Replacing text at path: /servicelist/service[name='local']/group_store_factory with: net.unicon.portal.groups.framework.eve.GroupStoreFactory [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/personDirectory.xml [java] Replacing node at path: /beans/bean[@id='personAttributeDao'] [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/PersonDirs.xml [java] Replacing node at path: /PersonDirs [java] Merging properties changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/portal.properties [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/services.xml [java] Merging properties changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/worker.properties [java] Merging web.xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/web.xml [java] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 [java] at java.lang.String.substring(String.java:1768) [java] at net.unicon.portal.tools.MergeUPortalConfiguration$DtdAwareSAXWriter.write(MergeUPortalConfiguration.java:610) [java] at org.dom4j.io.SAXWriter.parse(SAXWriter.java:603) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeWebChanges(MergeUPortalConfiguration.java:312) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeChanges(MergeUPortalConfiguration.java:118) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.execute(MergeUPortalConfiguration.java:109) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.main(MergeUPortalConfiguration.java:359) [java] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 [java] at java.lang.String.substring(String.java:1768) [java] at net.unicon.portal.tools.MergeUPortalConfiguration$DtdAwareSAXWriter.write(MergeUPortalConfiguration.java:610) [java] at org.dom4j.io.SAXWriter.parse(SAXWriter.java:603) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeWebChanges(MergeUPortalConfiguration.java:312) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeChanges(MergeUPortalConfiguration.java:118) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.execute(MergeUPortalConfiguration.java:109) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.main(MergeUPortalConfiguration.java:359)
    via by Michael,
  • The installation instructions at http://code.google.com/p/toro-channels/wiki/Installation pass for uPortal 2.6 M1, but fail for both RC1 and RC2 First the install fails because PersonDirs.xml is not present. mergeUPortalConfiguration: [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/groups/compositeGroupServices.xml [java] Replacing text at path: /servicelist/service[name='local']/service_factory with: net.unicon.portal.groups.framework.eve.caching.CachingGroupServiceFactory [java] Replacing text at path: /servicelist/service[name='local']/entity_store_factory with: net.unicon.portal.groups.framework.eve.EntityStoreFactory [java] Replacing text at path: /servicelist/service[name='local']/group_store_factory with: net.unicon.portal.groups.framework.eve.GroupStoreFactory [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/personDirectory.xml [java] Replacing node at path: /beans/bean[@id='personAttributeDao'] [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/PersonDirs.xml [java] java.io.FileNotFoundException: /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/PersonDirs.xml (No such file or directory) [java] at java.io.FileInputStream.open(Native Method) [java] at java.io.FileInputStream.<init>(FileInputStream.java:106) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.backupOriginalFile(MergeUPortalConfiguration.java:332) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeXmlChanges(MergeUPortalConfiguration.java:162) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeChanges(MergeUPortalConfiguration.java:120) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.execute(MergeUPortalConfiguration.java:109) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.main(MergeUPortalConfiguration.java:359) Copying the PersonDirs.xml file from the M1 snapshot into basedir/src/portal/properties/PersonDirs.xml fixes the issue for RC1, and the portal successfully installs. However, the RC2 install still fails even after providing the PersonDirs.xml file. Error below: mergeUPortalConfiguration: [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/groups/compositeGroupServices.xml [java] Replacing text at path: /servicelist/service[name='local']/service_factory with: net.unicon.portal.groups.framework.eve.caching.CachingGroupServiceFactory [java] Replacing text at path: /servicelist/service[name='local']/entity_store_factory with: net.unicon.portal.groups.framework.eve.EntityStoreFactory [java] Replacing text at path: /servicelist/service[name='local']/group_store_factory with: net.unicon.portal.groups.framework.eve.GroupStoreFactory [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/personDirectory.xml [java] Replacing node at path: /beans/bean[@id='personAttributeDao'] [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/PersonDirs.xml [java] Replacing node at path: /PersonDirs [java] Merging properties changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/portal.properties [java] Merging xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/services.xml [java] Merging properties changes to /home/webservice/tomcat/webapps/portal/WEB-INF/classes/properties/worker.properties [java] Merging web.xml changes to /home/webservice/tomcat/webapps/portal/WEB-INF/web.xml [java] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 [java] at java.lang.String.substring(String.java:1768) [java] at net.unicon.portal.tools.MergeUPortalConfiguration$DtdAwareSAXWriter.write(MergeUPortalConfiguration.java:610) [java] at org.dom4j.io.SAXWriter.parse(SAXWriter.java:603) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeWebChanges(MergeUPortalConfiguration.java:312) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeChanges(MergeUPortalConfiguration.java:118) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.execute(MergeUPortalConfiguration.java:109) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.main(MergeUPortalConfiguration.java:359) [java] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 [java] at java.lang.String.substring(String.java:1768) [java] at net.unicon.portal.tools.MergeUPortalConfiguration$DtdAwareSAXWriter.write(MergeUPortalConfiguration.java:610) [java] at org.dom4j.io.SAXWriter.parse(SAXWriter.java:603) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeWebChanges(MergeUPortalConfiguration.java:312) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.mergeChanges(MergeUPortalConfiguration.java:118) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.execute(MergeUPortalConfiguration.java:109) [java] at net.unicon.portal.tools.MergeUPortalConfiguration.main(MergeUPortalConfiguration.java:359)
    via by Michael,
  • ArrayOutofBound Exception not caught
    via Stack Overflow by Monojeet Nayak
    ,
  • RESTEasy / Mailing Lists
    via by Unknown author,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1768) at net.unicon.portal.tools.MergeUPortalConfiguration$DtdAwareSAXWriter.write(MergeUPortalConfiguration.java:610) at org.dom4j.io.SAXWriter.parse(SAXWriter.java:603) at net.unicon.portal.tools.MergeUPortalConfiguration.mergeWebChanges(MergeUPortalConfiguration.java:312) at net.unicon.portal.tools.MergeUPortalConfiguration.mergeChanges(MergeUPortalConfiguration.java:118) at net.unicon.portal.tools.MergeUPortalConfiguration.execute(MergeUPortalConfiguration.java:109) at net.unicon.portal.tools.MergeUPortalConfiguration.main(MergeUPortalConfiguration.java:359)

    Users with the same issue

    zsamboki
    1 times, last one,
    osvzs
    2 times, last one,
    richard77
    2 times, last one,
    MoYapro
    1 times, last one,
    kjhdofjosvs
    2 times, last one,
    92 more bugmates