Bug 813529

Summary: refresh pools FAILS WITH: org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (rules#846)]
Product: [Community] Candlepin Reporter: John Sefler <jsefler>
Component: candlepinAssignee: William Poteat <wpoteat>
Status: CLOSED CURRENTRELEASE QA Contact: Eric Sammons <esammons>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.5CC: wpoteat
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-17 13:04:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 738066    

Description John Sefler 2012-04-17 19:08:02 UTC
Description of problem:
As a follow-up to bug 807452 which is now VERIFIED, I continue to get an  unhandled exception upon calling refresh pools with the new scenario below...


Version-Release number of selected component (if applicable):
[root@jsefler-f14-candlepin candlepin]# git show-ref | grep master
82216d9e5e38fe3d2d62d7d9860cc3d346832919 refs/heads/master
82216d9e5e38fe3d2d62d7d9860cc3d346832919 refs/remotes/origin/master
with TEST_DATA deployed

How reproducible:


Steps to Reproduce:


[root@jsefler-r63-server ~]# curl --stderr /dev/null --insecure --user admin:admin --request POST --data '{"id":"9000","name":"Awesome OS for null sockets BITS","attributes":[{"name":"warning_period","value":"30"},{"name":"sockets"},{"name":"arch","value":"ALL"},{"name":"type","value":"SVC"},{"name":"variant","value":"server"},{"name":"version","value":"0.0"}],"multiplier":1}' --header 'accept: application/json' --header 'content-type: application/json' https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/products | python -m simplejson/tool
{
    "attributes": [
        {
            "created": "2012-04-17T18:52:26.580+0000", 
            "name": "variant", 
            "updated": "2012-04-17T18:52:26.580+0000", 
            "value": "server"
        }, 
        {
            "created": "2012-04-17T18:52:26.581+0000", 
            "name": "arch", 
            "updated": "2012-04-17T18:52:26.581+0000", 
            "value": "ALL"
        }, 
        {
            "created": "2012-04-17T18:52:26.581+0000", 
            "name": "type", 
            "updated": "2012-04-17T18:52:26.581+0000", 
            "value": "SVC"
        }, 
        {
            "created": "2012-04-17T18:52:26.581+0000", 
            "name": "warning_period", 
            "updated": "2012-04-17T18:52:26.581+0000", 
            "value": "30"
        }, 
        {
            "created": "2012-04-17T18:52:26.581+0000", 
            "name": "sockets", 
            "updated": "2012-04-17T18:52:26.581+0000", 
            "value": null
        }, 
        {
            "created": "2012-04-17T18:52:26.581+0000", 
            "name": "version", 
            "updated": "2012-04-17T18:52:26.581+0000", 
            "value": "0.0"
        }
    ], 
    "created": "2012-04-17T18:52:26.580+0000", 
    "dependentProductIds": [], 
    "href": "/products/9000", 
    "id": "9000", 
    "multiplier": 1, 
    "name": "Awesome OS for null sockets BITS", 
    "productContent": [], 
    "updated": "2012-04-17T18:52:26.580+0000"
}
[root@jsefler-r63-server ~]# 
[root@jsefler-r63-server ~]# curl --stderr /dev/null --insecure --user admin:admin --request POST --data '{"id":"null-sockets","name":"Awesome OS for null sockets","attributes":[{"name":"warning_period","value":"30"},{"name":"sockets"},{"name":"arch","value":"ALL"},{"name":"type","value":"MKT"},{"name":"variant","value":"server"},{"name":"version","value":"0.0"}],"multiplier":1}' --header 'accept: application/json' --header 'content-type: application/json' https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/products | python -m simplejson/tool
{
    "attributes": [
        {
            "created": "2012-04-17T18:53:35.839+0000", 
            "name": "variant", 
            "updated": "2012-04-17T18:53:35.839+0000", 
            "value": "server"
        }, 
        {
            "created": "2012-04-17T18:53:35.839+0000", 
            "name": "arch", 
            "updated": "2012-04-17T18:53:35.839+0000", 
            "value": "ALL"
        }, 
        {
            "created": "2012-04-17T18:53:35.839+0000", 
            "name": "type", 
            "updated": "2012-04-17T18:53:35.839+0000", 
            "value": "MKT"
        }, 
        {
            "created": "2012-04-17T18:53:35.839+0000", 
            "name": "warning_period", 
            "updated": "2012-04-17T18:53:35.839+0000", 
            "value": "30"
        }, 
        {
            "created": "2012-04-17T18:53:35.839+0000", 
            "name": "sockets", 
            "updated": "2012-04-17T18:53:35.839+0000", 
            "value": null
        }, 
        {
            "created": "2012-04-17T18:53:35.839+0000", 
            "name": "version", 
            "updated": "2012-04-17T18:53:35.839+0000", 
            "value": "0.0"
        }
    ], 
    "created": "2012-04-17T18:53:35.839+0000", 
    "dependentProductIds": [], 
    "href": "/products/null-sockets", 
    "id": "null-sockets", 
    "multiplier": 1, 
    "name": "Awesome OS for null sockets", 
    "productContent": [], 
    "updated": "2012-04-17T18:53:35.839+0000"
}
[root@jsefler-r63-server ~]# 
[root@jsefler-r63-server ~]# curl --stderr /dev/null --insecure --user admin:admin --request POST --data '{"product":{"id":"null-sockets"},"startDate":"Mon, 26 Mar 2012 15:13:20 -0400","accountNumber":705701520,"quantity":20,"endDate":"Wed, 31 Dec 2014 00:00:00 -0400","contractNumber":351264786,"providedProducts":[{"id":"9000"}]}' --header 'accept: application/json' --header 'content-type: application/json' https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/subscriptions | python -m simplejson/tool
{
    "accountNumber": "705701520", 
    "certificate": null, 
    "contractNumber": "351264786", 
    "created": "2012-04-17T18:54:41.285+0000", 
    "endDate": "2014-12-31T04:00:00.000+0000", 
    "id": "8a90f81436c19dcd0136c1a81a850a2f", 
    "modified": null, 
    "owner": {
        "displayName": "Admin Owner", 
        "href": "/owners/admin", 
        "id": "8a90f81436c19dcd0136c19dea970002", 
        "key": "admin"
    }, 
    "product": {
        "attributes": [
            {
                "created": "2012-04-17T18:53:35.839+0000", 
                "name": "variant", 
                "updated": "2012-04-17T18:53:35.839+0000", 
                "value": "server"
            }, 
            {
                "created": "2012-04-17T18:53:35.839+0000", 
                "name": "arch", 
                "updated": "2012-04-17T18:53:35.839+0000", 
                "value": "ALL"
            }, 
            {
                "created": "2012-04-17T18:53:35.839+0000", 
                "name": "type", 
                "updated": "2012-04-17T18:53:35.839+0000", 
                "value": "MKT"
            }, 
            {
                "created": "2012-04-17T18:53:35.839+0000", 
                "name": "warning_period", 
                "updated": "2012-04-17T18:53:35.839+0000", 
                "value": "30"
            }, 
            {
                "created": "2012-04-17T18:53:35.839+0000", 
                "name": "sockets", 
                "updated": "2012-04-17T18:53:35.839+0000", 
                "value": null
            }, 
            {
                "created": "2012-04-17T18:53:35.839+0000", 
                "name": "version", 
                "updated": "2012-04-17T18:53:35.839+0000", 
                "value": "0.0"
            }
        ], 
        "created": "2012-04-17T18:53:35.839+0000", 
        "dependentProductIds": [], 
        "href": "/products/null-sockets", 
        "id": "null-sockets", 
        "multiplier": 1, 
        "name": "Awesome OS for null sockets", 
        "productContent": [], 
        "updated": "2012-04-17T18:53:35.839+0000"
    }, 
    "providedProducts": [
        {
            "attributes": [
                {
                    "created": "2012-04-17T18:52:26.580+0000", 
                    "name": "variant", 
                    "updated": "2012-04-17T18:52:26.580+0000", 
                    "value": "server"
                }, 
                {
                    "created": "2012-04-17T18:52:26.581+0000", 
                    "name": "arch", 
                    "updated": "2012-04-17T18:52:26.581+0000", 
                    "value": "ALL"
                }, 
                {
                    "created": "2012-04-17T18:52:26.581+0000", 
                    "name": "type", 
                    "updated": "2012-04-17T18:52:26.581+0000", 
                    "value": "SVC"
                }, 
                {
                    "created": "2012-04-17T18:52:26.581+0000", 
                    "name": "warning_period", 
                    "updated": "2012-04-17T18:52:26.581+0000", 
                    "value": "30"
                }, 
                {
                    "created": "2012-04-17T18:52:26.581+0000", 
                    "name": "sockets", 
                    "updated": "2012-04-17T18:52:26.581+0000", 
                    "value": null
                }, 
                {
                    "created": "2012-04-17T18:52:26.581+0000", 
                    "name": "version", 
                    "updated": "2012-04-17T18:52:26.581+0000", 
                    "value": "0.0"
                }
            ], 
            "created": "2012-04-17T18:52:26.580+0000", 
            "dependentProductIds": [], 
            "href": "/products/9000", 
            "id": "9000", 
            "multiplier": 1, 
            "name": "Awesome OS for null sockets BITS", 
            "productContent": [], 
            "updated": "2012-04-17T18:52:26.580+0000"
        }
    ], 
    "quantity": 20, 
    "startDate": "2012-03-26T19:13:20.000+0000", 
    "updated": "2012-04-17T18:54:41.285+0000", 
    "upstreamPoolId": null
}
[root@jsefler-r63-server ~]# 
[root@jsefler-r63-server ~]# curl --stderr /dev/null --insecure --user admin:admin --request PUT https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/subscriptions | python -m simplejson/tool
{
    "created": "2012-04-17T18:55:09.579+0000", 
    "finishTime": null, 
    "group": "async group", 
    "id": "refresh_pools_f655aa6a-c6ee-44ae-b28e-1ef54933d136", 
    "principalName": "admin", 
    "result": null, 
    "startTime": null, 
    "state": "CREATED", 
    "statusPath": "/jobs/refresh_pools_f655aa6a-c6ee-44ae-b28e-1ef54933d136", 
    "targetId": "admin", 
    "targetType": "owner", 
    "updated": "2012-04-17T18:55:09.579+0000"
}
[root@jsefler-r63-server ~]# curl --stderr /dev/null --insecure --user admin:admin --request GET https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/jobs/refresh_pools_f655aa6a-c6ee-44ae-b28e-1ef54933d136 | python -m simplejson/tool 
{
    "created": "2012-04-17T18:55:09.579+0000", 
    "finishTime": "2012-04-17T18:55:10.381+0000", 
    "group": "async group", 
    "id": "refresh_pools_f655aa6a-c6ee-44ae-b28e-1ef54933d136", 
    "principalName": "admin", 
    "result": "Pools refreshed for owner Admin Owner", 
    "startTime": "2012-04-17T18:55:09.582+0000", 
    "state": "FINISHED", 
    "statusPath": "/jobs/refresh_pools_f655aa6a-c6ee-44ae-b28e-1ef54933d136", 
    "targetId": "admin", 
    "targetType": "owner", 
    "updated": "2012-04-17T18:55:10.397+0000"
}
[root@jsefler-r63-server ~]# 


^^^ This far, the scenario is a repeat of https://bugzilla.redhat.com/show_bug.cgi?id=807452#c3  All looks good so far.

Now let's cause the failure...



[root@jsefler-r63-server ~]# date
Tue Apr 17 14:56:06 EDT 2012
[root@jsefler-r63-server ~]# curl --stderr /dev/null --insecure --user admin:admin --request POST --data '{"product":{"id":"awesomeos-server-basic-me"},"startDate":"Mon, 16 Apr 2012 14:00:00 -0400","accountNumber":12345,"quantity":3,"endDate":"Tue, 17 Apr 2012 16:00:00 -0400","contractNumber":54321,"providedProducts":[]}' --header 'accept: application/json' --header 'content-type: application/json' https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/subscriptions | python -msimplejson/tool
{
    "accountNumber": "12345", 
    "certificate": null, 
    "contractNumber": "54321", 
    "created": "2012-04-17T18:57:12.130+0000", 
    "endDate": "2012-04-17T20:00:00.000+0000", 
    "id": "8a90f81436c19dcd0136c1aa67c20a39", 
    "modified": null, 
    "owner": {
        "displayName": "Admin Owner", 
        "href": "/owners/admin", 
        "id": "8a90f81436c19dcd0136c19dea970002", 
        "key": "admin"
    }, 
    "product": {
        "attributes": [
            {
                "created": "2012-04-17T18:43:55.562+0000", 
                "name": "version", 
                "updated": "2012-04-17T18:43:55.562+0000", 
                "value": "1.0"
            }, 
            {
                "created": "2012-04-17T18:43:55.562+0000", 
                "name": "variant", 
                "updated": "2012-04-17T18:43:55.562+0000", 
                "value": "ALL"
            }, 
            {
                "created": "2012-04-17T18:43:55.562+0000", 
                "name": "support_type", 
                "updated": "2012-04-17T18:43:55.562+0000", 
                "value": "Self-Support"
            }, 
            {
                "created": "2012-04-17T18:43:55.563+0000", 
                "name": "sockets", 
                "updated": "2012-04-17T18:43:55.563+0000", 
                "value": "2"
            }, 
            {
                "created": "2012-04-17T18:43:55.563+0000", 
                "name": "arch", 
                "updated": "2012-04-17T18:43:55.563+0000", 
                "value": "ALL"
            }, 
            {
                "created": "2012-04-17T18:43:55.563+0000", 
                "name": "management_enabled", 
                "updated": "2012-04-17T18:43:55.563+0000", 
                "value": "0"
            }, 
            {
                "created": "2012-04-17T18:43:55.563+0000", 
                "name": "type", 
                "updated": "2012-04-17T18:43:55.563+0000", 
                "value": "MKT"
            }, 
            {
                "created": "2012-04-17T18:43:55.564+0000", 
                "name": "support_level", 
                "updated": "2012-04-17T18:43:55.564+0000", 
                "value": "None"
            }, 
            {
                "created": "2012-04-17T18:43:55.564+0000", 
                "name": "warning_period", 
                "updated": "2012-04-17T18:43:55.564+0000", 
                "value": "30"
            }, 
            {
                "created": "2012-04-17T18:43:55.564+0000", 
                "name": "multi-entitlement", 
                "updated": "2012-04-17T18:43:55.564+0000", 
                "value": "yes"
            }
        ], 
        "created": "2012-04-17T18:43:55.561+0000", 
        "dependentProductIds": [], 
        "href": "/products/awesomeos-server-basic-me", 
        "id": "awesomeos-server-basic-me", 
        "multiplier": 1, 
        "name": "Awesome OS Server Basic (multi-entitlement)", 
        "productContent": [], 
        "updated": "2012-04-17T18:43:55.561+0000"
    }, 
    "providedProducts": [], 
    "quantity": 3, 
    "startDate": "2012-04-16T18:00:00.000+0000", 
    "updated": "2012-04-17T18:57:12.130+0000", 
    "upstreamPoolId": null
}
[root@jsefler-r63-server ~]# curl --stderr /dev/null --insecure --user admin:admin --request PUT https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/subscriptions | python -m simplejson/tool{
    "created": "2012-04-17T18:57:34.895+0000", 
    "finishTime": null, 
    "group": "async group", 
    "id": "refresh_pools_8cf2f0c0-27cc-447d-9e16-32ce56a06aba", 
    "principalName": "admin", 
    "result": null, 
    "startTime": null, 
    "state": "CREATED", 
    "statusPath": "/jobs/refresh_pools_8cf2f0c0-27cc-447d-9e16-32ce56a06aba", 
    "targetId": "admin", 
    "targetType": "owner", 
    "updated": "2012-04-17T18:57:34.895+0000"
}
[root@jsefler-r63-server ~]# curl --stderr /dev/null --insecure --user admin:admin --request GET https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/jobs/refresh_pools_8cf2f0c0-27cc-447d-9e16-32ce56a06aba | python -m simplejson/tool 
{
    "created": "2012-04-17T18:57:34.895+0000", 
    "finishTime": null, 
    "group": "async group", 
    "id": "refresh_pools_8cf2f0c0-27cc-447d-9e16-32ce56a06aba", 
    "principalName": "admin", 
    "result": "org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (rules#846)]", 
    "startTime": "2012-04-17T18:57:34.899+0000", 
    "state": "FAILED", 
    "statusPath": "/jobs/refresh_pools_8cf2f0c0-27cc-447d-9e16-32ce56a06aba", 
    "targetId": "admin", 
    "targetType": "owner", 
    "updated": "2012-04-17T18:57:36.129+0000"
}

^^^ BANG! This time refresh pool failed.   See catalina.out below...



Additional info:
[root@jsefler-f14-candlepin candlepin]# tail -f /var/log/tomcat6/catalina.out

Apr 17 14:57:36 [QuartzScheduler_Worker-2] INFO  org.candlepin.policy.js.pool.JsPoolRules - Updating pool: 8a90f81436c19dcd0136c1a2a3780a17
Apr 17 14:57:36 [QuartzScheduler_Worker-2] INFO  org.candlepin.policy.js.pool.JsPoolRules -    No updates required.
Apr 17 14:57:36 [QuartzScheduler_Worker-2] INFO  org.candlepin.policy.js.pool.JsPoolRules - Updating pool: 8a90f81436c19dcd0136c1a88c1c0a30
Apr 17 14:57:36 [QuartzScheduler_Worker-2] ERROR org.quartz.core.JobRunShell - Job async group.refresh_pools_8cf2f0c0-27cc-447d-9e16-32ce56a06aba threw an unhandled Exception: 
org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (rules#846)
	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1773)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
	at org.mozilla.javascript.gen.c1._c34(rules:846)
	at org.mozilla.javascript.gen.c1.call(rules)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
	at org.mozilla.javascript.gen.c1.call(rules)
	at org.candlepin.policy.js.JsRules.invokeMethod(JsRules.java:102)
	at org.candlepin.policy.js.JsRules.invokeMethod(JsRules.java:116)
	at org.candlepin.policy.js.pool.JsPoolRules.updatePools(JsPoolRules.java:88)
	at org.candlepin.controller.CandlepinPoolManager.updatePoolsForSubscription(CandlepinPoolManager.java:252)
	at org.candlepin.controller.CandlepinPoolManager.refreshPoolsWithoutRegeneration(CandlepinPoolManager.java:173)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411.CGLIB$refreshPoolsWithoutRegeneration$20(<generated>)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411$$FastClassByGuice$$a1b15a30.invoke(<generated>)
	at com.google.inject.internal.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.google.inject.ProxyFactory$1.intercept(ProxyFactory.java:53)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411.refreshPoolsWithoutRegeneration(<generated>)
	at org.candlepin.controller.CandlepinPoolManager.refreshPools(CandlepinPoolManager.java:199)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411.CGLIB$refreshPools$2(<generated>)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411$$FastClassByGuice$$a1b15a30.invoke(<generated>)
	at com.google.inject.internal.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.google.inject.ProxyFactory$1.intercept(ProxyFactory.java:53)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411.refreshPools(<generated>)
	at org.candlepin.pinsetter.tasks.RefreshPoolsJob.execute(RefreshPoolsJob.java:66)
	at org.candlepin.pinsetter.tasks.RefreshPoolsJob$$EnhancerByGuice$$c6911917.CGLIB$execute$0(<generated>)
	at org.candlepin.pinsetter.tasks.RefreshPoolsJob$$EnhancerByGuice$$c6911917$$FastClassByGuice$$b60d6a44.invoke(<generated>)
	at com.google.inject.internal.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.google.inject.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
	at com.wideplay.warp.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:68)
	at com.google.inject.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
	at com.google.inject.InterceptorStackCallback.intercept(InterceptorStackCallback.java:44)
	at org.candlepin.pinsetter.tasks.RefreshPoolsJob$$EnhancerByGuice$$c6911917.execute(<generated>)
	at org.candlepin.pinsetter.core.TransactionalPinsetterJob.execute(TransactionalPinsetterJob.java:50)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
Caused by: java.lang.NullPointerException
	at org.candlepin.policy.js.pool.PoolHelper.copyProductIDAttributesOntoPool(PoolHelper.java:221)
	at org.candlepin.policy.js.pool.PoolHelper.copyProductAttributesOntoPool(PoolHelper.java:186)
	at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
	... 35 more
Apr 17 14:57:36 [QuartzScheduler_Worker-2] ERROR org.quartz.core.ErrorLogger - Job (async group.refresh_pools_8cf2f0c0-27cc-447d-9e16-32ce56a06aba threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (rules#846)]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:210)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (rules#846)
	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1773)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
	at org.mozilla.javascript.gen.c1._c34(rules:846)
	at org.mozilla.javascript.gen.c1.call(rules)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
	at org.mozilla.javascript.gen.c1.call(rules)
	at org.candlepin.policy.js.JsRules.invokeMethod(JsRules.java:102)
	at org.candlepin.policy.js.JsRules.invokeMethod(JsRules.java:116)
	at org.candlepin.policy.js.pool.JsPoolRules.updatePools(JsPoolRules.java:88)
	at org.candlepin.controller.CandlepinPoolManager.updatePoolsForSubscription(CandlepinPoolManager.java:252)
	at org.candlepin.controller.CandlepinPoolManager.refreshPoolsWithoutRegeneration(CandlepinPoolManager.java:173)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411.CGLIB$refreshPoolsWithoutRegeneration$20(<generated>)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411$$FastClassByGuice$$a1b15a30.invoke(<generated>)
	at com.google.inject.internal.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.google.inject.ProxyFactory$1.intercept(ProxyFactory.java:53)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411.refreshPoolsWithoutRegeneration(<generated>)
	at org.candlepin.controller.CandlepinPoolManager.refreshPools(CandlepinPoolManager.java:199)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411.CGLIB$refreshPools$2(<generated>)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411$$FastClassByGuice$$a1b15a30.invoke(<generated>)
	at com.google.inject.internal.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.google.inject.ProxyFactory$1.intercept(ProxyFactory.java:53)
	at org.candlepin.controller.CandlepinPoolManager$$EnhancerByGuice$$defb8411.refreshPools(<generated>)
	at org.candlepin.pinsetter.tasks.RefreshPoolsJob.execute(RefreshPoolsJob.java:66)
	at org.candlepin.pinsetter.tasks.RefreshPoolsJob$$EnhancerByGuice$$c6911917.CGLIB$execute$0(<generated>)
	at org.candlepin.pinsetter.tasks.RefreshPoolsJob$$EnhancerByGuice$$c6911917$$FastClassByGuice$$b60d6a44.invoke(<generated>)
	at com.google.inject.internal.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at com.google.inject.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
	at com.wideplay.warp.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:68)
	at com.google.inject.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:64)
	at com.google.inject.InterceptorStackCallback.intercept(InterceptorStackCallback.java:44)
	at org.candlepin.pinsetter.tasks.RefreshPoolsJob$$EnhancerByGuice$$c6911917.execute(<generated>)
	at org.candlepin.pinsetter.core.TransactionalPinsetterJob.execute(TransactionalPinsetterJob.java:50)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
	... 1 more
Caused by: java.lang.NullPointerException
	at org.candlepin.policy.js.pool.PoolHelper.copyProductIDAttributesOntoPool(PoolHelper.java:221)
	at org.candlepin.policy.js.pool.PoolHelper.copyProductAttributesOntoPool(PoolHelper.java:186)
	at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
	... 35 more
^C

Comment 1 William Poteat 2012-04-27 17:55:05 UTC
master commit 027f80c6f89ac34cff2e0efac211b9f84f7251bb

Comment 2 John Sefler 2012-04-30 17:05:55 UTC
Verified Version...

[root@jsefler-f14-candlepin candlepin]# git branch
* master
[root@jsefler-f14-candlepin candlepin]# git show | head -n1
commit b196708d47d4ab0d158ae72af53e1b0d8ec8cabb

Same scenario in comment 0 no longer fails on the refresh pool job.

Comment 3 Bryan Kearney 2012-07-17 13:04:28 UTC
Marking all community bugs modified or beyong as closed.