Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从HSQL迁移到PostgreSQL后尝试启动Liferay时发生IOException_Postgresql_Liferay_Database Migration_Hsqldb_Ioexception - Fatal编程技术网

从HSQL迁移到PostgreSQL后尝试启动Liferay时发生IOException

从HSQL迁移到PostgreSQL后尝试启动Liferay时发生IOException,postgresql,liferay,database-migration,hsqldb,ioexception,Postgresql,Liferay,Database Migration,Hsqldb,Ioexception,我将本机lportalDB从高超音速转换为PostgreSQL。使用我的PostgreSQL配置添加了portal-ext.properties文件,并将PostgreSQL-42.1.1添加到D:\files\liferay-ce-portal-7.0-ga3\tomcat-8.0.32\lib\ext # PostgreSQL # jdbc.default.driverClassName=org.postgresql.Driver jdbc.default.url=jdbc:postgres

我将本机
lportal
DB从高超音速转换为PostgreSQL。使用我的PostgreSQL配置添加了
portal-ext.properties
文件,并将
PostgreSQL-42.1.1
添加到
D:\files\liferay-ce-portal-7.0-ga3\tomcat-8.0.32\lib\ext

# PostgreSQL
#
jdbc.default.driverClassName=org.postgresql.Driver
jdbc.default.url=jdbc:postgresql://localhost:5432/test
jdbc.default.username=postgres
jdbc.default.password=root
当我开始我的生活时,它向我展示了一个例外。但是,如果我删除
portal-ext.properties
它会正常工作!什么问题

  08:36:35,748 ERROR [Framework Event Dispatcher: Equinox Container: c01a6f97-9234-0017-1185-a19cbf92201a][com_liferay_portal_configuration_persistence:97] FrameworkEvent ERROR 
org.osgi.framework.BundleException: Exception in com.liferay.portal.configuration.persistence.activator.ConfigurationPersistenceBundleActivator.start() of bundle com.liferay.portal.configuration.persistence.
    at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:795)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:724)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:951)
    at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:328)
    at org.eclipse.osgi.container.Module.doStart(Module.java:566)
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.io.IOException: Unexpected token 78; expected: 61 (line=0, pos=435)
    at org.apache.felix.cm.file.ConfigurationHandler.readFailure(ConfigurationHandler.java:698)
    at org.apache.felix.cm.file.ConfigurationHandler.readInternal(ConfigurationHandler.java:302)
    at org.apache.felix.cm.file.ConfigurationHandler.read(ConfigurationHandler.java:265)
    at com.liferay.portal.configuration.persistence.ConfigurationPersistenceManager.toDictionary(ConfigurationPersistenceManager.java:536)
    at com.liferay.portal.configuration.persistence.ConfigurationPersistenceManager.populateDictionaries(ConfigurationPersistenceManager.java:454)
    at com.liferay.portal.configuration.persistence.ConfigurationPersistenceManager.start(ConfigurationPersistenceManager.java:173)
    at com.liferay.portal.configuration.persistence.activator.ConfigurationPersistenceBundleActivator.start(ConfigurationPersistenceBundleActivator.java:63)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:774)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:767)
    ... 12 more

我在从hsqldb迁移到mysql时遇到了同样的问题。 在我的例子中,问题出现在相对于ldap服务器配置的配置表中的json字符串中。
我通过从数据迁移脚本中删除与ldap配置服务器相关的2行来解决这个问题。

请提供一些基于OP文章的示例来支持您的答案