-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from qtc-de/develop
Prepare v3.1.0 Release
- Loading branch information
Showing
61 changed files
with
1,015 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
beanshooter/src/de/qtc/beanshooter/exceptions/GlassFishException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package de.qtc.beanshooter.exceptions; | ||
|
||
import de.qtc.beanshooter.io.Logger; | ||
|
||
/** | ||
* The GlassFishException is thrown when GlassFish specific error messages | ||
* are observed during a JMX login attempt. | ||
* | ||
* @author Tobias Neitzel (@qtc_de) | ||
*/ | ||
public class GlassFishException extends AuthenticationException { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public GlassFishException(Exception e) | ||
{ | ||
super(e, false); | ||
} | ||
|
||
public GlassFishException(Exception e, boolean showDetails) | ||
{ | ||
super(e, showDetails); | ||
} | ||
|
||
public void printStackTrace() | ||
{ | ||
if (origException.getMessage().contains("AdminLoginModule$PrincipalCallback")) | ||
{ | ||
Logger.lineBreak(); | ||
Logger.printlnMixedBlue("The following stacktrace might be misleading. See", "https://github.com/eclipse-ee4j/glassfish/issues/24223"); | ||
Logger.printlnMixedYellow("Summarized: The error is probably caused by", "missing or invalid", "credentials."); | ||
Logger.lineBreak(); | ||
} | ||
|
||
origException.printStackTrace(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
beanshooter/src/de/qtc/beanshooter/exceptions/PluginException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package de.qtc.beanshooter.exceptions; | ||
|
||
/** | ||
* Can be raised by plugins. Beanshooter always aborts upon encountering such an exception. | ||
* | ||
* @author Tobias Neitzel (@qtc_de) | ||
*/ | ||
public class PluginException extends Exception | ||
{ | ||
private static final long serialVersionUID = 1L; | ||
protected final Exception origException; | ||
|
||
public PluginException() | ||
{ | ||
this(null, null); | ||
} | ||
|
||
public PluginException(String message) | ||
{ | ||
this(message, null); | ||
} | ||
|
||
public PluginException(String message, Exception e) | ||
{ | ||
super(message); | ||
origException = e; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.