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.
Created attachment 134789 [details] Stack trace from server log. Payroll Batch does not work for me neither in trunk nor in 7.3.1. If you run it and click "Calculate Payroll" it throws exception to server log (see attachment). It used to work some builds ago.
I'm not able to reproduce neither in trunk nor in 7.3.1. Jirko, with what version of GF were you reproducing the problem? I'm still running GF4-b87 and can imagine similar exceptions could happen with a different types of GF.
GlassFish 4.0 b89 Product Version: NetBeans IDE 7.3.1 (Build 201305232200) Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
I have found GF issue [1] referring this problem. Most probably your database was down when you were trying to deploy the Payroll sample and thus the exception was thrown. Unfortunately the fix is targeting GF 4.0.1 release and most probably won't be a part of GF 4.0 final release so we can't do much here. We can disable the sample.. again.. but I would say we could let it there as it should be runnable if it's correctly setup. [1] https://java.net/jira/browse/GLASSFISH-20388
Closing as INVALID for now. We can reopen the issue if we decide to disable the sample.
I tried also "JobOperator API Batch" sample and it doesn't work either. Simply BatchRuntime.getJobOperator() always fails. And I suspect it is not related to a database connection. I think you should escalate it to the GlassFish team because their API doesn't work.
Well I don't know, I'm still not able to reproduce the problem (that's why I was thinking the problem is in your configuration). Both samples works for me correctly. Could anyone else (Petre?) try this out?
I downloaded and installed latest GlassFish4 and it works for me now in NetBeans IDE 7.3.1 (Build 201305262200).
Both examples also work for me in both 7.3.1 and trunk, using GlassFish 4 build 89.
This started happening to me today, not sure what's the exact cause, but I have a project which has both glassfish-resources.xml and sun-resources.xml, and the latter contains a datasource definition that uses MySQL. Deployment of the MySQL datasource failed, and then this started happening, I think. Cc'ing Stepan - Stepan, can you investigate in this direction?
You can group certain workers together and batch them, such as W2 workers versus 1099 workers, or full-time workers versus part-time workers. You can also create payroll cycles so if you have too many workers to handle paying at once, you can pay workers whose names start from A to G for one day, H � O the next day, etc. Additionally some workers might have specific requirements of when they want to be paid. You might have a group of workers who insist on being paid on a weekly basis, so you could create a special batch for them once a week. Its finally worked on liteblue(https://liteblue.onl/).