Package eu.tneitzel.rmg.exceptions
Class UnexpectedCharacterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- eu.tneitzel.rmg.exceptions.UnexpectedCharacterException
-
- All Implemented Interfaces:
Serializable
public class UnexpectedCharacterException extends Exception
UnexpectedCharacterException may be thrown during the dynamic creation of RMI code (guess action with --create-samples switch). It is caused by the presence of dangerous characters within bound or class names. The filtering in this regard is very strict, but can be disabled by using the --trusted switch after reviewing the corresponding names. The reason for this filtering is simple: rmg uses the bound names from the RMI registry within of the file names for the sample files. Bound names can contain arbitrary characters, which includes e.g. path traversal sequences.- Author:
- Tobias Neitzel (@qtc_de)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnexpectedCharacterException()Constructor with zero arguments.UnexpectedCharacterException(String message)Constructor with message argument.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnexpectedCharacterException
public UnexpectedCharacterException()
Constructor with zero arguments.
-
UnexpectedCharacterException
public UnexpectedCharacterException(String message)
Constructor with message argument.- Parameters:
message- exception message.
-
-