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 230157 - Payroll Batch sample does not work
Summary: Payroll Batch sample does not work
Status: VERIFIED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Samples (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7 x64
: P1 normal (vote)
Assignee: Martin Janicek
URL: https://java.net/jira/browse/GLASSFIS...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 09:16 UTC by Jiri Skrivanek
Modified: 2019-06-22 14:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace from server log. (5.25 KB, text/plain)
2013-05-23 09:16 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2013-05-23 09:16:00 UTC
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.
Comment 1 Martin Janicek 2013-05-25 15:39:19 UTC
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.
Comment 2 Jiri Skrivanek 2013-05-25 19:43:42 UTC
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)
Comment 3 Martin Janicek 2013-05-26 14:49:28 UTC
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
Comment 4 Martin Janicek 2013-05-26 14:54:36 UTC
Closing as INVALID for now. We can reopen the issue if we decide to disable the sample.
Comment 5 Jiri Skrivanek 2013-05-27 08:46:49 UTC
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.
Comment 6 Martin Janicek 2013-05-27 08:55:04 UTC
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?
Comment 7 Jiri Skrivanek 2013-05-27 10:45:39 UTC
I downloaded and installed latest GlassFish4 and it works for me now in NetBeans IDE 7.3.1 (Build 201305262200).
Comment 8 Petr Jiricka 2013-05-27 11:07:10 UTC
Both examples also work for me in both 7.3.1 and trunk, using GlassFish 4 build 89.
Comment 9 Petr Jiricka 2013-09-24 21:18:07 UTC
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?
Comment 10 relein 2019-06-22 14:40:48 UTC
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/).