{"action":"created","issue":{"url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/15","repository_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch","labels_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/15/comments","events_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/15/events","html_url":"https://github.com/mincong-h/gsoc-hsearch/issues/15","id":157991607,"number":15,"title":"Unaware how to convert value [[I@58e8ec60 : [I] to requested type [java.lang.Integer]","user":{"login":"mincong-h","id":10179217,"avatar_url":"https://avatars.githubusercontent.com/u/10179217?v=3","gravatar_id":"","url":"https://api.github.com/users/mincong-h","html_url":"https://github.com/mincong-h","followers_url":"https://api.github.com/users/mincong-h/followers","following_url":"https://api.github.com/users/mincong-h/following{/other_user}","gists_url":"https://api.github.com/users/mincong-h/gists{/gist_id}","starred_url":"https://api.github.com/users/mincong-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mincong-h/subscriptions","organizations_url":"https://api.github.com/users/mincong-h/orgs","repos_url":"https://api.github.com/users/mincong-h/repos","events_url":"https://api.github.com/users/mincong-h/events{/privacy}","received_events_url":"https://api.github.com/users/mincong-h/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-01T19:49:04Z","updated_at":"2016-06-01T19:51:40Z","closed_at":null,"body":"During the batch execution, an error occurs saying \r\n\r\n> Unaware how to convert value [[I@58e8ec60 : [I] to requested type [java.lang.Integer]\r\n\r\nIt comes from the below code : \r\n\r\n```java\r\nint[] ids = toIntArray((Serializable[]) item);\r\nList<Address> addresses = null;\r\nCriteriaQuery<Address> q = em.getCriteriaBuilder().createQuery(Address.class);\r\nRoot<Address> address_ = q.from(Address.class);\r\nq.where(address_.get(\"addressId\").in(ids));\r\naddresses = em.createQuery(q).getResultList();\r\nreturn addresses;\r\n```\r\n\r\n```\r\n21:46:39,805 ERROR [org.jberet] (Batch Thread - 4) JBERET000007: Failed to run job massIndex, produceLuceneDoc, org.jberet.job.model.Chunk@29ad3f8b: java.lang.IllegalArgumentException: Unaware how to convert value [[I@58e8ec60 : [I] to requested type [java.lang.Integer]\r\n\tat org.hibernate.jpa.criteria.ValueHandlerFactory.unknownConversion(ValueHandlerFactory.java:263)\r\n\tat org.hibernate.jpa.criteria.ValueHandlerFactory.access$000(ValueHandlerFactory.java:17)\r\n\tat org.hibernate.jpa.criteria.ValueHandlerFactory$IntegerValueHandler.convert(ValueHandlerFactory.java:122)\r\n\tat org.hibernate.jpa.criteria.ValueHandlerFactory$IntegerValueHandler.convert(ValueHandlerFactory.java:109)\r\n\tat org.hibernate.jpa.criteria.predicate.InPredicate.<init>(InPredicate.java:114)\r\n\tat org.hibernate.jpa.criteria.predicate.InPredicate.<init>(InPredicate.java:91)\r\n\tat org.hibernate.jpa.criteria.CriteriaBuilderImpl.in(CriteriaBuilderImpl.java:512)\r\n\tat org.hibernate.jpa.criteria.expression.ExpressionImpl.in(ExpressionImpl.java:52)\r\n\tat io.github.mincongh.batch.BatchItemProcessor.processItem(BatchItemProcessor.java:86)\r\n\tat org.jberet.runtime.runner.ChunkRunner.processItem(ChunkRunner.java:403)\r\n\tat org.jberet.runtime.runner.ChunkRunner.readProcessWriteItems(ChunkRunner.java:309)\r\n\tat org.jberet.runtime.runner.ChunkRunner.run(ChunkRunner.java:201)\r\n\tat org.wildfly.extension.batch.jberet.impl.BatchEnvironmentService$WildFlyBatchEnvironment$1.run(BatchEnvironmentService.java:243)\r\n\tat org.wildfly.extension.requestcontroller.RequestController$QueuedTask$1.run(RequestController.java:497)\r\n\tat org.jberet.spi.JobExecutor$3.run(JobExecutor.java:161)\r\n\tat org.jberet.spi.JobExecutor$1.run(JobExecutor.java:99)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\tat org.jboss.threads.JBossThread.run(JBossThread.java:320)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/comments/223104986","html_url":"https://github.com/mincong-h/gsoc-hsearch/issues/15#issuecomment-223104986","issue_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/15","id":223104986,"user":{"login":"mincong-h","id":10179217,"avatar_url":"https://avatars.githubusercontent.com/u/10179217?v=3","gravatar_id":"","url":"https://api.github.com/users/mincong-h","html_url":"https://github.com/mincong-h","followers_url":"https://api.github.com/users/mincong-h/followers","following_url":"https://api.github.com/users/mincong-h/following{/other_user}","gists_url":"https://api.github.com/users/mincong-h/gists{/gist_id}","starred_url":"https://api.github.com/users/mincong-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mincong-h/subscriptions","organizations_url":"https://api.github.com/users/mincong-h/orgs","repos_url":"https://api.github.com/users/mincong-h/repos","events_url":"https://api.github.com/users/mincong-h/events{/privacy}","received_events_url":"https://api.github.com/users/mincong-h/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T19:51:40Z","updated_at":"2016-06-01T19:51:40Z","body":"It seems that it worked yesterday with the same code. And I don't really understand the problem ... "}}
{"actor":{"display_login":"mincong-h"}}