New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error person with allocine #110

Closed
jluc2808 opened this Issue Sep 12, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@jluc2808
Member

jluc2808 commented Sep 12, 2014

[23:59:23] ERROR org.yamj.core.service.metadata.online.AllocineScanner - Can't find informations for person with id 95827
[23:59:49] ERROR org.yamj.core.service.metadata.online.AllocineApiWrapper - Failed retrieving Allocine infos for person: 430722
[23:59:59] ERROR org.yamj.core.service.metadata.online.AllocineApiWrapper - Allocine error
org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
at org.apache.http.impl.conn.PoolingClientConnectionManager.leaseConnection(PoolingClientConnectionManager.java:232)
at org.apache.http.impl.conn.PoolingClientConnectionManager$1.getConnection(PoolingClientConnectionManager.java:199)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:456)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at org.yamj.core.tools.web.PoolingHttpClient.requestContent(PoolingHttpClient.java:104)
at com.moviejukebox.allocine.AllocineApi.readJsonObject(AllocineApi.java:139)
at com.moviejukebox.allocine.AllocineApi.getPersonInfos(AllocineApi.java:271)
at org.yamj.core.service.metadata.online.AllocineApiWrapper.getPersonInfos(AllocineApiWrapper.java:262)
at org.yamj.core.service.metadata.online.AllocineScanner.scan(AllocineScanner.java:486)
at org.yamj.core.service.metadata.online.OnlineScannerService.scanPerson(OnlineScannerService.java:223)
at org.yamj.core.service.metadata.MetadataScannerService.scanPerson(MetadataScannerService.java:104)
at org.yamj.core.service.metadata.MetadataScannerRunner.run(MetadataScannerRunner.java:54)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[23:59:59] ERROR org.yamj.core.service.metadata.online.AllocineScanner - Can't find informations for person with id 430722

@modmax

This comment has been minimized.

Show comment
Hide comment
@modmax

modmax Sep 12, 2014

Member

I had also some problems with that.
After several person scrapings the HTTP connections are timed out.

Couldn't figure out if the allocine api sends the requests into a sandbox after requesting to much within the same connection or the http client connection breaks.

Perhaps setting the yamj3.scheduler.peoplescan.maxResults to 20 will solve the problem.

I will investigate the problem

Member

modmax commented Sep 12, 2014

I had also some problems with that.
After several person scrapings the HTTP connections are timed out.

Couldn't figure out if the allocine api sends the requests into a sandbox after requesting to much within the same connection or the http client connection breaks.

Perhaps setting the yamj3.scheduler.peoplescan.maxResults to 20 will solve the problem.

I will investigate the problem

@modmax modmax closed this in 909e862 Sep 13, 2014

@jluc2808

This comment has been minimized.

Show comment
Hide comment
@jluc2808

jluc2808 Sep 13, 2014

Member

some more error with the last version
[01:14:26] WARN org.yamj.core.database.service.MetadataStorageService - Update located artworkArtwork [ID=407, type=POSTER, movie-id='12 Years A Slave_2013']
[01:14:26] WARN org.yamj.core.database.service.MetadataStorageService - stored located artworkArtwork [ID=407, type=POSTER, movie-id='12 Years A Slave_2013']
[01:14:50] ERROR org.yamj.core.service.artwork.ArtworkScannerService - Failed storing artwork 10071-PHOTO
[01:14:50] WARN org.yamj.core.service.artwork.ArtworkScannerService - Storage error
org.springframework.orm.hibernate4.HibernateSystemException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243; nested exception is org.hibernate.HibernateException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243
at org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:185)
at org.springframework.orm.hibernate4.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:678)
at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:560)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:755)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:724)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:475)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:270)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:633)
at org.yamj.core.database.service.ArtworkStorageService$$EnhancerBySpringCGLIB$$28ee9239.updateArtwork()
at org.yamj.core.service.artwork.ArtworkScannerService.scanArtwork(ArtworkScannerService.java:146)
at org.yamj.core.service.artwork.ArtworkScannerRunner.run(ArtworkScannerRunner.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.hibernate.HibernateException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243
at org.hibernate.event.internal.DefaultFlushEntityEventListener.checkNaturalId(DefaultFlushEntityEventListener.java:124)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:200)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:157)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:230)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:100)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1159)
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:404)
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175)
at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:552)
... 13 more

Member

jluc2808 commented Sep 13, 2014

some more error with the last version
[01:14:26] WARN org.yamj.core.database.service.MetadataStorageService - Update located artworkArtwork [ID=407, type=POSTER, movie-id='12 Years A Slave_2013']
[01:14:26] WARN org.yamj.core.database.service.MetadataStorageService - stored located artworkArtwork [ID=407, type=POSTER, movie-id='12 Years A Slave_2013']
[01:14:50] ERROR org.yamj.core.service.artwork.ArtworkScannerService - Failed storing artwork 10071-PHOTO
[01:14:50] WARN org.yamj.core.service.artwork.ArtworkScannerService - Storage error
org.springframework.orm.hibernate4.HibernateSystemException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243; nested exception is org.hibernate.HibernateException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243
at org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:185)
at org.springframework.orm.hibernate4.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:678)
at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:560)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:755)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:724)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:475)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:270)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:633)
at org.yamj.core.database.service.ArtworkStorageService$$EnhancerBySpringCGLIB$$28ee9239.updateArtwork()
at org.yamj.core.service.artwork.ArtworkScannerService.scanArtwork(ArtworkScannerService.java:146)
at org.yamj.core.service.artwork.ArtworkScannerRunner.run(ArtworkScannerRunner.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.hibernate.HibernateException: An immutable natural identifier of entity org.yamj.core.database.model.Artwork was altered from org.yamj.core.database.model.Person#9243 to org.yamj.core.database.model.Person#9243
at org.hibernate.event.internal.DefaultFlushEntityEventListener.checkNaturalId(DefaultFlushEntityEventListener.java:124)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:200)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:157)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:230)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:100)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1159)
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:404)
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175)
at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:552)
... 13 more

@jluc2808 jluc2808 reopened this Sep 13, 2014

@modmax modmax closed this in cd4bcb0 Sep 14, 2014

@modmax modmax referenced this issue Sep 14, 2014

Closed

error for PHOTO #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment