Bug 515596

Summary: packages.removePackage throws "unhandled internal exception: null"
Product: Red Hat Satellite 5 Reporter: John Matthews <jmatthew>
Component: APIAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 530CC: cperry, jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-15 12:36:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 462714    

Description John Matthews 2009-08-04 21:15:57 UTC
Description of problem:

I'm trying to delete custom packages through the api. Each time I attempt to delete a package I get an exception.

xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: null'>


from tomcat log

2009-08-04 14:49:39,366 [TP-Processor15] ERROR com.redhat.rhn.frontend.xmlrpc.packages.PackagesHandler - 
java.lang.NullPointerException
        at com.redhat.rhn.manager.rhnpackage.PackageManager.schedulePackageRemoval(PackageManager.java:749)
        at com.redhat.rhn.frontend.xmlrpc.packages.PackagesHandler.removePackage(PackagesHandler.java:382)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)



Version-Release number of selected component (if applicable):
Stage ISO 7/24


How reproducible:
I see this on test1182 and on my upgrade stage sat rhndev1

Steps to Reproduce:
1. Create a custom channel
2. Push custom packages
3. Attempt to remove a package with packages.removePackage()
  
Actual results:
xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: null'>


Expected results:
package removed or a better exception than "unhandled internal exception"




Additional info:

Comment 2 Jan Pazdziora 2012-03-15 12:36:21 UTC
The traceback is the same as the one in bug 523146, closing as dupe.

*** This bug has been marked as a duplicate of bug 523146 ***