I am faced with the exact same situation. I would like the AJAX application running in the browser on one particular page to detect a session timeout error thrown from ACEGI and redirect to the...
Type: Posts; User: antf; Keyword(s):
I am faced with the exact same situation. I would like the AJAX application running in the browser on one particular page to detect a session timeout error thrown from ACEGI and redirect to the...
Yes, the inheritance type is JOINED. But I am specifying the targetEntity type for listOfAs so I would expect only the targetEntity type to be retrieved. Instead, I see both type A and type B in...
I am reposting with the appropriate code tags. I only use annotations, no hbm mapping files, so all information regarding entities is in the code.
I have two classes:
@Entity(polymorphism...
I have two classes:
<code>
@Entity(polymorphism = PolymorphismType.EXPLICIT)
@Inheritance(strategy = InheritanceType.JOINED)
public class A{}
@Entity
public class B extends A{}
</code>
Passing ids around is pretty much the solution I was leaning towards. The trouble is that I have a User object that has a OneToMany collection of another entity. The User object is returned from an...
Reposted from the Web forum because this is a more appropriate forum.
I have the following architecture: Spring MVC in the web layer with Open Session In View, Hibernate managed data layer, and a...
I have the following architecture: Spring MVC in the web layer with Open Session In View, Hibernate managed data layer, and a middle tier with some asynchronous operations.
Users can choose...
Yes, I did try a simple example and it worked. I had the following property:
private Pattern testPattern = null;
public Pattern getTestPattern() {
return testPattern;
}
public void...
I believe that org.springframework.beans.propertyeditors.PatternEditor is the appropriate PropertyEditor for java.util.regex.Pattern. I thought that it was registered by default. Even when I tried...
I have a class with the following property:
public class MyClass extends OrderedAspect {
private Map<String, List<Pattern>> methodIgnorePatterns = new HashMap<String, List<Pattern>>();
...
The new behavior is that the checkLoggedInPointcut pointcut is applied to the class ClassThatExtendsBaseClass when it should not be. Sorry, I should have mentioned that.
Thanks,
Anthony
After I upgraded to Spring 2.0.1, a pointcut that I had defined and working in Spring 2.0 changed behavior. I had the following pointcut:
<pointcut id="checkLoggedInPointcut"...
It turns out that I had a cycle in my bean dependencies. This was causing issues when mapping aspects as some of the aspects were not fully initialized and would be ignored for certain beans.
I debugged the initialization in spring and determined that in
org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors()
the call to
...
Here is some debug output when I start up spring. Notice that the same pointcut gets rejected and accepted for class C. The initialization procedure seems to be ignoring the first pointcut when...
I have 3 advisors and 2 pointcuts as follows:
Pointcut 1: execute(public * com.mycompany.product.A+.*(..)
Pointcut 2: execute(public * com.mycompany.product.A+.*(..) AND !execute(public *...
Yes, I should have mentioned that I have tried that and get the following exception:
Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor': Cannot create inner...
I need some help on how to write a particular pointcut.
I have a superclass A and multiple subclasses of A that in turn define their own methods. I want to write a pointcut that will match all...
I forgot to mention that my jsp uses a spring tag library to bind the form in the view.
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<form:form method="post"...
I am new to Spring Portlet MVC and Spring MVC in general. I am having trouble setting up an exception handler to handle uncaught exceptions in the handler chain. I have the following exception...
I am trying to automate the process of generating Axis proxies that expose Spring beans as webservices as part of my build process. Since the Axis proxies delegate to Spring beans, they are all very...