[JBoss JIRA] (JBIDE-18148) problem with Hibernate package-info.java TypeDefs
by Koen Aers (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18148?page=com.atlassian.jira.plugi... ]
Koen Aers updated JBIDE-18148:
------------------------------
Assignee: Koen Aers
> problem with Hibernate package-info.java TypeDefs
> -------------------------------------------------
>
> Key: JBIDE-18148
> URL: https://issues.jboss.org/browse/JBIDE-18148
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Environment: OSX 10.9.4
> Reporter: Jeffrey Simpson
> Assignee: Koen Aers
> Fix For: 4.2.0.CR1
>
> Attachments: eclipseErrors.log
>
>
> I just tried out JBoss Developer Studio 8.0.0.Beta3 and it reports all of my Hibernate types that are defined in a package-info as not being found. I get "Type "common-big-decimal" could not be found" where I use it to define an attribute on an entity.
> Here is my Package-info.java
>
> @org.hibernate.annotations.TypeDefs (
>
> {
> @org.hibernate.annotations.TypeDef(name="yfu_boolean", typeClass=org.yfu.util.hibernate.TrueFalseBooleanUserType.class),
> @org.hibernate.annotations.TypeDef(name="integer_date", typeClass=org.yfu.util.hibernate.IntegerDateUserType.class),
> @org.hibernate.annotations.TypeDef(name="integer_local_date", typeClass=org.yfu.util.hibernate.IntegerLocalDateUserType.class),
> @org.hibernate.annotations.TypeDef(name="common_big_decimal", typeClass=org.yfu.util.hibernate.NullableBigDecimalUserType.class),
> @org.hibernate.annotations.TypeDef(name="common_long", typeClass=org.yfu.util.hibernate.NullableLongUserType.class),
> @org.hibernate.annotations.TypeDef(name="common_integer", typeClass=org.yfu.util.hibernate.NullableIntegerUserType.class),
> @org.hibernate.annotations.TypeDef(name="common_string", typeClass=org.yfu.util.hibernate.NullableStringUserType.class),
> @org.hibernate.annotations.TypeDef(name="common_tf_boolean", typeClass=org.yfu.util.hibernate.NullableTFBooleanUserType.class),
> @org.hibernate.annotations.TypeDef(name="common_yn_boolean", typeClass=org.yfu.util.hibernate.NullableYNBoolenaUserType.class),
> @org.hibernate.annotations.TypeDef(name="yfu_boolean_integer", typeClass=org.yfu.util.hibernate.YFUBooleanIntegerUserType.class),
>
> }
> )
> package org.yfu.util.hibernate;
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months
[JBoss JIRA] (JBIDE-15599) Changes on a subresource locator fields are not propagated to the JAX-RS Explorer
by Radoslav Rábara (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15599?page=com.atlassian.jira.plugi... ]
Radoslav Rábara closed JBIDE-15599.
-----------------------------------
Verified with JBDS 8.0.0 CR1-v20140831-0335-B201
> Changes on a subresource locator fields are not propagated to the JAX-RS Explorer
> ---------------------------------------------------------------------------------
>
> Key: JBIDE-15599
> URL: https://issues.jboss.org/browse/JBIDE-15599
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: webservices
> Affects Versions: 4.1.0.Final
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Fix For: 4.2.0.CR1
>
>
> Take the following classes:
> {code}
> @Path("/products")
> public class ProductResourceLocator {
> @QueryParam("foo")
> private String foo;
> @Path("/{productType}")
> public Object getProductResourceLocator() {
> return new BookResource();
> }
> }
> {code}
> and
> {code}
> @Produces({ MediaType.APPLICATION_XML, "application/json" })
> public class BookResource {
> @GET
> @Path("/{id}")
> @Produces({ "application/xml", "application/json" })
> public Book getProduct(@PathParam("id") Integer id) {
> return null;
> }
> }
> {code}
> and modify the @QueryParam value of the "foo" field.
> ASSERT: the changes appear in the Project Explorer
> FAIL: the old @QueryParam annotation value is still used
> WORKAROUND: Refresh the JAX-RS Web Services node.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months
[JBoss JIRA] (JBIDE-15522) Shoud validate when @Path arg at type does not match @PathParam on methods
by Radoslav Rábara (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15522?page=com.atlassian.jira.plugi... ]
Radoslav Rábara closed JBIDE-15522.
-----------------------------------
Verified with JBDS 8.0.0 CR1-v20140831-0335-B201
> Shoud validate when @Path arg at type does not match @PathParam on methods
> ---------------------------------------------------------------------------
>
> Key: JBIDE-15522
> URL: https://issues.jboss.org/browse/JBIDE-15522
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: webservices
> Affects Versions: 4.1.0.Final
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Fix For: 4.2.0.CR1
>
>
> Let's take the following code:
> {code}
> @Path("/users/{username}")
> public class UserResource {
>
> @GET
> @Produces("text/xml")
> public String getUser(@PathParam("user") String userName) {
> ...
> }
> }
> {code}
> Validation should report a problem because of the mismatch between the {noformat}@Path{noformat} value and the {noformat}@PathParam{noformat} value
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months
[JBoss JIRA] (JBIDE-17839) Cannot change jbossHome property in Arquillian launcher
by Lucia Jelinkova (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17839?page=com.atlassian.jira.plugi... ]
Lucia Jelinkova closed JBIDE-17839.
-----------------------------------
Verified JBT 4.2.0.cr1
> Cannot change jbossHome property in Arquillian launcher
> -------------------------------------------------------
>
> Key: JBIDE-17839
> URL: https://issues.jboss.org/browse/JBIDE-17839
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: testing-tools
> Affects Versions: 4.2.0.Beta3
> Reporter: Lucia Jelinkova
> Assignee: Snjezana Peco
> Priority: Critical
> Fix For: 4.2.0.CR1
>
>
> When I change jbossHome property in the launch configuration dialog, it is saved in arquillian.properties file. However, when I actually run the test, the following error occurs.
> {code}
> java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:160)
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:111)
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:97)
> at org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:93)
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:156)
> ... 10 more
> Caused by: java.lang.RuntimeException: Unknown arquillian container attribute[jbossHome] with value[/home/ljelinko/programs/server/jbossas/jboss-as-7.1.1.Final]
> at org.jboss.arquillian.config.impl.extension.PropertiesParser$Container.handle(PropertiesParser.java:274)
> at org.jboss.arquillian.config.impl.extension.PropertiesParser$Handler.handle(PropertiesParser.java:354)
> at org.jboss.arquillian.config.impl.extension.PropertiesParser.addProperties(PropertiesParser.java:99)
> at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:56)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
> at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:261)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:56)
> ... 15 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 7 months