Catch user entry error in JOptionPane.showInputDialog()
i just want to know if the user entered a String instead of a int...
i tryed instanceof but didnt worked..
m_sQuantite = JOptionPane.showInputDialog("How much do you need : " + itmSelect.toString());
what r u about to ask, what the statement returns.
Similar Messages
-
JOptionPane.showInputDialog error checking?
menu = JOptionPane.showInputDialog("What would you like to do next: \n" +
"1: Enter another person (" + (data.length - index - 1) + " entries left)\n" +
"2: Display data sorted by First Name\n" +
"3: Display data sorted by Last Name\n" +
"4: Display data sorted by Birth Date\n" +
"5: Search data by First Name\n" +
"6: Search data by Last Name\n" +
"7: Search data by Birth Date\n\n" +
"0: Exit");How can I error check that to make only those values will be entered. I thought I would be able to say something like, if(menu != "0") and so on, but that doesn't seem to work, neither does if(menu == null). Thanks in advance for any help, I am probably just doing something stupid.You will get more chance on a suitable answer if you post this Swing related question in the Swing forum: http://forum.java.sun.com/forum.jspa?forumID=57
-
How to user Error Trigger for mapping - trying to catch row-based errors
Hello everyone,
Has anyone managed to use the error trigger for a mapping?
I created a row based map with the right parameters (i set the error trigger procedure which I already created in the database).
For this map after run i have 5 warnings which appear in the interface but the error trigger procedure is not executed.
I set the max errors to 3 so after run the map should end with errors instead of warnings.
Still not executing the error trigger procedure.
What am i doing wrong?
Please help as i really need a way to "catch" row based errors - having multiple target tables sucks.
Thank you,
Irina
Edited by: Irina on Jul 30, 2009 1:32 PM
Edited by: Irina on Jul 30, 2009 3:38 PMIt seems nobody knows what I'm talking about - no documentation on it either ... not even in the user guide ... not even on google ... well, just saying what it is doesn't count :D
-
OID Servlet error - Error "When Configuring User Entries"
Please forgive the cross post.
I am trying to modify the "Create User" screen within OID.
The on-line help on the main page suggest that I can do this (see Configuring User Entries). Using these instructions, when I goto the "Configuration Tab" and then click "User Entry" I receive the following error.
Servlet error: Renderer failed: java.lang.NoClassDefFoundError
Assuming I get this fixed, is the right path to creating a custom self service registration page?
Thanks!
Bill G...Please forgive the cross post.
I am trying to modify the "Create User" screen within OID.
The on-line help on the main page suggest that I can do this (see Configuring User Entries). Using these instructions, when I goto the "Configuration Tab" and then click "User Entry" I receive the following error.
Servlet error: Renderer failed: java.lang.NoClassDefFoundError
Assuming I get this fixed, is the right path to creating a custom self service registration page?
Thanks!
Bill G... -
JOptionPane.showInputDialog() error
I try this...
String sCount;
int iCount;
sCount = JOptionPane.showInputDialog("Enter a number");
iCount = (int)sCount; //inconvertible type
I know that there aren't the same type but how i get an int from the user by a dialog???I try this...
String sCount;
int iCount;
sCount = JOptionPane.showInputDialog("Enter a
number");
iCount = (int)sCount; //inconvertible type
I know that there aren't the same type but how i get
an int from the user by a dialog???a bunch of ways, here's three
iCount = Integer.decode(JOptionPane.showInputDialog("Enter a > number")).intValue();
or
iCount = Integer.parseInt( JOptionPane.showInputDialog("Enter a > number"));
or, even
iCount = Integer.valueOf( JOptionPane.showInputDialog("Enter a > number")).hashCode(); -
Check user entry in Customer Exit Variable in i_step2
Hi Folks,
at the moment I'm facing a challenging problem. In an BW Query i have a Customer Exit defined as "not ready for Input" to catch the Variable in I_Step = 2 and fill by a certain algorithm. When i change the CE Variable to "Inputready", the user can enter values, but i have no chance to react on these values as i_step = 2 will not b reached during execution- And this behaviour is correct. BUT is there any chance to Check user entries in an Customer Exit variable and change this somehow in des code?
Thanks for all replies.
BR,
MaikHi there,
It is possibel depending on what you wish to accomplish.
You can create two variables for the same characteristic.
The first is an input ready variable for the user to enter the data and the second is a not input ready variable CE where you can in step 2 process the data entered from the variable ready for input.
You can than fill the CE variable with any data, but you will have the variable restricted by the two variables (the ready for input and the CE).
But for validating you could throw an error message based on the variable input ready.
Diogo. -
Comple errors using JOptionPane
I'm trying to write a Java program using JOptionPane dialog/display boxes that reads an integer and checks whether it is even using true/false statements. I also want the program must check if the number the user entered is between 1 and 1000.
I haven't found alot of help in the book I have and i've found some help in another forum but it doesn't seem to compile well, I get the following errors:
IntegerRead.java:39: cannot find symbol
symbol : method valueOf(java.lang.String)
location: class Integer
int number = Integer.valueOf(s);
^
Integer.java:13: cannot find symbol
symbol : class Scanner
location: class Integer
Scanner input = new Scanner( System.in );
^
Integer.java:13: cannot find symbol
symbol : class Scanner
location: class Integer
Scanner input = new Scanner( System.in );
Here is the code:
// Assignment 2.1: IntegerRead.java
// This program reads an integer, checks if it's even and is between 1 and 1000.
import javax.swing.JOptionPane; // program uses class JOptionPane
public class IntegerRead
public static boolean isNumber(String args)
if(args.length() > 3)
throw new IllegalArgumentException("Invalid argument");
else
boolean isNumber = false;
for(int i = 0; i < args.length(); i++)
char c = args.charAt(i);
if(Character.isDigit(c))
isNumber = true;
else
isNumber = false;
return isNumber;
public static boolean isEven(int aNumber)
int a = aNumber & 1;
return (a == 0);
public static void main(String args[])
String s = JOptionPane.showInputDialog("Please enter number between 0 to 999");
System.out.println("Is Number " + isNumber(s));
if(isNumber(s))
int number = Integer.valueOf(s);
System.out.println("Number " + number + "is Even " + isEven(number));
for(int i = 0; i < 999; i++)
System.out.println(i + " is " + isEven(i));
I know i'm missing very simple. I'm new and have tried to build upon what I have so far, but I can't figure it out.
Thanks....
Edited by: Scott.Dishman on Jul 9, 2008 4:07 PMYou have a class named Integer somewhere on your class path. Get rid of it or rename it. If you've already renamed your Integer.java file, you still need to delete the Integer.class file. You should never create your own class that has the same name as a class in the standard java.lang package.
-
JOptionPane.showInputDialog and the cancel button
so i'm using a JOptionPane.showInputDialog, and everything works except when i click the cancel button to exit the window, it gives me an error.
how can i remedy this?
here's a section of my code: (a is an array, as is b)
firstWord = JOptionPane.showInputDialog
("What company's sloagan is/was: "+a[count]+"?");
if(firstWord.equalsIgnoreCase(b[count]))
JOptionPane.showMessageDialog (null,
"Thats Right, the company was "+b[count]+".");
count++;
int YesNo = JOptionPane.showConfirmDialog (null,
"Do you want to play again?", "Choose One", JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE);
if(YesNo==1) //this should exit out if you click no
System.exit (0);
if(count==10)
JOptionPane.showMessageDialog(null,
"Game Over. You Won.");
System.exit (0);
else
JOptionPane.showMessageDialog (null,
"Sorry, you aren't that smart. Guess again.");
}]1- Seems like you misstyped your code tags...
2- When you say: "it gives me an error", please provide details (e.g. stack trace)
3- Read the API doc, it says: showInputDialog returns user's input, or null meaning the user canceled the input.
So firstWord.equalsIgnoreCase(b[count]) will throw a NullPointerException in that case.
You might check for null value.
Note:str1.equals(str2) will throw a NullPointerException when str1 is null, but str2 can be null without a NullPointerException being thrown:String str1 = null;
String str2 = "toto";
System.out.println(str1.equals(str2)); // NullPointerException
System.out.println(str2.equals(str1)); // ok (prints false) -
JOptionPane.showInputDialog and Focus
I have a program that allows the user to type in a String in a text box and when they hit the enter key the text will appear in a text area. I've also added a menu bar to the program. When the user clicks on File and then Connect from the menu bar I want a JOptionPane to pop up that asks for the user to type in a username and then prompt for a password. And I've gotten all of that to work. Now for the problem. I click on file from the menu bar and then connect and it prompts me for the username as it should. I am able to just type in a phrase in the text field of the username dialog box and hit the enter key and then it prompts me for my password. I am still able to type in a phrase in the text field of the password Dialog box, however when I hit the enter key, the Dialog box does not close as it did for the username Dialog box. It will still close if I click on the OK button, but just pressing the enter key does not close the Dialog box as it did when it prompted for a username. I'm thinking I need to direct the focus to the password dialog box, but not sure how to go about doing this. Any help in solving this problem would be greatly appreciated.
Here is my code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class TestJOptionPane extends JFrame implements ActionListener{
private static int borderwidth = 570;
private static int borderheight = 500;
private JPanel p1 = new JPanel();
private JMenu m1 = new JMenu("File");
private JMenuBar mb1 = new JMenuBar();
private JTextArea ta1 = new JTextArea("");
private JTextField tf1 =new JTextField();
private Container pane;
private static String s1, username, password;
private JMenuItem [] mia1 = {new JMenuItem("Connect"),new JMenuItem("DisConnect"),
new JMenuItem("New..."), new JMenuItem ("Open..."), new JMenuItem ("Save"),
new JMenuItem ("Save As..."), new JMenuItem ("Exit")};
public TestJOptionPane (){
pane = this.getContentPane();
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dispose();
System.exit(0);
setJMenuBar(mb1);
mb1.add(m1);
for(int j=0; j<mia1.length; j++){
m1.add(mia1[j]);
p1.setLayout( new BorderLayout(0,0));
setSize(borderwidth, borderheight);
pane.add(p1);
p1.add(tf1, BorderLayout.NORTH);
p1.add(ta1, BorderLayout.CENTER);
this.show();
tf1.addActionListener(this);
for(int j=0; j<mia1.length; j++){
mia1[j].addActionListener(this);
public void actionPerformed(ActionEvent e){
Object source = e.getSource();
if(source.equals(mia1 [0])){
username = JOptionPane.showInputDialog(pane, "Username");
password = JOptionPane.showInputDialog(pane, "Password");
if(source.equals(tf1)){
s1=tf1.getText();
ta1.append(s1+"\n");
s1="";
tf1.setText("");
public static void main(String args[]){
TestJOptionPane test= new TestJOptionPane();
}But using JOptionPane doesn't get the focus when you call itworks ok like this
import javax.swing.*;
import java.awt.event.*;
class Testing
public Testing()
final JPasswordField pwd = new JPasswordField(10);
ActionListener al = new ActionListener(){
public void actionPerformed(ActionEvent ae){
pwd.requestFocusInWindow();}};
javax.swing.Timer timer = new javax.swing.Timer(250,al);
timer.setRepeats(false);
timer.start();
int action = JOptionPane.showConfirmDialog(null, pwd,"Enter Password",JOptionPane.OK_CANCEL_OPTION);
if(action < 0)JOptionPane.showMessageDialog(null,"Cancel, X or escape key selected");
else JOptionPane.showMessageDialog(null,"Your password is "+new String(pwd.getPassword()));
System.exit(0);
public static void main(String args[]){new Testing();}
} -
User entry variable with exclude values
Hello All,
I created a user entry/ default value variable, which allows multiple single values and is optional entry. And I also got to exclude few values from this infoobject as well as have a variable. When I select and exclude my value from selsction and run the report, I get a system error and the varibale is converted to mandatory entry. The detail error message is displayed below. Any useful input will be awarded
Diagnosis
Variable &V1& is used in the query in such a way, that an optional entry is not possible.
For example, you might be using an "Exclude", or the variable might be connected using OR to additional selections for &V2& in the global filter, but is still displayed in the columns selections.
It is also not possible to use an optional parameter variable to fill an interval selection in either the from-field or the to-field.
System response
Procedure
If you are able to accept the mandatory entry, you need not do anything. Otherwise you must work with several variables in the query. You can use an optional interval variable to do this.
Procedure for System AdministrationHello ,
I did try creating a variable with the foll details:
Variable Type : User Entry / Default Value
Variable Represents : Multiple Single values
Variable entry optional
When I run the query it converts my variable to mandotary entry. but I want to have optional user entry variable.
Any help will be awarded -
JOptionPane.showInputDialog cancel brings up a blank box
String name = JOptionPane.showInputDialog(
null,
"My message",
"My title",
null,
null,
null) // real list of options deleted for brevityThis works okay, but when I press the cancel button, I get a blank warning JOptionPane (message box thingy)... how do I tailor the message in that? Been looking through the search results and API with little luck.handle it like so
try
String s = new JOptionPane.showInputDialog(null, "Enter input");
catch(Exception ee)
JOptionPane.showMessageDialog("Invalid input");
} -
Simple Feed from user entry variable to customer exit
Requirement, I am trying to populate the user entry date from variable single value
<b>ZP_userent'.</b> and then feed that date to customer exit variable <b>'ZP_custexit'.</b> to calculate the range User entry date -- '01012099'.
but it is not populating any values in report
Error can not populate 'ZP_custexit'. Please correct error i think date format is not correct
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
IF I_STEP = 2 AND I_VNAM = 'ZP_custexit'.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'ZP_userent'.
CLEAR L_S_RANGE.
L_s_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(8).
L_S_RANGE-HIGH = '01012099'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
Thanks
SoniyaHi,
May be a simple solution remove
CLEAR L_S_RANGE.
And probably it'll be ok
Best regards,
Christophe -
Unknown User Type Error using Add-AzureAccount
Using the following code in an Azure automation runbook from the Portal (attempting to start a VM):
workflow VMStart
$Cred = Get-AutomationPSCredential –Name automationuser
Add-AzureAccount -Credential $Cred
Select-AzureSubscription -SubscriptionName "MySubscription"
Start-AzureVM -ServiceName "MyServiceName" -Name "MyVirtualMachine" -force
I get the following errors in the Output Pane:
1/15/2015 4:53:09 PM, Error: Add-AzureAccount : unknown_user_type: Unknown User Type
At VMStart:7 char:7
+
+ CategoryInfo : CloseError: (:) [Add-AzureAccount], AadAuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.AddAzureAccount
1/15/2015 4:53:10 PM, Error: Select-AzureSubscription : The subscription named 'MySubscription' cannot be found. Use Set-AzureSubscription to
initialize the subscription data.
Parameter name: name
At VMStart:9 char:9
+
+ CategoryInfo : CloseError: (:) [Select-AzureSubscription], ArgumentException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.SelectAzureSubscriptionCommand
1/15/2015 4:53:10 PM, Error: Start-AzureVM : A parameter cannot be found that matches parameter name 'force'.
At VMStart:11 char:11
+
+ CategoryInfo : InvalidArgument: (:) [Start-AzureVM], ParameterBindingException
+ FullyQualifiedErrorId :
NamedParameterNotFound,Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.StartAzureVMCommand
I can't find any information on the "Unknown User Type" error.
Any ideas?
Thanks,
ScottHi Joe -
I attempted to install the Azure Powershell using the instructions here:
http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/
Upon completion I was unable to find Azure Powershell from Start/Programs:
I then attempted to re-install Azure Powershell. Initially, it came up with the error: "There was an error loading custom feed: 'http://www.microsoft.com/web/webpi/2.0/ToolsProductList.xml'. Error: 'ProductId PHP not found.'."
I clicked OK and WPI indicated that the Azure Powershell would be installed. I clicked INSTALL and WPI showed Azure Powershell in the list, but the Total File Download size was 0MB. I clicked I ACCEPT and it immediately blinked back that Azure
Powershell was installed.
When I clicked FINISH, however, the following was displayed:
Here is the the log file from the latest attempt:
DownloadManager Information: 0 : Loading product xml from: https://go.microsoft.com/?linkid=9842185
DownloadManager Information: 0 : https://go.microsoft.com/?linkid=9842185 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 175
Content-Type: text/html; charset=utf-8
Expires: Fri, 16 Jan 2015 17:18:12 GMT
Location: https://www.microsoft.com/web/webpi/5.0/webproductlist.xml
Server: Microsoft-IIS/8.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 16 Jan 2015 17:19:11 GMT
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/5.0/webproductlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Content-Type: text/xml
Last-Modified: Thu, 15 Jan 2015 19:17:09 GMT
ETag: "246ac1dbf730d01:0"
Cache-Control: max-age=280
Date: Fri, 16 Jan 2015 17:19:12 GMT
Connection: keep-alive
X-CCC: US
X-CID: 2
DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\1343597488.xml.temp
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/webapplicationlist.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/5.0/webapplicationlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Content-Type: text/xml
Last-Modified: Fri, 17 Oct 2014 12:44:38 GMT
ETag: "97c9cd1c8eacf1:0"
Cache-Control: max-age=296
Date: Fri, 16 Jan 2015 17:19:14 GMT
Connection: keep-alive
X-CCC: US
X-CID: 2
DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\-97141593.xml.temp
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/webapplicationlist.xml' after preprocessing, location on disk: 'C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-97141593.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Content-Type: text/xml
Last-Modified: Thu, 08 May 2014 18:42:31 GMT
ETag: "26a51545ed6acf1:0"
Cache-Control: max-age=372
Date: Fri, 16 Jan 2015 17:19:15 GMT
Connection: keep-alive
X-CCC: US
X-CID: 2
DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\-230948881.xml.temp
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml' after preprocessing, location on disk: 'C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-230948881.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Content-Type: text/xml
Last-Modified: Tue, 21 Oct 2014 20:26:36 GMT
ETag: "247eed4f6dedcf1:0"
Cache-Control: max-age=278
Date: Fri, 16 Jan 2015 17:19:15 GMT
Connection: keep-alive
X-CCC: US
X-CID: 2
DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\-1135381691.xml.temp
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml' after preprocessing, location on disk: 'C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-1135381691.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Content-Type: text/xml
Last-Modified: Thu, 08 May 2014 18:42:32 GMT
ETag: "8285645ed6acf1:0"
Cache-Control: max-age=60
Date: Fri, 16 Jan 2015 17:19:15 GMT
Connection: keep-alive
X-CCC: US
X-CID: 2
DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\-1877981721.xml.temp
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml' after preprocessing, location on disk: 'C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-1877981721.xml'
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://go.microsoft.com/?linkid=9842185' after preprocessing, location on disk: 'C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\preprocessor\1343597488.xml'
DownloadManager Information: 0 : Loading product xml from: http://www.microsoft.com/web/webpi/2.0/ToolsProductList.xml
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '14692'
DownloadManager Information: 0 : Number of bytes after possible decompression: '104283'
DownloadManager Information: 0 : Failed to load the feed 'http://www.microsoft.com/web/webpi/2.0/ToolsProductList.xml' after preprocessing, location on disk: 'C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\preprocessor\883561549.xml.err'
DownloadManager Error: 0 : Error loading downloaded product file: 'System.InvalidOperationException: ProductId PHP not found.
at Microsoft.Web.PlatformInstaller.DependencyProduct.ResolveProductIds(ProductManager pm)
at Microsoft.Web.PlatformInstaller.DependencyLogicalAnd.ResolveProductIds(ProductManager pm)
at Microsoft.Web.PlatformInstaller.Product.ResolveIDs()
at Microsoft.Web.PlatformInstaller.ProductManager.LoadFromXmlInternal(LineInfoDocument xmlDoc, Boolean loadEnclosures)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadFromXml(LineInfoDocument document, Boolean loadEnclosures)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadFromXml(String xmlFile, Boolean loadEnclosures)
at Microsoft.Web.PlatformInstaller.ProductManager.Load(Uri productFileUrl, Boolean filterByArchitectureAndOS, Boolean loadEnclosures, Boolean useCachedVersion, String cacheDirectory, Architecture architecture, Int32 osType)'
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '14692'
DownloadManager Information: 0 : Number of bytes after possible decompression: '104283'
DownloadManager Information: 0 : Failed to load the feed 'http://www.microsoft.com/web/webpi/2.0/ToolsProductList.xml' after preprocessing, location on disk: 'C:\Users\Scott\AppData\Local\Microsoft\Web Platform Installer\preprocessor\883561549.xml.err'
DownloadManager Error: 0 : Error loading feed http://www.microsoft.com/web/webpi/2.0/ToolsProductList.xml: System.InvalidOperationException: ProductId PHP not found.
at Microsoft.Web.PlatformInstaller.DependencyProduct.ResolveProductIds(ProductManager pm)
at Microsoft.Web.PlatformInstaller.DependencyLogicalAnd.ResolveProductIds(ProductManager pm)
at Microsoft.Web.PlatformInstaller.Product.ResolveIDs()
at Microsoft.Web.PlatformInstaller.ProductManager.LoadFromXmlInternal(LineInfoDocument xmlDoc, Boolean loadEnclosures)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadFromXml(LineInfoDocument document, Boolean loadEnclosures)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadFromXml(String xmlFile, Boolean loadEnclosures)
at Microsoft.Web.PlatformInstaller.ProductManager.Load(Uri productFileUrl, Boolean filterByArchitectureAndOS, Boolean loadEnclosures, Boolean useCachedVersion, String cacheDirectory, Architecture architecture, Int32 osType)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadExternalFile(Uri uri)
at Microsoft.Web.PlatformInstaller.ProductServiceImpl.LoadProducts(String primaryFeed, String[] feeds)
DownloadManager Information: 0 : Getting ratings file from http://go.microsoft.com/?linkid=9752395
DownloadManager Information: 0 : Contextual entry products: WindowsAzurePowerShell
DownloadManager Information: 0 : Adding product Microsoft Azure PowerShell with Microsoft Azure SDK (WindowsAzurePowershell) to cart
DownloadManager Information: 0 : Contextual navigation to product 'WindowsAzurePowershell'
DownloadManager Information: 0 : http://go.microsoft.com/?linkid=9752395 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 203
Content-Type: text/html; charset=utf-8
Expires: Fri, 16 Jan 2015 17:18:17 GMT
Location: http://www.microsoft.com/web/handlers/WebPI.ashx?command=getatomfeedwithavgratingquery
Server: Microsoft-IIS/8.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 16 Jan 2015 17:19:16 GMT
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '22570'
DownloadManager Information: 0 : Number of bytes after possible decompression: '75392'
DownloadManager Warning: 0 : Error getting last-modified header, error code: 12150
DownloadManager Warning: 0 : HttpQueryInfoWithRetry for HTTP_QUERY_LAST_MODIFIED failed.
DownloadManager Information: 0 : Ratings file loaded successfully
DownloadManager Information: 0 : Dependent product WindowsAzurePowershellOnly does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product WindowsManagementFramework_86_64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product WindowsAzurePowershellOnly does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product WindowsManagementFramework_86_64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product WindowsAzurePowershellOnly does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Dependent product WindowsManagementFramework_86_64 does not apply for current OS / configuration. Not adding
DownloadManager Information: 0 : Adding product 'WindowsAzurePowershell'
DownloadManager Information: 0 : Setting current install to 1
DownloadManager Information: 0 : Starting install sequence
DownloadManager Information: 0 : Starting EXE command for product 'Microsoft Azure PowerShell with Microsoft Azure SDK'. Commandline is: 'C:\Windows\system32\cmd.exe /C echo noop'. Process Id: 5308
DownloadManager Information: 0 : Install exit code for product 'Microsoft Azure PowerShell with Microsoft Azure SDK' is '0'
DownloadManager Information: 0 : Install return code for product 'Microsoft Azure PowerShell with Microsoft Azure SDK' is Success
DownloadManager Information: 0 : Product Microsoft Azure PowerShell with Microsoft Azure SDK done install completed
DownloadManager Information: 0 : Increasing current install to 2
DownloadManager Information: 0 : Product: WindowsAzurePowershell, Install Status: InstallCompleted-Success, Install Time: 00:00:00.0560000
DownloadManager Information: 0 : Clearing cart
I did attempt to open the regular Powershell and use the command Get-AzureVM, but the following error was returned:
The term 'Get-AzureVM' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:12
+ Get-AzureVM <<<<
+ CategoryInfo : ObjectNotFound: (Get-AzureVM:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Any advice appreciated...
Thanks,
Scott -
I would like to be able to display a user-friendly error page in the event that a JSP fails to compile. Is there some entry I can put in web.xml or weblogic.xml that will allow me to redirect to an error page? I have tried using error-code=500, and also exception-type=weblogic.servlet.jsp.CompilationException in web.xml, neither of which has worked. We use WebLogic 8.1 SP4.
Thanks,
MikeTry the following instead...
If the problem persists, pls. post the errors again.
if ( m_transaction.connect() )
out.println("Connected okay");
else
out.println("Connection Failed");
%>
</b>
</body>
</html> -
JOptionPane.showInputDialog Help!!!!
Hello,
I'm using JOptionPane.showInputDialog(Component parentComponent,
Object message,
String title,
int messageType,
Icon icon,
Object[] selectionValues,
Object initialSelectionValue ).
which prompts the user to add some text and the same will be stored for later retrieval.
In this case, JOptionPane pops up with a label, textfield,OK & Cancel buttons.
Default focus is given to to the TextField.
Is there anyway to get access to the TextField via code ?
For example, if the user types "Hello World" in the given TextField, then I need to get the Text entered in
the TextField in the following manner.
String myStr = myJOptionPaneTextField().getText();
System.out.println("Entered Text is "+ myStr);
How can I Achieve the same ?
Thanks in advance
Regards
vargavWhy? At what point do you know you should manipulate the text? Usually, it would be when the user clicks OK, at which point it doesn't matter because the dialog is dismissed. So what kind of operations do you expect to be able to do?
Aside from that, I'm not sure how to get the text field in the option pane, per se... It can be gotten by digging thru the pane's components til you find a text field. But you'd need to do that in a separate thread. So it's not really feasible to do that.... There is an alternative:
The message is an object, and it can be an array of objects, which will all be added, and thus can include a message string and a text field...
JTextField myfield = new JTextField();
Object[] obj = new Object[2];
obj[0] = "Enter some text here:";
obj[1] = myfield;
if(JOptionPane.showOptionDialog(obj, "Enter Text", JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION) {
String value = myfield.getText();
}Then you can do whatever you want with the text field... but the same problem is there, you have lost the dialog before you can do anything.
Maybe you are looking for
-
Cannot Send Email via .mac
I have an iPhone (duh) and a .mac account which I use for all my e-mail needs. However, last week, the iPhone suddenly lost the ability to send mail. Now whenever I try, I get the following message: Cannot Send Mail The connection to the outgoing ser
-
My partner and I both have MACs She copied from CD our entire CD music collection and has turned on I-Cloud. I want to import her library to my MAC rather than copy all the CDs again. We have Home share on The Apple advice "In the Show menu at the bo
-
Query to get direct report and anyone under them.
Hello Does anyone have a query that would give me a supervisor and his/her direct reports and any direct reports of someone that reports to that supervisor? For an example if Kim reports to Jon and Jon reports to Doug and Doug reports to Steve. Examp
-
Q: File Adapter - enforcing file structure
A simple question - if I have a BPEL process picking up a CSV file via File Adapter, how do I enforce the structure in the CSV file? e.g. if a record in the file is short a comma, I want that record to be fished out as erroneous. From what I can tell
-
Okay, so it looks like HP releases their laptop special offers each week on Sunday. There are some decent upgrades on the HDX 18t. I wanted to wait for the factory install of Windows 7 to come out before ordering. I spoke to a CSR and she said the ea