You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/06/04 18:45:32 UTC

[GitHub] [netbeans] peedeeboy opened a new pull request #1282: [NETBEANS-2306] Fix for missing resource AmazonJ2EEServerWizardComponent.containerLabel.text

peedeeboy opened a new pull request #1282: [NETBEANS-2306] Fix for missing resource AmazonJ2EEServerWizardComponent.containerLabel.text
URL: https://github.com/apache/netbeans/pull/1282
 
 
   *What this PR does*
   Fixes an exception preventing the Server wizard panel being display for AWS Elastic Beanstalk servers
   
   *Root cause*
   In the file `/enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/ui/serverplugin/Bundle.properties` there are the following entries:
   ```
   AmazonJ2EEServerWizardComponent.envFullURLLabel.text=\ \
   AmazonJ2EEServerWizardComponent.containerLabel.text=Container Type:
   ```
   Having a \ as the last character on the `AmazonJ2EEServerWizardComponent.envFullURLLabel.text=\ \` entry causes Java to consider the text on the following line as part of the value of the AmazonJ2EEServerWizardComponent.envFullURLLabel.text property.
   
   Hence the AmazonJ2EEServerWizardComponent.containerLabel.text property can't be found when the Server Wizard tries to render
   
   *Files changed*
   * /enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/ui/serverplugin/Bundle.properties
   Removed `\ \` so the AmazonJ2EEServerWizardComponent.envFullURLLabel.text property will have empty String as it's default value.
   
   *Testing*
   * Create a new JavaEE Application
   * Choose to add a server.  Choose Amazon Beanstalk.  Click Next >
   Before this PR:
   * Server Wizard will not be displayed.
   * Checking the Notifications window will reveal the exception 'java.util.MissingResourceException: Can't find resource for bundle org.openide.util.NbBundle$PBundle, key AmazonJ2EEServerWizardComponent.containerLabel.text'
   After this PR:
   * AWS Beanstalk server wizard displayed as expected

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists