Strange Exception

17 views
Skip to first unread message

Khosro Asgharifard

unread,
Feb 6, 2010, 7:54:34 AM2/6/10
to my_a...@googlegroups.com
Hello,
I have a button in a page ,before, it works well but today ,i got this strange exception:

When i click on button ,it does not enter to method ,and  Seam throws this exception:
Exception during request processing: Caused by javax.servlet.ServletException with message: "value of context variable is not an instance of the component bound to the context variable: universityResourceReserveController. If you are using hot deploy, you may have attempted to hot deploy a session or application-scoped component definition while using an old instance in the session."

In my JSF page i have :
<h:commandButton  action="#{universityResourceReserveController.reserveResource}"  value="reserve">
</h:commandButton>

and this is my controller :
--------------------------------------------------------------------
@Name("universityResourceReserveController")
public class UniversityResourceReserveController extends
        EntityController<UniversityResources> {
public String reserveResource() {
        current = universityResourcesDAO.findById(current.getId());
        try {
            for (int i = 0; i < days.size(); i++) {
                Day day = days.get(i);
                List<Hour> hours = day.getHours();
                for (Hour hour : hours) {
                    if (hour.getBoolean1().equals(Boolean.TRUE)) {
                             Schedule schedule = scheduleDAO
                                .findScheduleByDateANDByDayNameANDByHour(day
                                        .getDate(), day.getDayNumber(), hour
                                        .getStartTime(), hour.getEndTime());
                        current.getSchedules().add(schedule);
                    }
                }
            }
            universityResourcesDAO.save(current);
            return "succ";
        } catch (Exception e) {
            return "fails";
        }
    }
}
--------------------------------------------------------------------
When i click on button ,it does not enter to method ,and  Seam throws this exception:
Exception during request processing: Caused by javax.servlet.ServletException with message: "value of context variable is not an instance of the component bound to the context variable: universityResourceReserveController. If you are using hot deploy, you may have attempted to hot deploy a session or application-scoped component definition while using an old instance in the session."

Please help me.

Khosro.


Khosro Asgharifard

unread,
Feb 6, 2010, 8:32:26 AM2/6/10
to my_a...@googlegroups.com
Hello ,
I found the problem.
It was a compile time error in class UniversityResourceReserveController.I do not know ,why i  start JBoss ,eclipse does not say anything about compile time error.

Khosro.


From: Khosro Asgharifard <khosro_...@yahoo.com>
To: my_a...@googlegroups.com
Sent: Sat, February 6, 2010 4:54:34 AM
Subject: [my_autcms] Strange Exception
--
You received this message because you are subscribed to the Google Groups "my_autcms" group.
To post to this group, send email to my_a...@googlegroups.com.
To unsubscribe from this group, send email to my_autcms+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/my_autcms?hl=en.

Reply all
Reply to author
Forward
0 new messages