Fórumok

Error NPE al migrar de 6.1 CE ga2 a 6.2 CE ga2

Juan Carlos Toledo Baute, módosítva 9 év-val korábban

Error NPE al migrar de 6.1 CE ga2 a 6.2 CE ga2

Junior Member Bejegyzések: 50 Csatlakozás dátuma: 2011.03.30. Legújabb bejegyzések
Hola

Estoy migrando de 6.1 CE cga2 a 6.2 CE cga2 partiendo de la distribucion en war, liferay-portal-6.2-ce-ga2-20140319114139101.war

He actualizado el root de Liferay con el nuevo war y actualizado las dependencias.

He seguido los pasos recomendados en la guía

Pero se produce un error en el proceso de update de la BD.

07:50:59,714 INFO  [pool-2-thread-1][DialectDetector:71] Determine dialect for Oracle 11
07:50:59,754 INFO  [pool-2-thread-1][DialectDetector:136] Found dialect org.hibernate.dialect.Oracle10gDialect
07:51:57,501 INFO  [pool-2-thread-1][BaseDB:481] Database supports case sensitive queries
07:51:58,351 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.UpgradeProcess_6_2_0
07:51:58,353 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeSchema
07:52:06,880 WARN  [pool-2-thread-1][BaseDB:457] ORA-01418: specified index does not exist: drop index IX_8DB864A9;_ [Sanitized]
07:52:08,043 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeAnnouncements
07:52:08,077 INFO  [pool-2-thread-1][Table:155] Starting backup of AnnouncementsEntry to /opt/tomcat7_Liferay62_migra/temp/temp-db-AnnouncementsEntry-1398671528076
07:52:08,137 INFO  [pool-2-thread-1][Table:189] Finished backup of AnnouncementsEntry to /opt/tomcat7_Liferay62_migra/temp/temp-db-AnnouncementsEntry-1398671528076 in 60 ms
07:52:08,523 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeAssetPublisher
07:52:09,917 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeBlogs
07:52:10,125 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeBlogsAggregator
07:52:10,163 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeCalendar
07:52:10,955 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeCompany
07:52:11,459 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeCustomizablePortlets
07:52:11,473 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeDocumentLibrary
07:52:11,664 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeDynamicDataListDisplay
07:52:11,675 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeDynamicDataMapping
07:52:11,970 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeGroup
07:52:11,983 INFO  [pool-2-thread-1][Table:155] Starting backup of Group_ to /opt/tomcat7_Liferay62_migra/temp/temp-db-Group_-1398671531983
07:52:12,159 INFO  [pool-2-thread-1][Table:189] Finished backup of Group_ to /opt/tomcat7_Liferay62_migra/temp/temp-db-Group_-1398671531983 in 175 ms
07:52:12,787 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeImageGallery
07:52:13,007 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeJournal
07:52:13,972 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeLayout
07:52:13,985 INFO  [pool-2-thread-1][Table:155] Starting backup of Layout to /opt/tomcat7_Liferay62_migra/temp/temp-db-Layout-1398671533985
07:52:14,092 INFO  [pool-2-thread-1][Table:189] Finished backup of Layout to /opt/tomcat7_Liferay62_migra/temp/temp-db-Layout-1398671533985 in 107 ms
07:52:14,866 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeLayoutFriendlyURL
07:52:15,793 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeLayoutRevision
07:52:15,808 INFO  [pool-2-thread-1][Table:155] Starting backup of LayoutRevision to /opt/tomcat7_Liferay62_migra/temp/temp-db-LayoutRevision-1398671535808
07:52:15,825 INFO  [pool-2-thread-1][Table:189] Finished backup of LayoutRevision to /opt/tomcat7_Liferay62_migra/temp/temp-db-LayoutRevision-1398671535808 in 17 ms
07:52:16,112 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeLayoutSet
07:52:16,128 INFO  [pool-2-thread-1][Table:155] Starting backup of LayoutSet to /opt/tomcat7_Liferay62_migra/temp/temp-db-LayoutSet-1398671536128
07:52:16,867 INFO  [pool-2-thread-1][Table:189] Finished backup of LayoutSet to /opt/tomcat7_Liferay62_migra/temp/temp-db-LayoutSet-1398671536128 in 739 ms
07:52:17,549 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeLayoutSetBranch
07:52:17,566 INFO  [pool-2-thread-1][Table:155] Starting backup of LayoutSetBranch to /opt/tomcat7_Liferay62_migra/temp/temp-db-LayoutSetBranch-1398671537566
07:52:17,572 INFO  [pool-2-thread-1][Table:189] Finished backup of LayoutSetBranch to /opt/tomcat7_Liferay62_migra/temp/temp-db-LayoutSetBranch-1398671537566 in 6 ms
07:52:17,751 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeMessageBoards
07:52:18,035 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeMessageBoardsAttachments
07:52:18,239 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradePortletItem
07:52:18,254 INFO  [pool-2-thread-1][Table:155] Starting backup of PortletItem to /opt/tomcat7_Liferay62_migra/temp/temp-db-PortletItem-1398671538254
07:52:18,266 INFO  [pool-2-thread-1][Table:189] Finished backup of PortletItem to /opt/tomcat7_Liferay62_migra/temp/temp-db-PortletItem-1398671538254 in 12 ms
07:52:18,682 INFO  [pool-2-thread-1][UpgradeProcess:175] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradePortletPreferences
07:52:20,778 ERROR [pool-2-thread-1][MainServlet:209] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
	at com.liferay.portal.events.StartupAction.run(StartupAction.java:74)
	at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1238)
	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:206)
	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:181)
	at com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:162)
	at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:114)
	at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:94)
	at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:138)
	at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:61)
	at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:143)
	at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:160)
	at com.liferay.portal.events.StartupAction.run(StartupAction.java:68)
	... 20 more
Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:181)
	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:195)
	at com.liferay.portal.upgrade.UpgradeProcess_6_2_0.doUpgrade(UpgradeProcess_6_2_0.java:84)
	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:178)
	... 28 more
Caused by: java.lang.NullPointerException
	at java.lang.String.contains(String.java:2103)
	at com.liferay.portal.upgrade.v6_2_0.UpgradePortletPreferences.doUpgrade(UpgradePortletPreferences.java:75)
	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:178)
	... 31 more


Compruebo que esta recogido LPS-42000, pero alli indica que esta resuelto para la version 6.2.1 CE cga2 que es la que estoy desplegando.

Ejecuto la consulta y efectivamente devuelve valores a NULL
select portletPreferencesId, ownerId, ownerType, plid, portletId, preferences from PortletPreferences where preferences IS NULL;

A ver si alguien puede ayudarme a resolver este problema en la migración.

Saludos y gracias
Juan Carlos Toledo Baute, módosítva 9 év-val korábban

RE: Error NPE al migrar de 6.1 CE ga2 a 6.2 CE ga2

Junior Member Bejegyzések: 50 Csatlakozás dátuma: 2011.03.30. Legújabb bejegyzések
Hola

Esta migración la estoy haciendo en un entorno de test con los datos importados de producción.

Para poder seguir, he probado a eliminar los registro a null y su relacion (es un entorno de test, en produccion no podré hacerlo)


        select * from PortletPreferences where preferences IS NULL;
        select portletId, count(*) from PortletPreferences where preferences IS NULL Group by portletId;
        delete from PortletPreferences where preferences IS NULL;
        -- Los que devuelven el select del group
        delete from portlet WHERE PORTLETID = '15' or PORTLETID = '20'  or PORTLETID = '166' or PORTLETID = '167'  
       


Y el mismo error persiste.

¿ Existe alguna tabla relacionada con porlet que tambien deba limpiar ?

Necesito avanzar en el proceso de migración para comprobar el funcionamiento (sobre todo los plugins adaptados) con los datos migrados. Aunque la solución a los Null Pointer Exception sería la mejor.

Saludos
thumbnail
Alberto Chaparro, módosítva 9 év-val korábban

RE: Error NPE al migrar de 6.1 CE ga2 a 6.2 CE ga2

Liferay Master Bejegyzések: 549 Csatlakozás dátuma: 2011.04.25. Legújabb bejegyzések
Hola Juan Carlos,

En efecto, la resolución del ticket LPS-42000 está incluido en la versión que estás usando por lo que no deberías preocuparte de resolver esa incidencia por tu cuenta.

Sin embargo, analizando el punto donde da la excepción en tu caso:
at com.liferay.portal.upgrade.v6_2_0.UpgradePortletPreferences.doUpgrade(UpgradePortletPreferences.java:75)

https://github.com/liferay/liferay-portal/blob/6.2.1-ga2/portal-impl/src/com/liferay/portal/upgrade/v6_2_0/UpgradePortletPreferences.java#L75

No corresponde al mismo error ya que se está produciendo porque existe algún registro en la tabla portletPreferences cuyo campo portletId vale NULL. Vamos a proceder a abrir un ticket para analizar y resolver este asunto de cara a que esté resuelto en el futuro.

Dejo en tu mano valorar la posibilidad de borrar los registros que cumplan esa condición a modo de workaround (puedes usar un script para hacerlo en lugar de borrar los datos a mano).

Un saludo.
Juan Carlos Toledo Baute, módosítva 9 év-val korábban

RE: Error NPE al migrar de 6.1 CE ga2 a 6.2 CE ga2 (Válasz)

Junior Member Bejegyzések: 50 Csatlakozás dátuma: 2011.03.30. Legújabb bejegyzések
Hola

Como indicas el NULL en este caso es sobre el campo porletId y una vez eliminados los registros continuó la migración. Otra cosa es hacerlo en producción ya que no tengo claro si el eliminarlos puede se contraproducente.

Solucionado al aplicar ; DELETE FROM PortletPreferences where portletId IS NULL;

Bueno sigo con la migración y otro problemas.... pero eso en otro hilo de discusión.

Saludos y gracias
thumbnail
Alberto Chaparro, módosítva 9 év-val korábban

RE: Error NPE al migrar de 6.1 CE ga2 a 6.2 CE ga2

Liferay Master Bejegyzések: 549 Csatlakozás dátuma: 2011.04.25. Legújabb bejegyzések
Hola Juan Carlos,

A priori no tiene sentido un registro en la tabla portletpreferences con portletId a NULL. Se han debido crear por algún error previo pero el hecho de borrar esos registros no debe impedir el buen funcionamiento del portal. Eso sí, siempre recomendamos realizar estas operaciones a través de la API de Liferay en lugar de atacar a la base de datos directamente.

Gracias, un saludo.
thumbnail
Alberto Chaparro, módosítva 9 év-val korábban

RE: Error NPE al migrar de 6.1 CE ga2 a 6.2 CE ga2

Liferay Master Bejegyzések: 549 Csatlakozás dátuma: 2011.04.25. Legújabb bejegyzések
Hola,

Este bug ha sido finalmente resuelto en el siguiente ticket:
https://issues.liferay.com/browse/LPS-48536

Un saludo.
thumbnail
Alberto Chaparro, módosítva 8 év-val korábban

Re: [Liferay Forums][1. Instalación / Despliegue / Configuración] RE: Error

Liferay Master Bejegyzések: 549 Csatlakozás dátuma: 2011.04.25. Legújabb bejegyzések
Hola Juan Carlos,

A priori no tiene sentido un registro en la tabla *portlet*preferences con
portletId a NULL. Se han debido crear por algún error previo que
desconocemos pero el hecho de borrar esos registros no debe impedir el buen
funcionamiento del portal. Eso sí, siempre recomendamos realizar estas
operaciones a través de la API de Liferay en lugar de atacar a la base de
datos directamente.

Gracias, un saludo.


2014-06-17 12:31 GMT+02:00 Juan Carlos Toledo Baute from liferay.com <
forums@liferay.com>:

> Hola
>
> Como indicas el NULL en este caso es sobre el campo porletId y una vez
> eliminados los registros continuó la migración. Otra cosa es hacerlo en
> producción ya que no tengo claro si el eliminarlos puede se
> contraproducente.
>
> Solucionado al aplicar ; DELETE FROM PortletPreferences where portletId IS
> NULL;
>
> Bueno sigo con la migración y otro problemas.... pero eso en otro hilo de
> discusión.
>
> Saludos y gracias
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/38976820
> --
> Liferay.com <https://www.liferay.com>




--
Alberto Chaparro

Engineer, Technical Support
Subscription Services | Spain and Portugal

Liferay Spain
Liferay Enterprise. Open Source. For Life.
Tel. +34 917336343

Próximos *eventos de Liferay *en España:
*Liferay Symposium Spain 2014* <https://www.liferay.com/spain2014> - 22 y
23 de Octubre, Madrid

Próximos *cursos oficiales de Liferay*:
*Administering Liferay Systems
<https://mailtrack.io/trace/link/f6fae7455fbadbda360ee7323eb723afe9976252>* -
8 al 9 de Septiembre, Barcelona
Developing for the Liferay Platform 1
<https://mailtrack.io/trace/link/3b4f60e9b2b94314180a3296c2071f37243f855a> -
15 al 17 de Septiembre, Barcelona
Mastering Liferay Fundamentals
<https://mailtrack.io/trace/link/bd4b9c67862b0a4bb8277953742a1f49e90841c8> -
27 y 28 de Octubre, Madrid
Managing Content with Liferay
<https://mailtrack.io/trace/link/0993882057188f90917cf6d63c3b8b41ec5bd692> -
29 y 30 de Octubre, Madrid

Visit Us: www.liferay.com | Like Us: facebook.com/liferay | Follow Us:
twitter.com/liferay
thumbnail
Alberto Chaparro, módosítva 8 év-val korábban

Re: [Liferay Forums][1. Instalación / Despliegue / Configuración] RE: Error

Liferay Master Bejegyzések: 549 Csatlakozás dátuma: 2011.04.25. Legújabb bejegyzések
Hola Juan Carlos,

A priori no tiene sentido un registro en la tabla *portlet*preferences con
portletId a NULL. Se han debido crear por algún error previo que
desconocemos pero el hecho de borrar esos registros no debe impedir el buen
funcionamiento del portal. Eso sí, siempre recomendamos realizar estas
operaciones a través de la API de Liferay en lugar de atacar a la base de
datos directamente.

Gracias, un saludo.


2014-06-17 12:31 GMT+02:00 Juan Carlos Toledo Baute from liferay.com <
forums@liferay.com>:

> Hola
>
> Como indicas el NULL en este caso es sobre el campo porletId y una vez
> eliminados los registros continuó la migración. Otra cosa es hacerlo en
> producción ya que no tengo claro si el eliminarlos puede se
> contraproducente.
>
> Solucionado al aplicar ; DELETE FROM PortletPreferences where portletId IS
> NULL;
>
> Bueno sigo con la migración y otro problemas.... pero eso en otro hilo de
> discusión.
>
> Saludos y gracias
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/38976820
> --
> Liferay.com <https://www.liferay.com>




--
Alberto Chaparro

Engineer, Technical Support
Subscription Services | Spain and Portugal

Liferay Spain
Liferay Enterprise. Open Source. For Life.
Tel. +34 917336343

Próximos *eventos de Liferay *en España:
*Liferay Symposium Spain 2014* <https://www.liferay.com/spain2014> - 22 y
23 de Octubre, Madrid

Próximos *cursos oficiales de Liferay*:
*Administering Liferay Systems
<https://mailtrack.io/trace/link/f6fae7455fbadbda360ee7323eb723afe9976252>* -
8 al 9 de Septiembre, Barcelona
Developing for the Liferay Platform 1
<https://mailtrack.io/trace/link/3b4f60e9b2b94314180a3296c2071f37243f855a> -
15 al 17 de Septiembre, Barcelona
Mastering Liferay Fundamentals
<https://mailtrack.io/trace/link/bd4b9c67862b0a4bb8277953742a1f49e90841c8> -
27 y 28 de Octubre, Madrid
Managing Content with Liferay
<https://mailtrack.io/trace/link/0993882057188f90917cf6d63c3b8b41ec5bd692> -
29 y 30 de Octubre, Madrid

Visit Us: www.liferay.com | Like Us: facebook.com/liferay | Follow Us:
twitter.com/liferay
thumbnail
Alberto Chaparro, módosítva 8 év-val korábban

Re: [Liferay Forums][1. Instalación / Despliegue / Configuración] RE: Error

Liferay Master Bejegyzések: 549 Csatlakozás dátuma: 2011.04.25. Legújabb bejegyzések
Hola Juan Carlos,

A priori no tiene sentido un registro en la tabla *portlet*preferences con
portletId a NULL. Se han debido crear por algún error previo que
desconocemos pero el hecho de borrar esos registros no debe impedir el buen
funcionamiento del portal. Eso sí, siempre recomendamos realizar estas
operaciones a través de la API de Liferay en lugar de atacar a la base de
datos directamente.

Gracias, un saludo.


2014-06-17 12:31 GMT+02:00 Juan Carlos Toledo Baute from liferay.com <
forums@liferay.com>:

> Hola
>
> Como indicas el NULL en este caso es sobre el campo porletId y una vez
> eliminados los registros continuó la migración. Otra cosa es hacerlo en
> producción ya que no tengo claro si el eliminarlos puede se
> contraproducente.
>
> Solucionado al aplicar ; DELETE FROM PortletPreferences where portletId IS
> NULL;
>
> Bueno sigo con la migración y otro problemas.... pero eso en otro hilo de
> discusión.
>
> Saludos y gracias
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/38976820
> --
> Liferay.com <https://www.liferay.com>




--
Alberto Chaparro

Engineer, Technical Support
Subscription Services | Spain and Portugal

Liferay Spain
Liferay Enterprise. Open Source. For Life.
Tel. +34 917336343

Próximos *eventos de Liferay *en España:
*Liferay Symposium Spain 2014* <https://www.liferay.com/spain2014> - 22 y
23 de Octubre, Madrid

Próximos *cursos oficiales de Liferay*:
*Administering Liferay Systems
<https://mailtrack.io/trace/link/f6fae7455fbadbda360ee7323eb723afe9976252>* -
8 al 9 de Septiembre, Barcelona
Developing for the Liferay Platform 1
<https://mailtrack.io/trace/link/3b4f60e9b2b94314180a3296c2071f37243f855a> -
15 al 17 de Septiembre, Barcelona
Mastering Liferay Fundamentals
<https://mailtrack.io/trace/link/bd4b9c67862b0a4bb8277953742a1f49e90841c8> -
27 y 28 de Octubre, Madrid
Managing Content with Liferay
<https://mailtrack.io/trace/link/0993882057188f90917cf6d63c3b8b41ec5bd692> -
29 y 30 de Octubre, Madrid

Visit Us: www.liferay.com | Like Us: facebook.com/liferay | Follow Us:
twitter.com/liferay
thumbnail
Alberto Chaparro, módosítva 8 év-val korábban

Re: [Liferay Forums][1. Instalación / Despliegue / Configuración] RE: Error

Liferay Master Bejegyzések: 549 Csatlakozás dátuma: 2011.04.25. Legújabb bejegyzések
Hola Juan Carlos,

A priori no tiene sentido un registro en la tabla *portlet*preferences con
portletId a NULL. Se han debido crear por algún error previo que
desconocemos pero el hecho de borrar esos registros no debe impedir el buen
funcionamiento del portal. Eso sí, siempre recomendamos realizar estas
operaciones a través de la API de Liferay en lugar de atacar a la base de
datos directamente.

Gracias, un saludo.


2014-06-17 12:31 GMT+02:00 Juan Carlos Toledo Baute from liferay.com <
forums@liferay.com>:

> Hola
>
> Como indicas el NULL en este caso es sobre el campo porletId y una vez
> eliminados los registros continuó la migración. Otra cosa es hacerlo en
> producción ya que no tengo claro si el eliminarlos puede se
> contraproducente.
>
> Solucionado al aplicar ; DELETE FROM PortletPreferences where portletId IS
> NULL;
>
> Bueno sigo con la migración y otro problemas.... pero eso en otro hilo de
> discusión.
>
> Saludos y gracias
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/38976820
> --
> Liferay.com <https://www.liferay.com>




--
Alberto Chaparro

Engineer, Technical Support
Subscription Services | Spain and Portugal

Liferay Spain
Liferay Enterprise. Open Source. For Life.
Tel. +34 917336343

Próximos *eventos de Liferay *en España:
*Liferay Symposium Spain 2014* <https://www.liferay.com/spain2014> - 22 y
23 de Octubre, Madrid

Próximos *cursos oficiales de Liferay*:
*Administering Liferay Systems
<https://mailtrack.io/trace/link/f6fae7455fbadbda360ee7323eb723afe9976252>* -
8 al 9 de Septiembre, Barcelona
Developing for the Liferay Platform 1
<https://mailtrack.io/trace/link/3b4f60e9b2b94314180a3296c2071f37243f855a> -
15 al 17 de Septiembre, Barcelona
Mastering Liferay Fundamentals
<https://mailtrack.io/trace/link/bd4b9c67862b0a4bb8277953742a1f49e90841c8> -
27 y 28 de Octubre, Madrid
Managing Content with Liferay
<https://mailtrack.io/trace/link/0993882057188f90917cf6d63c3b8b41ec5bd692> -
29 y 30 de Octubre, Madrid

Visit Us: www.liferay.com | Like Us: facebook.com/liferay | Follow Us:
twitter.com/liferay
thumbnail
Alberto Chaparro, módosítva 8 év-val korábban

Re: [Liferay Forums][1. Instalación / Despliegue / Configuración] RE: Error

Liferay Master Bejegyzések: 549 Csatlakozás dátuma: 2011.04.25. Legújabb bejegyzések
Hola Juan Carlos,

A priori no tiene sentido un registro en la tabla *portlet*preferences con
portletId a NULL. Se han debido crear por algún error previo que
desconocemos pero el hecho de borrar esos registros no debe impedir el buen
funcionamiento del portal. Eso sí, siempre recomendamos realizar estas
operaciones a través de la API de Liferay en lugar de atacar a la base de
datos directamente.

Gracias, un saludo.


2014-06-17 12:31 GMT+02:00 Juan Carlos Toledo Baute from liferay.com <
forums@liferay.com>:

> Hola
>
> Como indicas el NULL en este caso es sobre el campo porletId y una vez
> eliminados los registros continuó la migración. Otra cosa es hacerlo en
> producción ya que no tengo claro si el eliminarlos puede se
> contraproducente.
>
> Solucionado al aplicar ; DELETE FROM PortletPreferences where portletId IS
> NULL;
>
> Bueno sigo con la migración y otro problemas.... pero eso en otro hilo de
> discusión.
>
> Saludos y gracias
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/38976820
> --
> Liferay.com <https://www.liferay.com>




--
Alberto Chaparro

Engineer, Technical Support
Subscription Services | Spain and Portugal

Liferay Spain
Liferay Enterprise. Open Source. For Life.
Tel. +34 917336343

Próximos *eventos de Liferay *en España:
*Liferay Symposium Spain 2014* <https://www.liferay.com/spain2014> - 22 y
23 de Octubre, Madrid

Próximos *cursos oficiales de Liferay*:
*Administering Liferay Systems
<https://mailtrack.io/trace/link/f6fae7455fbadbda360ee7323eb723afe9976252>* -
8 al 9 de Septiembre, Barcelona
Developing for the Liferay Platform 1
<https://mailtrack.io/trace/link/3b4f60e9b2b94314180a3296c2071f37243f855a> -
15 al 17 de Septiembre, Barcelona
Mastering Liferay Fundamentals
<https://mailtrack.io/trace/link/bd4b9c67862b0a4bb8277953742a1f49e90841c8> -
27 y 28 de Octubre, Madrid
Managing Content with Liferay
<https://mailtrack.io/trace/link/0993882057188f90917cf6d63c3b8b41ec5bd692> -
29 y 30 de Octubre, Madrid

Visit Us: www.liferay.com | Like Us: facebook.com/liferay | Follow Us:
twitter.com/liferay
thumbnail
Alberto Chaparro, módosítva 8 év-val korábban

Re: [Liferay Forums][1. Instalación / Despliegue / Configuración] RE: Error

Liferay Master Bejegyzések: 549 Csatlakozás dátuma: 2011.04.25. Legújabb bejegyzések
Hola Juan Carlos,

A priori no tiene sentido un registro en la tabla *portlet*preferences con
portletId a NULL. Se han debido crear por algún error previo que
desconocemos pero el hecho de borrar esos registros no debe impedir el buen
funcionamiento del portal. Eso sí, siempre recomendamos realizar estas
operaciones a través de la API de Liferay en lugar de atacar a la base de
datos directamente.

Gracias, un saludo.


2014-06-17 12:31 GMT+02:00 Juan Carlos Toledo Baute from liferay.com <
forums@liferay.com>:

> Hola
>
> Como indicas el NULL en este caso es sobre el campo porletId y una vez
> eliminados los registros continuó la migración. Otra cosa es hacerlo en
> producción ya que no tengo claro si el eliminarlos puede se
> contraproducente.
>
> Solucionado al aplicar ; DELETE FROM PortletPreferences where portletId IS
> NULL;
>
> Bueno sigo con la migración y otro problemas.... pero eso en otro hilo de
> discusión.
>
> Saludos y gracias
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/38976820
> --
> Liferay.com <https://www.liferay.com>




--
Alberto Chaparro

Engineer, Technical Support
Subscription Services | Spain and Portugal

Liferay Spain
Liferay Enterprise. Open Source. For Life.
Tel. +34 917336343

Próximos *eventos de Liferay *en España:
*Liferay Symposium Spain 2014* <https://www.liferay.com/spain2014> - 22 y
23 de Octubre, Madrid

Próximos *cursos oficiales de Liferay*:
*Administering Liferay Systems
<https://mailtrack.io/trace/link/f6fae7455fbadbda360ee7323eb723afe9976252>* -
8 al 9 de Septiembre, Barcelona
Developing for the Liferay Platform 1
<https://mailtrack.io/trace/link/3b4f60e9b2b94314180a3296c2071f37243f855a> -
15 al 17 de Septiembre, Barcelona
Mastering Liferay Fundamentals
<https://mailtrack.io/trace/link/bd4b9c67862b0a4bb8277953742a1f49e90841c8> -
27 y 28 de Octubre, Madrid
Managing Content with Liferay
<https://mailtrack.io/trace/link/0993882057188f90917cf6d63c3b8b41ec5bd692> -
29 y 30 de Octubre, Madrid

Visit Us: www.liferay.com | Like Us: facebook.com/liferay | Follow Us:
twitter.com/liferay