[JBoss jBPM] - Re: PVM HibernateLongVariable
by frantisek.kocun@gmail.com
There was a bug in method VariableTypesBinding.parseTypeMapping(). It expected "class" attribute in xml to be set to "persisted" and I chcnged it to "hibernate":
// if type="hibernate"
| } else if ("hibernate".equals(className)) {
But I think code in HibernateLongIdMatcher is broken as well.
if (environment!=null) {
| SessionFactory sessionFactory = (SessionFactory) environment.get("hibernate.session.factory");
| if (sessionFactory!=null) {
| ClassMetadata classMetadata = sessionFactory.getClassMetadata(value.getClass());
| matches = ( (classMetadata!=null)
| && (classMetadata.getIdentifierType().getClass()==LongType.class)
| );
| }
First you should to ask if value is not a HibernateProxy cos in that case you wont get any metadata (as done in jBPM 3)..
| Class valueClass = value.getClass();
| if (value instanceof HibernateProxy) {
| valueClass = valueClass.getSuperclass();
| }
And second. How can you get SessionFactory from envoronment? The interface has only addContext(Context) method and SessionFactory does not implemenst Context. But maybe I shoul implement my own Environment and fill it in another way than throgh Environment interface. Maybe my bad.
What do you think?
Thanks
Fero
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213874#4213874
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213874
15 years, 11 months
[JBossWS] - Could not find MessageBodyWriter for class java.util.List an
by jej2003
Has anyone had any experience with getting the java.util.List multipart support working as described at http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-res... ?
When running the Client Framework I get the following:
Exception in thread "main" java.lang.RuntimeException: Could not find MessageBodyWriter for class java.util.List and mediaType multipart/mixed
| at org.jboss.resteasy.client.core.MessageBodyParameterMarshaller.getMessageBodyWriter(MessageBodyParameterMarshaller.java:59)
| at org.jboss.resteasy.client.core.MessageBodyParameterMarshaller.buildRequest(MessageBodyParameterMarshaller.java:48)
| at org.jboss.resteasy.client.core.WebRequestIntializer.setHeadersAndRequestBody(WebRequestIntializer.java:43)
| at org.jboss.resteasy.client.core.ClientInvoker.initBaseMethod(ClientInvoker.java:107)
| at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:67)
| at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:47)
I see the provider being loaded (or at least what I would assume is the provider)
| ...
| 78 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.providers.multipart.ListMultipartReader
| 78 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataReader
| 78 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.providers.multipart.MapMultipartFormDataReader
| 94 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.MultipartWriter
| 94 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.MultipartFormDataWriter
| 94 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.ListMultipartWriter
| ...
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213863#4213863
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213863
15 years, 11 months
[JBoss Tools (users)] - Unsatisfied dependencies
by sacauskis
I get the following unsatisfied dependencies when I try to install the 3.0 developement verions on windows using eclipse 3.4 and the eclipse update manager to http://download.jboss.org/jbosstools/updates/development/
Cannot complete the request. See the details.
Unsatisfied dependency: [org.jboss.tools.birt.feature.feature.group 1.0.0.CR2-R200901280154] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.birt.integration.wtp.feature.group/[2.3.1,3.0.0)
Unsatisfied dependency: [org.jboss.tools.birt.feature.feature.group 1.0.0.CR2-R200901280154] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.birt.integration.wtp.ui/[2.3.1.v20080827,2.3.1.v20080827]
Unsatisfied dependency: [org.jboss.tools.birt.core 1.0.0.CR2-R200901280154] requiredCapability: osgi.bundle/org.eclipse.birt.integration.wtp.ui/0.0.0
Unsatisfied dependency: [org.jboss.tools.birt.feature.feature.group 1.0.0.CR2-R200901280154] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.birt.integration.wtp.ui/[2.3.1.v20080827,2.3.1.v20080827]
Unsatisfied dependency: [org.jboss.tools.birt.feature.feature.group 1.0.0.CR2-R200901280154] requiredCapability: org.eclipse.equinox.p2.iu/org.jboss.tools.birt.core/[1.0.0.CR2-R200901280154,1.0.0.CR2-R200901280154]
Unsatisfied dependency: [org.jboss.tools.birt.feature.feature.group 1.0.0.CR2-R200901280154] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.birt.integration.wtp.feature.group/[2.3.1,3.0.0)
Unsatisfied dependency: [org.jboss.tools.birt.core 1.0.0.CR2-R200901280154] requiredCapability: osgi.bundle/org.eclipse.birt.integration.wtp.ui/0.0.0
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213859#4213859
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213859
15 years, 11 months