question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show parameter names when configuration issue

See original GitHub issue

Your checklist for this issue

🚨 Please review the guidelines for contributing to this repository.

  • [ x ] Link to any upstream changes that might be required (for example Jenkins Core pull request)

Feature Request

I am currently debugging an error that looks like this:

Caused by: io.jenkins.plugins.casc.ConfiguratorException: : Failed to construct instance of class hudson.plugins.ec2.SlaveTemplate.
 Constructor: public hudson.plugins.ec2.SlaveTemplate(java.lang.String,java.lang.String,hudson.plugins.ec2.SpotConfiguration,java.lang.String,java.lang.String,com.amazonaws.services.ec2.model.InstanceType,boolean,java.lang.String,hudson.model.Node$Mode,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,hudson.plugins.ec2.AMITypeData,java.lang.String,boolean,java.lang.String,java.util.List,java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,java.lang.String,boolean,java.lang.String,boolean,boolean,boolean,hudson.plugins.ec2.ConnectionStrategy,int).
 Arguments: [java.lang.String, null, null, java.lang.String, java.lang.String, com.amazonaws.services.ec2.model.InstanceType, java.lang.Boolean, java.lang.String, null, java.lang.String, null, null, java.lang.String, java.lang.String, java.lang.String, null, null, java.lang.Boolean, java.lang.String, java.util.ArrayList, java.lang.String, null, java.lang.String, java.lang.Boolean, java.lang.Boolean, java.lang.Boolean, null, java.lang.Boolean, null, java.lang.Boolean, java.lang.Boolean, java.lang.Boolean, null, java.lang.Integer]

I have no way to reconcile what arguments are expected versus what was supplied. It would be really nice to know what it was looking for when it failed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
sladyn98commented, Jun 23, 2019

Cool so we do know the actual prameters we could use reflection and getGenericParameterTypes() to get the param types and configure the Exception message to include the names and types.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Viewing method parameter information | WebStorm ... - JetBrains
Parameter hints show the names of parameters in calls of methods and functions. Parameter hints are shown right in the editor next to...
Read more >
Android Studio 3.0 parameter hints information not always ...
Go to File > Settings > Editor > General > Appearance > Show parameter name hints; Click Configure; Language: -> Java; Options ->...
Read more >
The BIG-IP ASM system may fail to display parameter names ...
The BIG-IP ASM system may fail to display parameter names configured for an allowed URL. This issue occurs when all of the following ......
Read more >
Inline Parameter Name Hints - Help | JetBrains Rider
When your caret is at a method call showing parameter name hints, you can press Alt+Enter , choose Configure Parameter Name Hints, or...
Read more >
5 Parameters for the sqlnet.ora File - Oracle Help Center
This chapter provides complete listing of the sqlnet.ora file configuration parameters. This chapter includes the following topics:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found