This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251800 - Exception from JSF bean not obvious
Summary: Exception from JSF bean not obvious
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-13 14:48 UTC by ruz
Modified: 2015-06-30 11:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ruz 2015-04-13 14:48:17 UTC
For the following code:

@Named
@ViewScoped
public class UserAdmin implements Serializable {
}

When it is view scoped or session scoped, the class needs to implements Serializable. It seems to me that in older NetBeans, when I forget to implements Serializable, I can quickly see the exception in the log and fix it. But in the new version, I cannot see the exception, but I cannot deploy the application. I am lost and don't know what happen, so I choose to reinstall netbeans, clear the cache etc. It is only after long time that I find out it is all because I didn't 
implements Serializable for the class. It would be better for netbeans to throw the exception as older version. Or maybe it is because of different version of JSF or Glassfish?
Comment 1 Petr Hejl 2015-06-30 11:32:11 UTC
I'm not sure what you mean. I do see "See the server log for details." and there is "org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-000072: Bean declaring a passivating scope must be passivation capable." in the server log.