[JBoss JIRA] (SOLDER-291) ExceptionHandledInterceptor does not treat primitive values consistently
by Jozef Hartinger (Created) (JIRA)
ExceptionHandledInterceptor does not treat primitive values consistently
------------------------------------------------------------------------
Key: SOLDER-291
URL: https://issues.jboss.org/browse/SOLDER-291
Project: Seam Solder
Issue Type: Bug
Components: Exception Handling
Affects Versions: 3.1.0.Beta3
Reporter: Jozef Hartinger
Fix For: 3.1.0.CR1
if an method annotated with @ExceptionHandled throws an exception, ExceptionHandledInterceptor catches the exception and forwards it through Solder's exception handling framework for being handled. If the exception is handled, the method returns null for reference types and default values for primitive types. However, out of 8 primitive types that Java has, only 5 are handled this way.
The missing types are:
* byte
* double
* char
If a method defining one of the missing types as its return type throws an exception and this exception is handled by the ExceptionHandledInterceptor, the method call always throws NullPointerException.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] (SOLDER-285) Seam mentioned in Solder logs
by Marek Schmidt (Created) (JIRA)
Seam mentioned in Solder logs
-----------------------------
Key: SOLDER-285
URL: https://issues.jboss.org/browse/SOLDER-285
Project: Seam Solder
Issue Type: Bug
Affects Versions: 3.1.0.Beta3
Reporter: Marek Schmidt
Priority: Minor
Fix For: 3.1.0.CR1
impl/src/main/java/org/jboss/solder/servlet/support/ServletLogger.java: static String CATEGORY = "seam-servlet";
impl/src/main/java/org/jboss/solder/servlet/event/ServletEventBridgeServlet.java: return "Seam Servlet module WebApplication event publisher";
impl/src/main/java/org/jboss/solder/config/xml/bootstrap/XmlConfigExtension.java: log.info("Seam Config XML provider starting...");
impl/src/main/java/org/jboss/solder/config/xml/model/ModelBuilder.java: log.warnf("Seam Config could not resolve XML namspace for: {}", node.getNamespaceUri());
impl/src/main/java/org/jboss/solder/core/CoreExtension.java: "Seam Solder %s (build id: %s)",
impl/src/main/java/org/jboss/solder/core/CoreExtension.java: throw new IllegalStateException("Both Weld Extensions and Seam Solder libraries detected on the classpath. " +
impl/src/main/java/org/jboss/solder/core/CoreExtension.java: "If you're migrating to Seam Solder, please remove Weld Extensions from the deployment.");
impl/src/main/java/org/jboss/solder/resourceLoader/ClasspathResourceLoader.java: log.trace("Loaded resource from Seam classloader: " + strippedName);
impl/src/main/java/org/jboss/solder/resourceLoader/ClasspathResourceLoader.java: log.trace("Loaded resource from Seam classloader: " + strippedName);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Created: (SOLDER-98) Documentation issues
by Martin Gencur (JIRA)
Documentation issues
--------------------
Key: SOLDER-98
URL: https://issues.jboss.org/browse/SOLDER-98
Project: Seam Solder
Issue Type: Bug
Components: Documentation
Affects Versions: 3.0.0.Final
Reporter: Martin Gencur
Priority: Minor
Fix For: Future
1) Introduction - question marks links ("???") pointing nowhere [only in Seam 3 distribution bundle]
2) Chapter 6. Getting Started -> Tip -> "Maven user-defined property" link pointing nowhere
3) 7.1.2. @Requires -> "Note" contains "The ProcessAnnotatedType container lifecycle event will be called for vetoed types." where
the word "vetoed" should be "required", in fact
4) TYPO -> 7.5. @FullyQualified bean names -> "This behavior aligns is with the needs of"... (the "is" word shouldn't be there IMHO)
5) TYPO -> 11.1. JBoss Logging: The foundation -> "JBoss Logging has is parallel support" (the "is" should be "its" IMHO)
6) TYPO -> 11.3. Typed loggers -> "If injecting a typed logger seems to "enterprisy" to you" ("to" should be "too")
7) TYPO -> 1.6.2. Including the implementation classes in Arquillian tests -> "Otherwise, you may can an exception like:"
8) section "Chapter 17. Default Beans" has probably wrong formatting of the last code snippet of this subchapter
(the one containing @DefaultBean(Cache.class))
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Created: (SOLDER-122) Some errors in the solder documentation
by Luca Stancapiano (JIRA)
Some errors in the solder documentation
---------------------------------------
Key: SOLDER-122
URL: https://issues.jboss.org/browse/SOLDER-122
Project: Seam Solder
Issue Type: Bug
Components: Documentation
Affects Versions: 3.1.0.Beta2
Environment: seam 3 on java 6
Reporter: Luca Stancapiano
Fix For: 3.1.0.CR1
Hi... I signal different errors on the codes written in the solder documentation: http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html_single/
Mainly they are syntax errors. Here the details with the solutions:
1- error on chapter 14. Delete the ; in UserQuery: @Query("select u from User u")
2- on chapter 13, move the name() property of ACMEQueue annotation in value() else it cannot be called by other classes through the command: @ACMEQueue()
3- on chapter 13, the reference to the Generic annotation is wrong. There is no value property there. Delete the property in the @Generic(ACMEQueue.class) in the MessageManager class
4- on chapter 12 move @DefaultBean(type = FunctionMapper.class) written in the FunctionMapperImpl class to @DefaultBean(FunctionMapper.class) and add a public to the resolveFunction method. You cannot reduce the visibility of the inherited method
5- on chapter10 add a ')' in the end moving the Property<PersonName> personNameProperty = Properties.createProperty(Person.class.getField("personName"); in Property<PersonName> personNameProperty = Properties.createProperty(Person.class.getField("personName"));
6- on chapter10.3.4 add a 'public' to the boolean methodMatches(Method m) methos. You cannot reduce the visibility of the inherited method. Move from Integer.TYPE.class to Integer.TYPE.getClass and from Long.TYPE.class to Long.TYPE.getClass; they are instances!!
7- on chapter 10.4 add the 'new' to all 3 PropertyCriteria implementations references
8- on chapter 8 instead of getBeanManager().getBean(Instance.class); put something as: getBeanManager().getBeans(Long.TYPE); the getBean(...) method doesn't exist
9 - on chapter 7.1, the create method of AnnotatedTypeBuilder class must return a AnnotatedType instead of a AnnotatedTypeBuilder. Put it:
AnnotatedType builder = new AnnotatedTypeBuilder()
.readFromType(baseType, true) /*
* readFromType can read from an
* AnnotatedType or a class
*/
.addToClass(ModelLiteral.INSTANCE) /* add the @Model annotation */
.create();
put it also in the second example. Then add a ')' in the end before the 'create' method and put <Unique> instead of <A> so:
AnnotatedType builder = new AnnotatedTypeBuilder()
.readFromType(baseType, true)
.redefine(Unique.class, new AnnotationRedefiner<Unique>() {
public void redefine(RedefinitionContext<Unique> ctx) {
ctx.getAnnotationBuilder().remove(Unique.class);
}
})
.create();
10 - on chapter 2.5 modify the method of the NamedBean from: public String getAge() to public int getAge()
11- on the chapter 2.1.2 instead of @Requires(EntityManager.class) put @Requires("javax.persistence.EntityManager")
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Created: (SEAMSERVLET-28) Integrate Catch with *EventBridge* classes
by Jason Porter (JIRA)
Integrate Catch with *EventBridge* classes
------------------------------------------
Key: SEAMSERVLET-28
URL: https://issues.jboss.org/browse/SEAMSERVLET-28
Project: Seam Servlet
Issue Type: Enhancement
Components: Catch Integration
Affects Versions: 3.0.0.Beta1
Reporter: Jason Porter
None of the EventBridge classes catch exceptions to pass to Seam Catch, thus the following code does not invoke any exception handlers:
{code}
public void initial(@Observes @Path("NullPointer") @Initialized final HttpServletRequestContext ctx)
{
throw new NullPointerException();
}
{code}
I would expect the NPE to be passed to Catch for exception handling.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] (SOLDER-288) Interceptors not following required scheme
by Jozef Hartinger (Created) (JIRA)
Interceptors not following required scheme
------------------------------------------
Key: SOLDER-288
URL: https://issues.jboss.org/browse/SOLDER-288
Project: Seam Solder
Issue Type: Bug
Affects Versions: 3.1.0.Beta3
Reporter: Jozef Hartinger
Priority: Blocker
Fix For: 3.1.0.CR1
The interceptors spec requires the following scheme of an @AroundInvoke interceptor:
{quote}Object <METHOD>(InvocationContext) throws Exception{quote}
The ExceptionHandledInterceptor does not follow the scheme:
* impl/src/main/java/org/jboss/solder/exception/control/ExceptionHandledInterceptor.java : public Object passExceptionsToSolderCatch(final InvocationContext ctx)
Besides, tests for service handlers should probably also be consistent:
testsuite/src/test/java/org/jboss/solder/test/serviceHandler/DecoratedEchoServiceHandler.java : public Object invoke(InvocationContext ctx)
testsuite/src/test/java/org/jboss/solder/test/serviceHandler/EchoServiceHandler.java : public Object invoke(InvocationContext ctx)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months