Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC9F87CF5 for ; Fri, 9 Dec 2011 10:09:09 +0000 (UTC) Received: (qmail 2926 invoked by uid 500); 9 Dec 2011 10:09:09 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 2634 invoked by uid 500); 9 Dec 2011 10:09:08 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 2576 invoked by uid 99); 9 Dec 2011 10:09:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2011 10:09:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2011 10:09:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7330B108119 for ; Fri, 9 Dec 2011 10:08:40 +0000 (UTC) Date: Fri, 9 Dec 2011 10:08:40 +0000 (UTC) From: "Timothy Ward (Resolved) (JIRA)" To: dev@aries.apache.org Message-ID: <2146327674.57362.1323425320473.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <185819539.34449.1322823580320.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (ARIES-796) PropertyPlaceHolder does not really like JPA elements MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ARIES-796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Ward resolved ARIES-796. -------------------------------- Resolution: Fixed Fix Version/s: 0.4 > PropertyPlaceHolder does not really like JPA elements > ----------------------------------------------------- > > Key: ARIES-796 > URL: https://issues.apache.org/jira/browse/ARIES-796 > Project: Aries > Issue Type: Bug > Affects Versions: blueprint-0.3.1 > Reporter: Ioannis Canellos > Assignee: Timothy Ward > Fix For: 0.4 > > Attachments: ARIES-796-patch.txt > > > When using JPA, we usally pass the EntityManagerFactory to a bean using element. > When we also define a property placeholder in the same blueprint.xml we result with tha class cast exception like the one below: > java.lang.ClassCastException: org.apache.aries.jpa.blueprint.aries.impl.NSHandler$1 cannot be cast to org.apache.aries.blueprint.mutable.MutableBeanProperty > at org.apache.aries.blueprint.ext.AbstractPropertyPlaceholder.processBeanMetadata(AbstractPropertyPlaceholder.java:116)[9:org.apache.aries.blueprint:0.3.1] > at org.apache.aries.blueprint.ext.AbstractPropertyPlaceholder.processMetadata(AbstractPropertyPlaceholder.java:91)[9:org.apache.aries.blueprint:0.3.1] > at org.apache.aries.blueprint.ext.AbstractPropertyPlaceholder.process(AbstractPropertyPlaceholder.java:85)[9:org.apache.aries.blueprint:0.3.1] > at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:495)[9:org.apache.aries.blueprint:0.3.1] > at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:314)[9:org.apache.aries.blueprint:0.3.1] > at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[9:org.apache.aries.blueprint:0.3.1] > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_29] > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_29] > at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_29] > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_29] > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_29] > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_29] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_29] > at java.lang.Thread.run(Thread.java:680)[:1.6.0_29] -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira