Java Doc for InvalidJadException.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » installer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.midp.installer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.io.IOException
            com.sun.midp.installer.InvalidJadException

InvalidJadException
public class InvalidJadException extends java.io.IOException (Code)
Thrown when a downloaded JAD is discovered to be invalid. This includes this signed JAD's also. Since some of the conditions that cause this exception may be recovered from, this exception contains a specific RC (reason code) that so corrective action can be performed.


Field Summary
final public static  intALREADY_INSTALLED
     (39) The JAD matches a version of a suite already installed.
final public static  intATTRIBUTE_MISMATCH
     (50) A attribute in both the JAD and JAR manifest does not match. For trusted suites only.
final public static  intAUTHORIZATION_FAILURE
     (49) Application authorization failure.
final public static  intCANNOT_AUTH
     (35) Server does not support basic authentication.
final public static  intCA_DISABLED
     (60) Indicates that trusted CA for this suite has been disable for software authorization.
final public static  intCONTENT_HANDLER_CONFLICT
     (55) The installation of a content handler would conflict with an already installed handler.
final public static  intCORRUPT_JAR
     (36) An entry could not be read from the JAR.
final public static  intCORRUPT_PROVIDER_CERT
     (5) The content provider certificate cannot be decoded.
final public static  intCORRUPT_SIGNATURE
     (8) The JAR signature cannot be decoded.
final public static  intDEVICE_INCOMPATIBLE
     (40) The device does not support either the configuration or profile in the JAD.
final public static  intEXPIRED_CA_KEY
     (12) The CA's public key has expired.
final public static  intEXPIRED_PROVIDER_CERT
     (11) The content provider certificate is expired.
final public static  intINSUFFICIENT_STORAGE
     (30) Not enough storage for this suite to be installed The extra data will be storage needed for the suite in K bytes rounded up.
final public static  intINVALID_CONTENT_HANDLER
     (54) The MicroEdition-Handler-<n> attribute has invalid values.
final public static  intINVALID_JAD_TYPE
     (37) The server did not hava a resource with the correct type (code 406) or the JAD downloaded has the wrong media type.
final public static  intINVALID_JAD_URL
     (43) The JAD URL is invalid.
final public static  intINVALID_JAR_TYPE
     (38) The server did not hava a resource with the correct type (code 406) or the JAR downloaded has the wrong media type.
final public static  intINVALID_JAR_URL
     (44) The JAR URL is invalid.
final public static  intINVALID_KEY
     (28) A key for an attribute is not formatted correctly.
final public static  intINVALID_PAYMENT_INFO
     (58) Indicates that the payment information provided with the MIDlet suite is incomplete or incorrect.
final public static  intINVALID_PROVIDER_CERT
     (7) The signature of the content provider certificate is invalid.
final public static  intINVALID_SIGNATURE
     (9) The signature of the JAR is invalid.
final public static  intINVALID_VALUE
     (29) A value for an attribute is not formatted correctly.
final public static  intINVALID_VERSION
     (16) The format of the version is invalid.
final public static  intJAD_MOVED
     (34) The JAD URL is for an installed suite but different than the original JAD URL.
final public static  intJAD_NOT_FOUND
     (2) The JAD was not found.
final public static  intJAD_SERVER_NOT_FOUND
     (1) The server for the JAD was not found.
final public static  intJAR_CLASSES_VERIFICATION_FAILED
     (56) Not all classes within JAR package can be successfully verified with class verifier.
final public static  intJAR_NOT_FOUND
     (20) The JAR was not found at the URL given in the JAD.
final public static  intJAR_SERVER_NOT_FOUND
     (19) The server for the JAR was not found at the URL given in the JAD.
final public static  intJAR_SIZE_MISMATCH
     (31) The JAR downloaded was not size in the JAD.
final public static  intMISSING_CONFIGURATION
     (41) The configuration is missing from the manifest.
final public static  intMISSING_JAR_SIZE
     (21) The JAR size is missing.
final public static  intMISSING_JAR_URL
     (18) The URL for the JAR is missing.
final public static  intMISSING_PROFILE
     (42) The profile is missing from the manifest.
final public static  intMISSING_PROVIDER_CERT
     (4) The content provider certificate is missing.
final public static  intMISSING_SUITE_NAME
     (13) The name of MIDlet suite is missing.
final public static  intMISSING_VENDOR
     (14) The vendor is missing.
final public static  intMISSING_VERSION
     (15) The version is missing.
final public static  intNEW_VERSION
     (32) This suite is newer that the one currently installed.
final public static  intOLD_VERSION
     (17) This suite is older that the one currently installed.
final public static  intPROXY_AUTH
     (51) Indicates that the user must first authenticate with the proxy.
final public static  intPUSH_CLASS_FAILURE
     (48) The class in a push attribute is not in MIDlet-<n> attribute.
final public static  intPUSH_DUP_FAILURE
     (45) The connection in a push entry is already taken.
final public static  intPUSH_FORMAT_FAILURE
     (46) The format of a push attribute has an invalid format.
final public static  intPUSH_PROTO_FAILURE
     (47) The connection in a push attribute is not supported.
final public static  intSUITE_NAME_MISMATCH
     (25) The MIDlet suite name does not match the one in the JAR manifest.
final public static  intTOO_MANY_PROPS
     (53) Indicates that either the JAD or manifest has too many properties to fit into memory.
final public static  intTRUSTED_OVERWRITE_FAILURE
     (52) Indicates that the user tried to overwrite a trusted suite with an untrusted suite during an update.
final public static  intUNAUTHORIZED
     (33) Webserver authentication required or failed.
final public static  intUNKNOWN_CA
     (6) The CA that issued the content provider certificate is unknown.
final public static  intUNSUPPORTED_CERT
     (10) The content provider certificate is a supported version.
final public static  intUNSUPPORTED_CHAR_ENCODING
     (61) Indicates that the character encoding specified in the MIME type is not supported.
final public static  intUNSUPPORTED_PAYMENT_INFO
     (57) Indicates that the payment information provided with the MIDlet suite is incompatible with the current implementation.
final public static  intUNTRUSTED_PAYMENT_SUITE
     (59) Indicates that the MIDlet suite has payment provisioning information but it is not trusted.
final public static  intVENDOR_MISMATCH
     (27) The vendor does not match the one in the JAR manifest.
final public static  intVERSION_MISMATCH
     (26) The version does not match the one in the JAR manifest.

Constructor Summary
public  InvalidJadException(int theReason)
     Constructs a InvalidJadException with the specified reason.
public  InvalidJadException(int theReason, String theExtraData)
     Constructs a InvalidJadException with the specified reason and extra data.

Method Summary
public  StringgetExtraData()
     Returns an extra data String to help to resolve the problem.
public  intgetReason()
     Returns specific reason why the exception was thrown.

Field Detail
ALREADY_INSTALLED
final public static int ALREADY_INSTALLED(Code)
(39) The JAD matches a version of a suite already installed. The extra data is the installed version.



ATTRIBUTE_MISMATCH
final public static int ATTRIBUTE_MISMATCH(Code)
(50) A attribute in both the JAD and JAR manifest does not match. For trusted suites only. The extra data is the name of the attribute.



AUTHORIZATION_FAILURE
final public static int AUTHORIZATION_FAILURE(Code)
(49) Application authorization failure. The extra data is the name of the permission.



CANNOT_AUTH
final public static int CANNOT_AUTH(Code)
(35) Server does not support basic authentication.



CA_DISABLED
final public static int CA_DISABLED(Code)
(60) Indicates that trusted CA for this suite has been disable for software authorization. The extra data contains the CA's name.



CONTENT_HANDLER_CONFLICT
final public static int CONTENT_HANDLER_CONFLICT(Code)
(55) The installation of a content handler would conflict with an already installed handler.



CORRUPT_JAR
final public static int CORRUPT_JAR(Code)
(36) An entry could not be read from the JAR. The extra data is the entry name.



CORRUPT_PROVIDER_CERT
final public static int CORRUPT_PROVIDER_CERT(Code)
(5) The content provider certificate cannot be decoded.



CORRUPT_SIGNATURE
final public static int CORRUPT_SIGNATURE(Code)
(8) The JAR signature cannot be decoded.



DEVICE_INCOMPATIBLE
final public static int DEVICE_INCOMPATIBLE(Code)
(40) The device does not support either the configuration or profile in the JAD.



EXPIRED_CA_KEY
final public static int EXPIRED_CA_KEY(Code)
(12) The CA's public key has expired. The extra data will be the CA's name as a String.



EXPIRED_PROVIDER_CERT
final public static int EXPIRED_PROVIDER_CERT(Code)
(11) The content provider certificate is expired. The extra data will be the subject's name as a String.



INSUFFICIENT_STORAGE
final public static int INSUFFICIENT_STORAGE(Code)
(30) Not enough storage for this suite to be installed The extra data will be storage needed for the suite in K bytes rounded up.



INVALID_CONTENT_HANDLER
final public static int INVALID_CONTENT_HANDLER(Code)
(54) The MicroEdition-Handler-<n> attribute has invalid values. The classname may be missing or there are too many fields



INVALID_JAD_TYPE
final public static int INVALID_JAD_TYPE(Code)
(37) The server did not hava a resource with the correct type (code 406) or the JAD downloaded has the wrong media type. In the second case the extra data is the Media-Type from the response.



INVALID_JAD_URL
final public static int INVALID_JAD_URL(Code)
(43) The JAD URL is invalid.



INVALID_JAR_TYPE
final public static int INVALID_JAR_TYPE(Code)
(38) The server did not hava a resource with the correct type (code 406) or the JAR downloaded has the wrong media type. In the second case the extra data is the Media-Type from the response.



INVALID_JAR_URL
final public static int INVALID_JAR_URL(Code)
(44) The JAR URL is invalid. The extra data is the JAR URL.



INVALID_KEY
final public static int INVALID_KEY(Code)
(28) A key for an attribute is not formatted correctly. The extra data is the key or the line of the attribute.



INVALID_PAYMENT_INFO
final public static int INVALID_PAYMENT_INFO(Code)
(58) Indicates that the payment information provided with the MIDlet suite is incomplete or incorrect.



INVALID_PROVIDER_CERT
final public static int INVALID_PROVIDER_CERT(Code)
(7) The signature of the content provider certificate is invalid. The extra data will be the subject's name as a String.



INVALID_SIGNATURE
final public static int INVALID_SIGNATURE(Code)
(9) The signature of the JAR is invalid.



INVALID_VALUE
final public static int INVALID_VALUE(Code)
(29) A value for an attribute is not formatted correctly. The extra data is the key of the attribute.



INVALID_VERSION
final public static int INVALID_VERSION(Code)
(16) The format of the version is invalid.



JAD_MOVED
final public static int JAD_MOVED(Code)
(34) The JAD URL is for an installed suite but different than the original JAD URL. The extra data will be previous JAD URL.



JAD_NOT_FOUND
final public static int JAD_NOT_FOUND(Code)
(2) The JAD was not found.



JAD_SERVER_NOT_FOUND
final public static int JAD_SERVER_NOT_FOUND(Code)
(1) The server for the JAD was not found.



JAR_CLASSES_VERIFICATION_FAILED
final public static int JAR_CLASSES_VERIFICATION_FAILED(Code)
(56) Not all classes within JAR package can be successfully verified with class verifier.



JAR_NOT_FOUND
final public static int JAR_NOT_FOUND(Code)
(20) The JAR was not found at the URL given in the JAD. The extra data is the JAR URL.



JAR_SERVER_NOT_FOUND
final public static int JAR_SERVER_NOT_FOUND(Code)
(19) The server for the JAR was not found at the URL given in the JAD. The extra data is the JAR URL.



JAR_SIZE_MISMATCH
final public static int JAR_SIZE_MISMATCH(Code)
(31) The JAR downloaded was not size in the JAD.



MISSING_CONFIGURATION
final public static int MISSING_CONFIGURATION(Code)
(41) The configuration is missing from the manifest.



MISSING_JAR_SIZE
final public static int MISSING_JAR_SIZE(Code)
(21) The JAR size is missing.



MISSING_JAR_URL
final public static int MISSING_JAR_URL(Code)
(18) The URL for the JAR is missing.



MISSING_PROFILE
final public static int MISSING_PROFILE(Code)
(42) The profile is missing from the manifest.



MISSING_PROVIDER_CERT
final public static int MISSING_PROVIDER_CERT(Code)
(4) The content provider certificate is missing.



MISSING_SUITE_NAME
final public static int MISSING_SUITE_NAME(Code)
(13) The name of MIDlet suite is missing.



MISSING_VENDOR
final public static int MISSING_VENDOR(Code)
(14) The vendor is missing.



MISSING_VERSION
final public static int MISSING_VERSION(Code)
(15) The version is missing.



NEW_VERSION
final public static int NEW_VERSION(Code)
(32) This suite is newer that the one currently installed. The extra data is the installed version.



OLD_VERSION
final public static int OLD_VERSION(Code)
(17) This suite is older that the one currently installed. The extra data is the installed version.



PROXY_AUTH
final public static int PROXY_AUTH(Code)
(51) Indicates that the user must first authenticate with the proxy.



PUSH_CLASS_FAILURE
final public static int PUSH_CLASS_FAILURE(Code)
(48) The class in a push attribute is not in MIDlet-<n> attribute. The extra data is the URL of the failed connection.



PUSH_DUP_FAILURE
final public static int PUSH_DUP_FAILURE(Code)
(45) The connection in a push entry is already taken. The extra data is the URL of the failed connection.



PUSH_FORMAT_FAILURE
final public static int PUSH_FORMAT_FAILURE(Code)
(46) The format of a push attribute has an invalid format. The extra data is the URL of the failed connection.



PUSH_PROTO_FAILURE
final public static int PUSH_PROTO_FAILURE(Code)
(47) The connection in a push attribute is not supported. The extra data is the URL of the failed connection.



SUITE_NAME_MISMATCH
final public static int SUITE_NAME_MISMATCH(Code)
(25) The MIDlet suite name does not match the one in the JAR manifest.



TOO_MANY_PROPS
final public static int TOO_MANY_PROPS(Code)
(53) Indicates that either the JAD or manifest has too many properties to fit into memory.



TRUSTED_OVERWRITE_FAILURE
final public static int TRUSTED_OVERWRITE_FAILURE(Code)
(52) Indicates that the user tried to overwrite a trusted suite with an untrusted suite during an update. The extra data is the name of signer of the current version.



UNAUTHORIZED
final public static int UNAUTHORIZED(Code)
(33) Webserver authentication required or failed.



UNKNOWN_CA
final public static int UNKNOWN_CA(Code)
(6) The CA that issued the content provider certificate is unknown. The extra data will be the CA's name as a String.



UNSUPPORTED_CERT
final public static int UNSUPPORTED_CERT(Code)
(10) The content provider certificate is a supported version.



UNSUPPORTED_CHAR_ENCODING
final public static int UNSUPPORTED_CHAR_ENCODING(Code)
(61) Indicates that the character encoding specified in the MIME type is not supported.



UNSUPPORTED_PAYMENT_INFO
final public static int UNSUPPORTED_PAYMENT_INFO(Code)
(57) Indicates that the payment information provided with the MIDlet suite is incompatible with the current implementation.



UNTRUSTED_PAYMENT_SUITE
final public static int UNTRUSTED_PAYMENT_SUITE(Code)
(59) Indicates that the MIDlet suite has payment provisioning information but it is not trusted.



VENDOR_MISMATCH
final public static int VENDOR_MISMATCH(Code)
(27) The vendor does not match the one in the JAR manifest.



VERSION_MISMATCH
final public static int VERSION_MISMATCH(Code)
(26) The version does not match the one in the JAR manifest.




Constructor Detail
InvalidJadException
public InvalidJadException(int theReason)(Code)
Constructs a InvalidJadException with the specified reason.
Parameters:
  theReason - specific RC (reason code)



InvalidJadException
public InvalidJadException(int theReason, String theExtraData)(Code)
Constructs a InvalidJadException with the specified reason and extra data.
Parameters:
  theReason - specific reason code
Parameters:
  theExtraData - an object that contains data to solve the problem




Method Detail
getExtraData
public String getExtraData()(Code)
Returns an extra data String to help to resolve the problem. extra data string, may be null,type depends on the reason for the exception



getReason
public int getReason()(Code)
Returns specific reason why the exception was thrown. the RC (reason code)





Methods inherited from java.lang.Throwable
public String getMessage()(Code)(Java Doc)
native public void printStackTrace()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.