In java.lang.NumberFormatException
Hello,
my code can compile, but when I try to create an new TempEntry (String info), in java.lang.NumberFormatException keeps appearing by the time I get to my first integer.
* Constructor for objects of class TempEntry
public TempEntry(String info)
info = info.trim();
String[] parts= info.split(",");
month= Integer.parseInt(parts[1]);
day= Integer.parseInt(parts[2]);
year= Integer.parseInt(parts[3]);
average= Double.parseDouble(parts[4]);
high= Double.parseDouble(parts[5]);
low= Double.parseDouble(parts[6]);
}
Obviously it is because of the , where the formatter was expecting a .
Run select * from nls_session_parameters; and verify that everything is set correctly in the database.
I think this may be the one tripping you up. Are your numbers displaying as 50.2 or 50,2 in the data grid?
Here is my nls setup and it works for me, of course I am in america so...
NLS_NUMERIC_CHARACTERS .,
I also saw a post that stated that the number format may be coming from the JVM and therefore your computer's setup.
What version of oracle are you using?
Here is another post that may help:
java.lang.NumberFormatException from OracleXMLSave.insertXML
Eric
Similar Messages
-
Java.lang.NumberFormatException: For input string: "DESCRIPTION="
Colleagues,
eBis 11.5.10.2.
I'm getting a Warning in the concurrent manager when I submit a programme that has an attached xml template. The warning is stating: -
------------- 1) PUBLISH -------------
Beginning post-processing of request 2667735 on node BAMBI at 02-SEP-2011 17:32:56.
Post-processing of request 2667735 failed at 02-SEP-2011 17:32:57 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
------------- 2) PRINT -------------
Not printing the output of this request because post-processing failed.
When I consult the OPP log in Sysadmin, I can see a not very helpful message: -
[9/2/11 5:32:57 PM] [UNEXPECTED] [36822:RT2667735] java.lang.NumberFormatException: For input string: "DESCRIPTION="
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at oracle.apps.xdo.generator.pdf.PDFGenerator.setFont(PDFGenerator.java:629)
at oracle.apps.xdo.generator.pdf.PDFGenerator.setProperties(PDFGenerator.java:468)
at oracle.apps.xdo.generator.ProxyGenerator.setProperties(ProxyGenerator.java:1373)
at oracle.apps.xdo.template.fo.FOHandler.startElement(FOHandler.java:262)
at oracle.apps.xdo.template.fo.FOHandler.startElement(FOHandler.java:204)
at oracle.apps.xdo.common.xml.XSLTMerger.startElement(XSLTMerger.java:55)
at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:320)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1051)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:290)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
[9/2/11 5:32:57 PM] [36822:RT2667735] Completed post-processing actions for request 2667735.
Now, this isn't programme specific as it's affecting all our BI Publisher reports. Also the specific report I am working on has the option to email. I'm finding that the emails still work and when I open the attachment, they are displaying in PDF format correctly - even though the concurrent manager completes with the above warning. The above warning doesn't let me view the output in PDF from Oracle Financials.
Any help would be greatly appreciated.
ThanksMaybe check if Metalink note 764180.1 applies? This appears to be a bug fixed with patch 7669965.
-
Exception in thread "main" java.lang.NumberFormatException:For input String
this is a code about arrylist. but when I debug it.it metion:Exception in thread "main" java.lang.NumberFormatException:For input String at java.lang.NumberFormatException.forInputString(numberFomatExceptionio java:48)
at java.lang.Integer.parseInt(integer.java:468)
at java.lang.Integer.parseInt(integer.java:497)
at Get.getInt(manerger.java:208)
at LinkList.insertFirst(manager.java:94)
at manager.main(manager.java;20)
this is my code:
import java.io.*;
import java.lang.*;
public class manager
public static void main(String args[]) throws IOException
LinkList list=new LinkList();
System.out.println("input S can scan the grade\ninput D can delete one entry\ninput U can update the entry\ninput A can add one entry\ninput E can end");
int cr=System.in.read();
switch(cr)
case 'A':
list.insertFirst();break;//this is 20 row
case 'S':
System.out.println("input the s");break;
case 'D':
System.out.println("input the d");break;
case 'U':
System.out.println("input the u");break;
class Link
public int number;
public String name=new String();
public int chs;
public int eng;
public int math;
public Link next;
public Link(int number,String name, int chs,int eng,int math)
this.number=number;
this.name=name;
this.chs=chs;
this.eng=eng;
this.math=math;
public Link()
this(0,"",0,0,0);
public void displayLink()
System.out.println(number + " "+name+ " "+chs+ " "+eng+ " "+math+ " ");
class LinkList
public Link first;
public LinkList()
first = null;
public boolean isEmpty()
return first==null;
public void displayList()
System.out.println("");
Link current=first;
while(current!=null)
current.displayLink();
current=current.next;
System.out.println("");
public Link insertFirst() throws IOException
Get getdata=new Get();
int number=getdata.getInt();//this is 94 row
String name=getdata.getString();
int chs=getdata.getInt();
int eng=getdata.getInt();
int math=getdata.getInt();
Link newLink = new Link(number,name,chs,eng,math);
first=newLink;
return first;
public Link find(int key)
Link current=first;
while(current.number!=key)
if(current.next==null)
return null;
else
current=current.next;
return current;
public Link update(int key) throws IOException
Link current=first;
while(current.number!=key)
if(current.next==null)
return null;
else
System.out.println("Input the first letter of the subject:");
int c=System.in.read();
Get get=new Get();
switch(c)
case 'c':
current.chs=get.getInt();break;
case 'e':
current.eng=get.getInt();break;
case 'm':
current.math=get.getInt();break;
return current;
public float average(char key)
Link current=first;
float total=0;
float average=0;
float counter=0;
if(current==null)
return 0;
while(current!=null)
switch(key)
case 'c':
total=current.chs+current.next.chs;break;
case 'e':
total=current.eng+current.next.eng;break;
case 'm':
total=current.math+current.next.math;break;
current=current.next.next;
counter++;
average=total/counter;
return average;
public Link delete(int key)
Link current=first;
Link previous=first;
while(current.number!=key)
if(current.next==null)
return null;
else
previous=current;
current=current.next;
if(current==first)
first=first.next;
else
previous.next=current.next;
return current;
class Get
public static String getString() throws IOException
System.out.println("Input your name:");
InputStreamReader str = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(str);
String s = br.readLine();
return s;
public static int getInt() throws IOException
System.out.println("Input your data:");
String st = getString();
return Integer.parseInt(st);//this is 208 row
}It may be that the code in getString() returns a
String that ends with a newline. If that is the
problem, you can use
return (Integer.parseInt(st)).trim();1. getString will never return a String ending in newline. BufferedReader.readLine strips off the newline.
2. Even if you had a newline, String.trim doesn't trim newlines.
3. You would need to trim the String, not the int:
return (Integer.parseInt(st.trim()));As JimDinosaur said, you are passing bad data (the value of "st").
In getInt, add this before trying to parse "st":
System.out.println("###"+st+"###");What does it print? -
Hi ,
I am getting below error when I try to create a bpel project in oracle soa suite 12C, can any one help on this issue why it is happing, earlier am able to create bpel service.
java.lang.NumberFormatException: For input string: "63420;https=127.0.0.1"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Integer.parseInt(Integer.java:527)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:379)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:299)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:295)
at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:160)
at java.lang.ThreadLocal.get(ThreadLocal.java:150)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:309)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getExtensionRegistry(CachedWSDLReader.java:425)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLWithExtensionRegistry(CachedWSDLReader.java:468)
at oracle.tip.tools.ide.utils.xml.wsdl.WSDLUtil.parseWSDL(WSDLUtil.java:1398)
at oracle.tip.tools.ide.bpel.v2.datamodels.util.TemplateUtil.createProcessWSDL(TemplateUtil.java:1208)
at oracle.tip.tools.ide.bpel.v2.designer.builder.model.ProcessBuilderUtil.createWSDLFiles(ProcessBuilderUtil.java:198)
at oracle.tip.tools.ide.bpel.v2.designer.builder.model.ProcessBuilder.createIDEProject(ProcessBuilder.java:73)
at oracle.tip.tools.ide.bpel.v2.designer.builder.ui.CreationDialogPanel.doCreate(CreationDialogPanel.java:57)
at oracle.tip.tools.ide.bpel.shared.designer.processbuilder.ui.BPELCreationDialog.handleOK(BPELCreationDialog.java:199)
at oracle.tip.tools.ide.bpel.shared.designer.processbuilder.ui.BPELCreationDialog.actionPerformed(BPELCreationDialog.java:239)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6516)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6281)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4872)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
at java.awt.Dialog.show(Dialog.java:1082)
at java.awt.Component.show(Component.java:1655)
at java.awt.Component.setVisible(Component.java:1607)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at oracle.tip.tools.ide.bpel.shared.designer.processbuilder.ui.BPELCreationDialog.display(BPELCreationDialog.java:83)
at oracle.tip.tools.ide.bpel.shared.designer.manager.BPELDesignerManager.launchCreationDialog(BPELDesignerManager.java:53)
at oracle.tip.tools.ide.bpel.shared.designer.manager.BPELDesignerManager.launchCreationDialog(BPELDesignerManager.java:48)
at oracle.tip.tools.ide.bpel.shared.plugins.soa.sca.BPELComponent.createImplementation(BPELComponent.java:46)
at oracle.tip.tools.ide.fabric.gui.controller.ActionComponentEdit.add(ActionComponentEdit.java:118)
at oracle.tip.tools.ide.fabric.gui.controller.ActionComponentEdit.process(ActionComponentEdit.java:95)
at oracle.tip.tools.ide.fabric.gui.controller.DiagramController.processActionRequest(DiagramController.java:358)
at oracle.tip.tools.ide.fabric.gui.controls.DiagramSOAPopupHandler.actionPerformed(DiagramSOAPopupHandler.java:117)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6516)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6281)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4872)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Thanks in advance.
Cheers,
balaPlease paste composite.xml and bpel source file here. Looks like one of the endpoints is getting goofed up.
-
While running a BI Publisher 11g report i am getting this error
oracle.xdo.XDOException: java.lang.NumberFormatException: For input string: "500.01 Not to Exceed"
Any idea what could it be?
To me it looks like that its related to some datatype mismatch.
For some parameters report runs fine and for some it throws the above error.
Thanks
Ashishplz post sample for
For some parameters report runs fine and for some it throws the above error.what are you using for
datatype mismatch.?
do you use some format-number or .... ? -
"java.lang.NumberFormatException" error while running custom BIP report
Hi,
When we are running a custom BIP report, it is completing in ERROR at times and running Succesfully at times for the same set of parameters.
Please let us know the solution if any one faced similar kind of an issue.
Below is the log file when the program errors out:
Calling XDO Data Engine...
java.lang.NumberFormatException: For input string: "000</UIN><ACC>726030</ACC><ACC_N>Express Services - Mail and Courier</ACC_N><S_ACC_N>00000</S_ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Term Life - GBL - Allocation Ind NQ NP BCLIC Direct</PROD><BAL>1126.47</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3123</R_ID>ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Annuities Dep Type - Allocation Ind NQ NP OCB</PROD><BAL>13.5</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3124</R_ID>N><ACC>MGMT_ACCT_HIERARCHY</ACC><ACC_N/><S_ACC_N/><S_ACC_NA/><I_CO/><PROD>FPDA - Other Ind Q NP BCLIC Ind Agt</PROD><BAL>176028.27</BAL><A_L>0</A_L><P_ACC/><S_F>Y</S_F><R_ID>36</R_ID>_T>>726030</ACC><ACC_N>Express Services - Mail and Courier</ACC_N><S_ACC_N>00000</S_ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Annuities Other - Allocation Ind NQ NP NON OCB</PROD><BAL>2.58</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3127</R_ID>R_ID>3128</R_ID>S_F><R_ID>41</R_ID>ther - Allocation Ind NQ NP BCLIC Career</PROD><BAL>267.97</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3131</R_ID>areer</PROD><BAL>53.31</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3132</R_ID>o CV Ind NQ NP BCLIC Direct</PROD><BAL>-29963</BAL><A_L>0</A_L><P_ACC/><S_F>Y</S_F><R_ID>46</R_ID>N>Telecommunication/Online Services</ACC_N><S_ACC_N>00000</S_ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Term Life - Other - Allocation Grp NQ NP BCLIC Career</PROD><BAL>.06</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3135</R_ID>_ACC_NA><I_CO>000</I_CO><PROD>LTC - Allocation Ind Guar Ren NON OCB</PROD><BAL>22.05</BAL><A_L>9</A_L><P_ACC>GEN_EXP_POSTAGE_S</P_ACC><S_F>N</S_F><R_ID>3136</R_ID>ROD>Term Life - Other - Allocation Grp NQ NP BCLIC Career</PROD><BAL>1118.96</BAL><A_L>0</A_L><P_ACC/><S_F>Y</S_F><R_ID>51</R_ID>S_ACC_N>00000</S_ACC_N><S_ACC_NA>Default - Sub Account</S_ACC_NA><I_CO>000</I_CO><PROD>Annuities Other - Allocat"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:59)
at java.lang.Integer.parseInt(Integer.java:467)
at java.lang.Integer.parseInt(Integer.java:508)
at oracle.apps.xdo.dataengine.ScalableStringList.get(ScalableStringList.java:162)
at oracle.apps.xdo.dataengine.XMLPGEN.writeRowSetListToStream(XMLPGEN.java:1277)
at oracle.apps.xdo.dataengine.XMLPGEN.processSQLDataSource(XMLPGEN.java:559)
at oracle.apps.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:445)
at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:308)
at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:273)
at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:215)
at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:254)
at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProcessor.java:390)
at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:355)
at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:334)
at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:294)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Oracle error 6502: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "APPS.FND_CONCURRENT", line 1331
ORA-06512: at line 1
has been detected in FND_CONCURRENT.SET_INTERIM_STATUS.+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Output file size:
9662
------------- 1) PUBLISH -------------
Beginning post-processing of request 970405 on node UXEBSCMP01 at 29-SEP-2012 21:02:30.
Post-processing of request 970405 failed at 29-SEP-2012 21:02:30 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
Finished executing request completion options.
Concurrent request completed
Current system time is 29-SEP-2012 21:02:30
Thanks.If you use parameters you can try playing with them to narrow down the values on which the error occurs. Anyway, need to get the output in XML (without template) and review it. If it's not too huge, post the XML here.
-
Error in JSF - java.lang.NumberFormatException: For input string:
Nice day friends,
I am sure that this is one stupid question by newbie like me, but I already lost hope since there no many post on this error especially in JSF at Google.
Here the full error I've got :
executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@12bb287) threw exception
java.lang.NumberFormatException: For input string: "id"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at javax.el.ListELResolver.toInteger(ListELResolver.java:373)
at javax.el.ListELResolver.getValue(ListELResolver.java:167)
Here my snippet of code :
NationalityDO.java (managed bean)
public class NationalityDO implements Serializable {
@Id
@Column(name = "ID", nullable = false)
private String id;
private List nationalityList;
public NationalityDO() {
public NationalityDO(String id) {
this.id = id;
public String getId() {
return this.id;
public void setId(String id) {
this.id = id;
public List getNationalityList(){
NationalityDA da=new NationalityDA();
if(nationalityList==null){
System.out.println("if(nationalityList==null)");
try {
nationalityList=da.retrieveNationalityList();
} catch (Exception ex) {
ex.printStackTrace();
return nationalityList;
public void setNationalityList(){
this.nationalityList=nationalityList;
This is my NationalityDA (used to retrieve data)
public class NationalityDA {
public NationalityDA() {
public List retrieveNationalityList() throws Exception{
ArrayList ls=new ArrayList();
Connection con = null;
PreparedStatement ps = null;
ResultSet rsReturn = null;
try {
con = DBManager.getDBConnection();
String sql="select id,descr,setup_date,change_date from nationality order by id asc" ;
ps = con.prepareStatement(sql);
rsReturn = ps.executeQuery();
while(rsReturn.next()){
List lsNationality =new ArrayList();
lsNationality.add(rsReturn.getString(1));//id
lsNationality.add(rsReturn.getString(2));//descr
ls.add(lsNationality);
} catch(SQLException sqlex) {
sqlex.printStackTrace();
} finally {
con.close();
ps.close();
return ls;
Here my nationality.jsp
<h:dataTable value='#{nationality.nationalityList}' var='item' border="1" cellpadding="2" cellspacing="0">
<h:column>
<f:facet name="header">
<h:outputText value="Id"/>
</f:facet>
<h:outputText value="#{item.id}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Descr"/>
</f:facet>
<h:outputText value="#{item.descr}"/>
</h:column>
</h:dataTable>
Here my face-config.xml
<managed-bean>
<managed-bean-name>nationality</managed-bean-name>
<managed-bean-class>com.dataobject.nationality.NationalityDO</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/nationality/testNationality.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>fail</from-outcome>
<to-view-id>/nationality/testNationality.jsp</to-view-id>
</navigation-case>
</navigation-rule>
For your information, the retrieve of data work successfully, this is the table description in oracle database which is varchar for id,
SQL> desc nationality
Name Null? Type
ID NOT NULL VARCHAR2(4)
DESCR VARCHAR2(20)
SETUP_DATE TIMESTAMP(6)
CHANGE_DATE TIMESTAMP(6)
*If you feel that I should improve my writing in forum, I am really happy to know
Thanks,
unidthanks....
Actually I already view the site many times before but after you told me then I get the idea,that's y working together is better, because i sometimes won't realize my mistake even it was the easiest one...
So i just change my code in NationalityDA.java as
while(rsReturn.next()){
NationalityDO n=new NationalityDO();
n.setId(rsReturn.getString(1));
System.out.println("rsReturn.getString(1)"+ rsReturn.getString(1));
n.setDescr(rsReturn.getString(2));
System.out.println("rsReturn.getString(2)"+ rsReturn.getString(2));
n.setSetupDate(rsReturn.getDate(3));
System.out.println("rsReturn.getString(3)"+ rsReturn.getString(3));
n.setChangeDate(rsReturn.getDate(4));
System.out.println("rsReturn.getString(4)"+ rsReturn.getString(4));
ls.add(n);
Once again, thanks..and my 3 dukes are yours..
-unid -
Hi,
I am getting the below exception when I tried to convert IDoc Flat File to IDoc XML using the module "SAP_XI_IDOC/IDOCFlatToXmlConvert" in sender File adapter.
Exception:
Module Exception 'com.sap.aii.af.idoc.exception.IDOCModuleException' found, cause: java.lang.NumberFormatException: For input string: ""
I have successfully uploaded and created the IDoc with the same file from WE19 transaction.
Any idea about this Exception.
Thanks,
Krishnaraju.Adarsh,
Is the source system is an SAP system? Could you post the file to check the format of the file. As said in the blog we need to have the format maintained to transform IDoc flat files into XML files.
Hi Li,
We have over come the number format exception by placing unique identifier in place of Idoc number and segment relations ships.
Module is successfully converting the IDoc Flat file with multiple Idocs, we dont have this limitation in this module.
The limitation is in the format of the source file. The flat file should contain unique identifier in place of IDoc and Parent and child node relation ship should explicitly mentioned in the IDoc flat file. Without these explicit parameters Module is not converting IDoc flat file into IDoc XML.
Without mentioning these explicit parameters, WE19 trasaction is successfully uploading the Idocs.
I think Java module is considering the unique relation ship by taking these parameters and ABAP program is reading the file in sequential way and creating the IDocs by breaking the file whenever it encounters EDIDC segment.
If the source system is not a SAP system, then it would be a problem using this module to convert Falt file into IDoc XML.
Thanks,
Krishna. -
Java.lang.NumberFormatException
2010-07-02 12:58:35 Error Could not execute statement for table/stored proc. "sp_PalletBackflushAcknowledge" (structure "Acknowledge") due to java.lang.NumberFormatException: For input string: "393006000111122222"
2010-07-02 12:58:35 Error JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'sp_PalletBackflushAcknowledge' (structure 'Acknowledge'): java.lang.NumberFormatException: For input string: "393006000111122222"
2010-07-02 12:58:35 Error Adapter Framework caught exception: null
2010-07-02 12:58:35 Error Delivering the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'sp_PalletBackflushAcknowledge' (structure 'Acknowledge'): java.lang.NumberFormatException: For input string: "393006000111122222".
2010-07-02 12:58:35 Error The message status was set to NDLV.
JDBC RECEIVER
I the JDBC the field data type is BIGINT.
IN MESSAGE MAPPING SOURCE DATA TYPE IS INTEGER WHERE WE WILL BE GETTING A 18 DIGIT NUMBER.
IN TARGET DATA TYPE THE DAtatype is long where we pass the integer to this long.
and mapping is successful but trying to sent the respoinse back it gives the error as above
can you pleaseHi PBS,
It seems bigint datatype is not there in Oracle. Can you please check that. I have seen the data types in oracle and I didn't find it.
http://ss64.com/ora/syntax-datatypes.html
If you can convert that into number or long that would be good. It can handle your requirement.
Regards,
---Satish -
Application Start Fails with java.lang.NumberFormatException: null
Hi All,
I am new to Weblogic.
I am facing issue in starting application in weblogic. I have weblogic 11g(10.3.1.0) installed on windows.
After deploying my application, when I am starting the application by selecting "Servicing All Requests" I get error message
java.lang.NumberFormatException: null.
I have created and tested data sources.
I checked the server log and based on the log I check the code with the given line number. But that line does not expect any numeric value. It is hardcoded.
I am not able to make out what else could have caused this issue.
below is the error stact from log.
Appreciate your help in resolving this.
Thanks
<p>
weblogic.application.ModuleException: [HTTP:101216]Servlet: "BranchController" failed to preload on startup in Web application: "CCWEB".
java.lang.ExceptionInInitializerError
at com.app.ccc.logging.BranchLogger.<init>(BranchLogger.java:77)
at com.app.infra.controller.BranchController.init(BranchController.java:121)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1913)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1887)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1805)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3041)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1374)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:629)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:206)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:53)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:143)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:497)
at com.app.ccc.common.BranchConstants.<clinit>(BranchConstants.java:99)
... 46 more
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1376)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:629)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:206)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:53)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:143)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:497)
at com.app.ccc.common.BranchConstants.<clinit>(BranchConstants.java:99)
at com.app.ccc.logging.BranchLogger.<init>(BranchLogger.java:77)
at com.app.infra.controller.BranchController.init(BranchController.java:121)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1913)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1887)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1805)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3041)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1374)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:629)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:206)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:53)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:143)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
<P>You'd have to show us the actual lines of code that are failing. I think it will be clear from that.
-
Error message : soap fault: java.lang.NumberFormatException
Hello,
I have Idoc to SOAP scenario. We I send Idoc, I get following error,
SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: java.lang.NumberFormatException Message being parsed:
To be on safer side, I have populated all the fields with values. I have tested the same scenarion using SOAP UI tool with payload from XI & it works fine.
This is very annoying. Can anybody help?
Regards,
SunilPrateek,
Here is my xml which goes to web service via SOAp adopter,
470 {/ns0:company_code}
Constant {/ns0:userid}
Constant {/ns0:password}
1 {/ns0:acklm}
20090821 {/ns0:badat}
1020104878 {/ns0:banfn}
A {/ns0:banst}
NB {/ns0:bsart}
20090821 {/ns0:erdat}
Constant {/ns0:temp1}
Constant {/ns0:temp2}
Constant {/ns0:temp3}
Sunil.Joyous com {/ns0:email}
146474 {/ns0:ernam}
Sunil Joyous {/ns0:name}
{/ns0:zossatb}
TEST OSAT {/ns0:afnam}
1 {/ns0:anln1}
1 {/ns0:anln2}
1 {/ns0:aufnr}
1020104878 {/ns0:banfn}
1 {/ns0:bednr}
00010 {/ns0:bnfpo}
NB {/ns0:bsart}
1.000 {/ns0:bsmng}
1.000 {/ns0:bumng}
1 {/ns0:catalog_info}
1 {/ns0:ebakz}
T02 {/ns0:ekgrp}
IZ {/ns0:ekorg}
IZ {/ns0:gsber}
5300642603 {/ns0:infnr}
1 {/ns0:knttp}
1 {/ns0:kostl}
20090812 {/ns0:lfdat}
1 {/ns0:lifnr}
X {/ns0:loekz}
BOX CARDBOARD TELESCOPIC PART {/ns0:maktx}
00441010 {/ns0:matkl}
000000000002647430 {/ns0:matnr}
ST {/ns0:meins}
10.000 {/ns0:menge}
1 {/ns0:mfrpn}
1 {/ns0:peinh}
10.000 {/ns0:preis}
0 {/ns0:pstyp}
X {/ns0:repos}
1 {/ns0:saknr}
1 {/ns0:statu}
470 {/ns0:temp1}
PACKING {/ns0:temp2}
20090821 {/ns0:temp3}
BOX CARDBOARD TELESCOPIC PART {/ns0:txt01}
TRY {/ns0:waers}
1 {/ns0:wempf}
X {/ns0:wepos}
IZ {/ns0:werks}
1 {/ns0:zdegsta}
TEST TEST {/ns0:zsastxt}
F442617301 ,4085212101 ,JL/QSC-70108949 ,OUT ,7064 58 049 , , , , , , , , , , {/ns0:ztanim}
{/ns0:zossatd}
1020104878 {/ns0:banfn}
00010 {/ns0:bnfpo}
NB {/ns0:bsart}
470 {/ns0:temp1}
Constant {/ns0:temp2}
Constant {/ns0:temp3}
PO TEXT {/ns0:zmetin1}
1 {/ns0:zmetin10}
1 {/ns0:zmetin2}
1 {/ns0:zmetin3}
1 {/ns0:zmetin4}
1 {/ns0:zmetin5}
Constant {/ns0:zmetin6}
Constant {/ns0:zmetin7}
Constant {/ns0:zmetin8}
Constant {/ns0:zmetin9}
{/ns0:zossatt}
Out of these following fields are of decimal type,
BSMNG, BUMNG, MENGE, PEINH, PREIS
Rest all are of string type.
Edited by: Sunil Joyous on Aug 21, 2009 2:01 PM
Edited by: Sunil Joyous on Aug 21, 2009 2:02 PM
Edited by: Sunil Joyous on Aug 21, 2009 2:02 PM -
Java.lang.NumberFormatException while retriving detail in jsp page
inside ActionClass(in struts i have )i am taking msgno as a input
ArrayList arry=new ArrayList();
Message msg=null;
Address[] from=null;
Date date=null;
Address[] recipients=null;
String subject=null;
String contType=null;
Object msgBody=null;
BodyBn bbn=null;
System.out.println("inside bussiness");
Properties props = new Properties( );
props.put("mail.debug","true");
final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
final String host = "pop.gmail.com";
final String port="995";
final String username = "[email protected]";//my mail id
final String password = "######### "; //my password
String provider = "pop3";
props.put("mail.pop3.host",host);
props.put("mail.pop3.user",username);
props.put("mail.pop3.port",port);
props.setProperty( "mail.pop3.socketFactory.port", "995");
props.setProperty( "mail.pop3.socketFactory.class", SSL_FACTORY);
props.setProperty("mail.pop3.socketFactory.fallback", "false");
try {
Session session = Session.getInstance(props,new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username,password); }
Store store = session.getStore(provider);
store.connect(host, username, password);
boolean b=store.isConnected();
if(b==true) {
System.out.println("************conneted to pop server***********");
Folder inbox = store.getFolder("INBOX");
if (inbox == null) {
System.out.println("No INBOX");
System.exit(1);
inbox.open(Folder.READ_ONLY);
msg = inbox.getMessage(msgno);
from= msg.getFrom();
date=msg.getSentDate();
recipients=msg.getAllRecipients();
subject=msg.getSubject();
contType= msg.getContentType();
msgBody=msg.getContent();
System.out.println("msg is from "+from);
System.out.println("msg date "+date);
System.out.println("msg recipients "+recipients);
System.out.println("msg sub is "+subject);
System.out.println("msg conttype "+contType);
System.out.println("msg body is "+msgBody);
bbn=new BodyBn(from,date,recipients,subject,contType,msgBody);
System.out.println("----------adding to arry list--------------");
arry.add(bbn);
req.setAttribute("msgDetail",arry);
return mapping.findForward("success");
}catch(Exception e) {
System.out.println("Exception***********");
------------------------------in jsp page i m retriving all data--------------------------------
<body>
<logic:present name="msgDetail">
<table>
<tr>
<td>${msgDetail.from[0]}</td>
</tr>
<tr>
<td>${msgDetail.recipients[0]}</td>
</tr>
<tr>
<td>${msgDetail.subject}</td>
</tr>
<tr>
<td>${msgDetail.contType}</td>
</tr>
<tr>
<td>${msgDetail.msgBody}</td>
</tr>
</table>
</logic:present>
while printing these data in to console it is showing all data properly
but when i am trying to access these data from jsp page it is giving me
Following exception
java.lang.NumberFormatException: For input string: "from"
java.lang.NumberFormatException.forInputString(Unknown Source)
java.lang.Integer.parseInt(Unknown Source)
java.lang.Integer.parseInt(Unknown Source)
javax.el.ListELResolver.coerce(ListELResolver.java:166)
javax.el.ListELResolver.getValue(ListELResolver.java:51)
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
Plz help for this problemThis problem doesn't seem to have anything to do with JavaMail.
You'll probably have better luck in a Struts or JSP forum. -
Sir,
I am using the following code and get subjected error.
{error}{
java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1011)
at java.lang.Double.parseDouble(Double.java:540)
at invoice.InvoiceController$4.changed(InvoiceController.java:192)
}{error}
and
//wt , sValExlSt1 and sPrice1 are numbers
wt1.textProperty().addListener(new ChangeListener<String>() {
public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
sValExlSt1.setText(String.valueOf(
Double.parseDouble(newValue) * Double.parseDouble(sPrice1.getText())));
} catch (NumberFormatException e1) {
}Please help.One way is to check each input variable for valid numbers and if a blank or a text is detected, then make that variable zero.
wt1.textProperty().addListener(new ChangeListener<String>() {
public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
final double doubleTXTValue = 0.0;
final double doubleNewValue = 0.0;
try {doubleTXTValue = Double.parseDouble(sPrice1.getText());} catch(Exception e) {}
try {doubleNewValue = Double.parseDouble(newValue);} catch(Exception e) {}
sValExlSt1.setText(String.valueOf(
doubleNewValue * doubleTXTValue));
});The above code will make sure the user does not enter invalid double values of any type.
You can take this further by inserting the old value of the variables or presenting an error to the user.
If only blank values need to be checked then you can use a more simplistic check by just checking for blanks.
wt1.textProperty().addListener(new ChangeListener<String>() {
public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
final double doubleTXTValue = 0.0;
final double doubleNewValue = 0.0;
if (sPrice1.getText().trim().length() > 0) doubleTXTValue = Double.parseDouble(sPrice1.getText());
if (newValue.trim().length() > 0) doubleNewValue = Double.parseDouble(newValue);
sValExlSt1.setText(String.valueOf(
doubleNewValue * doubleTXTValue));
}); -
Hi,
I'm trying to run a program I've written but keeping getting this error:
Exception in thread "main" java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994)
at java.lang.Double.parseDouble(Double.java:482)
at data.newLineToRead(data.java:21)
at data.data(data.java:34)
at train.main(train.java:86)
I'm not quite sure where I'm going wrong.I've included the data class and train class.Could someone pls help me.
Thanks a lot.
Data Class:
import java.io.*;
import java.util.*;
public class data{
private static parameter par;
private static double[][] x=new double[par.n()][par.D()];
public static double[] t=new double[par.n()];
public static void newLineToRead(String LineToRead,int n){
int d=0;
String stringToRead=new String();
for(int i=0;i<=LineToRead.length();i++){
StringTokenizer str = new StringTokenizer (stringToRead,"/t");
String[] strtemp = new String[str.countTokens()];
while (str.hasMoreTokens()){
x[n][d++] = Double.parseDouble(str.nextToken());
d++;
System.out.println(x[n][d++]);
stringToRead=new String();
t[n]=Double.parseDouble(stringToRead);
x[n][par.d()]=1.0;
public static void data() throws IOException{
DataInputStream in=null;
try{
in=new DataInputStream(new FileInputStream(par.f()));
for(int n=0;n<par.n();n++){
String LineToRead=in.readLine();
if(LineToRead.length()==0){
System.out.println("Remove empty lines");
else{
newLineToRead(LineToRead,n);
}finally{if(in!=null){in.close();}}
public static double x(int n,int d){return x[n][d];}
public static double t(int n){return t[n];}
}Train Class
import java.io.*;
import java.util.*;
public class train{
private static parameter par;
private static data dat;
private static model mod;
private static response resp;
private static void error(String msg){
System.out.println(msg);
System.exit(1);
private static void check(){
if(par.f().length()==0)
error("No filename of input vectors!");
if(par.n()==0)
error("No number of input vectors!");
if(par.d()==0)
error("No number of input variables!");
if(par.d()>par.D())
error("Dimension is larger than 100!");
private static void usage(){
System.out.println("Non-default parameters==========================");
System.out.println("-f filename of input vectors");
System.out.println("-n number of input vectors");
System.out.println("-d number of input variables");
System.out.println("Default parameters==========================");
System.out.println("-R regularisation constant (must be positive and the default value is 0.0)");
System.out.println("-S epsilon criterion for stopping a learning process (default value is 0.001)");
System.out.println("-C maximum learning cycle (default value is 10000)");
public static void main(String[] argv){
if(argv.length==0){
System.out.println("Command line is <Java [-cp path] train parameters>");
usage();
System.exit(1);
if(argv.length==1 && argv[0].equals("help")==true){
usage();
System.exit(1);
par.nin(0); par.din(0); par.Rin(0.0); par.Cin(10000); par.Sin(0.001);
for(int i=0;i<argv.length;i++){
if(argv.equals("-f")==true){
if((i+1)==argv.length)
error("miss the para");
par.fin(argv[i+1]);
i++;
else if(argv[i].equals("-d")==true){
if((i+1)==argv.length)
error("miss the para");
par.din(Integer.parseInt(argv[i+1]));
i++;
else if(argv[i].equals("-n")==true){
if((i+1)==argv.length)
error("miss the para");
par.nin(Integer.parseInt(argv[i+1]));
i++;
else if(argv[i].equals("-S")==true){
if((i+1)==argv.length)
error("miss the para");
par.Sin(Integer.parseInt(argv[i+1]));
i++;
else if(argv[i].equals("-C")==true){
if((i+1)==argv.length)
error("miss the para");
par.Cin(Integer.parseInt(argv[i+1]));
i++;
else if(argv[i].equals("-R")==true){
if((i+1)==argv.length)
error("miss the para");
par.Rin(Double.parseDouble(argv[i+1]));
i++;
else error("Unkown token");
check();
try {
dat.data();
}catch(IOException e) { System.err.println(e.toString()); }
try {
mod.model();
}catch(IOException e) { System.err.println(e.toString()); }
try {
resp.record();
}catch(IOException e){ System.err.println(e.toString()); }String stringToRead=new String();
for(int i=0;i<=LineToRead.length();i++){
StringTokenizer str = new StringTokenizer (stringToRead,"/t");
String[] strtemp = new String[str.countTokens()];
while (str.hasMoreTokens()){
x[n][d++] = Double.parseDouble(str.nextToken());
d++;
System.out.println(x[n][d++]);
stringToRead=new String();
t[n]=Double.parseDouble(stringToRead);
x[n][par.d()]=1.0;
}Not sure exactly what you are trying to do above but...
You are setting your String to an empty String with "new String()" and then parsing that empty String. Eventually, you are trying to parse a double from that empty String:
t[n]=Double.parseDouble(stringToRead);Also, I cannot think of a reason to ever use "new String()" when you could just use:
String myString = ""; -
Java.lang.NumberFormatException Error as invoking SendSMS service
Hi,
I got a strange error as invoking SendSMS service on OCSG 4.1. The error is something about float number, which not exists in the SOAP message at all
my request looks like:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:loc="http://www.csapi.org/schema/parlayx/sms/send/v2_2/local" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<Session soapenv:mustUnderstand="0">
<SessionId>sessionless</SessionId>
</Session>
<wsse:Security soapenv:mustUnderstand="0"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>
<wsse:UsernameToken
wsu:Id="SecurityToken-55cb04ab-b0ab-49f6-ba5d-f3b1dbc505a1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>myusername</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">mypassword</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<loc:sendSms>
<!--1 or more repetitions:-->
<loc:addresses>111</loc:addresses>
<!--Optional:-->
<loc:senderName>?</loc:senderName>
<!--Optional:-->
<loc:charging>
<description>?</description>
<!--Optional:-->
<currency>?</currency>
<!--Optional:-->
<amount>?</amount>
<!--Optional:-->
<code>?</code>
</loc:charging>
<loc:message>?</loc:message>
<!--Optional:-->
<loc:receiptRequest>
<endpoint>?</endpoint>
<interfaceName>?</interfaceName>
<correlator>?</correlator>
</loc:receiptRequest>
</loc:sendSms>
</soapenv:Body>
</soapenv:Envelope>
the error is
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<ns1:info xmlns:ns1="http://sdp.3pf.hp.com">
<ns1:UserId>xielebing</ns1:UserId>
</ns1:info>
</env:Header>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring/>
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:368)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at com.bea.xbean.util.XsTypeConverter.lexDecimal(XsTypeConverter.java:161)
at weblogic.xml.dom.DOMStreamReaderExt.getBigDecimalValue(DOMStreamReaderExt.java:116)
at com.bea.staxb.runtime.internal.UnmarshalResult.getBigDecimalValue(UnmarshalResult.java:477)
at com.bea.staxb.runtime.internal.DecimalTypeConverter.getObject(DecimalTypeConverter.java:30)
at com.bea.staxb.runtime.internal.BaseSimpleTypeConverter.unmarshal(BaseSimpleTypeConverter.java:39)
at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:167)
at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:38)
at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:167)
at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:38)
at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:179)
at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalType(UnmarshalResult.java:217)
at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalElement(UnmarshalResult.java:232)
at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshalElement(UnmarshallerImpl.java:166)
at weblogic.wsee.bind.runtime.internal.LiteralDeserializerContext.unmarshalElement(LiteralDeserializerContext.java:89)
at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.internalDeserializeElement(BaseDeserializerContext.java:182)
at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.deserializeElement(BaseDeserializerContext.java:117)
at weblogic.wsee.codec.soap11.SoapDecoder.decodePart(SoapDecoder.java:494)
at weblogic.wsee.codec.soap11.SoapDecoder.decodeParams(SoapDecoder.java:287)
at weblogic.wsee.codec.soap11.SoapDecoder.decodeParts(SoapDecoder.java:172)
at weblogic.wsee.codec.soap11.SoapDecoder.decode(SoapDecoder.java:125)
at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:180)
at weblogic.wsee.ws.dispatch.server.CodecHandler.decode(CodecHandler.java:139)
at weblogic.wsee.ws.dispatch.server.CodecHandler.handleRequest(CodecHandler.java:40)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3501)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)</bea_fault:stacktrace>
</detail>
</env:Fault>
</env:Body>
</env:Envelope>Hi, you may want to post over on the new My Oracle Support Communications Community which is moderated by and responded to by Oracle Support and accessible by Oracle customers. Many new features will be developed for the Community in the coming months, please come and check it out at https://metalink.oracle.com/CSP/ui/index.html. Support will validate this and raise a doc bug if necessary.
Regards
Graham
Maybe you are looking for
-
Not allow order unit in INFO record if it is not in material master
Hello there! In standar SAP any user can introduce any order unit in the info record, even if it is not maintained in the material master alternative units of meassure. We need to block this... The conversion factor is not a problem for us, as we can
-
I am trying to install CS 5.5 on a newer computer and every time I go through setup the serial number comes back good (green check mark, etc.) but then when I proceed with install, I am told to "please restart computer." No error number just "please
-
Connection cancellation error with Azure
Hello! From night to day started getting the error below when I run my application on the local machine. Publishing the application on Azure have no problems. I researched this error and in some places say it is temporary. Try again later. Others say
-
Sound disappeared (offline)
A sound file in my timeline went offline. I did not open or shut down FCP, I just left it for a while, came back and the sound file is missing. When I open the source file (on an external file) the sound is missing there, too. I tried reconnecting th
-
In iOS6, the new map stop me to view maps in other countries
Previously, when iOS using Google Map, I can view other countries' maps using my iPhone. It is very useful if I plan to travel to other countries. However, after I upgrade to iOS6, I found it is really a disaster. I am in China and if I want to searc