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,
unid
thanks....
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
Similar Messages
-
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.
-
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.
-
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 .... ? -
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? -
"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.
-
For input string error by filter table and execute CreateInsert
Dear all
I am useing Jdeveloper 11.1.1.3
i have a pannel tabl with 2 showDetail item
one for table another for form.
by default table tab is active , when user press create button form will be active and CreateInsert Action will execute.
now if user search any value in table filter (for example seach name column with Admin value)then press create botton :
form will be active an an error raise : For input string:"Admin"
in console i have :
<Utils><buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Admin"
java.lang.NumberFormatException: For input string: "Admin"Hi,
is the "CreateInsert" action completed by the user - entering a new row and submitting it ? Note that table and form share the same VO and therefore validation applies to both of them. Also which version of JDeveloper do you use ?
Frank -
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 -
Java.lang.NumberFormatException when sending mails
Gurus,
I am using java mail 1.4 to send mails from my application and the code to do so is
public void postMail(String recipient, String message) {
logger.fine("in postMail method..");
boolean debug = true;
Properties props = new Properties();
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.host", ConfigProperty.getProperty("mail.smtp.host"));
props.put("mail.smtp.auth","true");
props.put("mail.smtp.port", ConfigProperty.getProperty("mail.smtp.port"));
props.put("mail.smtp.from", ConfigProperty.getProperty("mail.from"));
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);
Message msg = new MimeMessage(session);
try {
String from = ConfigProperty.getProperty("mail.from").trim();
InternetAddress addressFrom = new InternetAddress(from);
msg.setFrom(addressFrom);
InternetAddress addressTo = new InternetAddress(recipient);
msg.addRecipient(Message.RecipientType.TO, addressTo);
msg.setSubject(ConfigProperty.getProperty("mail.subject"));
msg.setContent(message, "text/plain");
logger.info("Sending mail now...............................");
Transport trans = session.getTransport("smtp");
trans.connect("casarray.arg.ae",username,password);
trans.send(msg);
} catch (Exception e) {
e.printStackTrace();
}However i am getting the strange error when sending mails. My email is is very simple [email protected]
Please help me understand the issue here
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:470)
at java.lang.Integer.parseInt(Integer.java:499)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:398)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
at com.roadMiles.view.util.EmailNotification.postMail(EmailNotification.java:54)
at com.roadMiles.view.unsecure.page.bean.LoginPageBean.forgotPassword(LoginPageBean.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:788)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:306)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
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:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)The error message is telling you exactly what's wrong:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:470)
at java.lang.Integer.parseInt(Integer.java:499)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:398)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
at com.roadMiles.view.util.EmailNotification.postMail(EmailNotification.java:54)At line 54 of EmailNotification.java (which I assume is your class), you're calling connect(), but that fails, because, deeper down, it's trying to parse the empty String ("") as a number. So don't pass the empty String to connect(); pass a valid number instead. -
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 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 -
Dear Team,
I have implemented OBIA 7964 for HRA. Some reports throw the error Graphing engine is not responding.A fatal error occurred while processing the request. The server responded with: java.lang.NumberFormatException. It is not happened all reports. Only some of the reports showed this kind of error. Kindly help me to resolve this issue.
We have used
OBIA 7964
OBIEE 11.1.1.7.140527
Thanks & Regards,
Gauthaman SIssue was, Font been defined as 7.5 (may be font size decimal not supported ).the problem solved
Maybe you are looking for
-
Problem With PXE Across Subnets
I'm having a problem with PXE across subnets. The workstation boots, finds the dhcp server, finds the tftp server, downloads linux.1 and linux.2 with no problem. It is unable to download linux3.tgz, however. I've tried two different zen servers. I ca
-
VERY simple find and execute script to be improved
hello, I've been searching for other scripts like the following but have found nothing, so decided to hack this together. I have almost 0 bash programming experience, so I'm sure some kind soul could easily improve it. The functionality should be obv
-
Need help with cd/dvd drive problem.
I have a MacBook (black) running OS 10.6.8. The internal cd/dvd drive no longer works. I put in a disk and it gets pushed back out after a few seconds. I just bought a LG Ultra Slim Portable DVD Writer model GP 60NB50. The MacBook recognizes the LG d
-
New PC, iTunes library in external disk, ruined after first run
Hello, I built a new PC with Windows 7 64-bit and previously I had my iTunes library directory pointing to an external HDD while in the old system Windows XP 32-bit. I now tried to point the new iTunes installation to my old iTunes library in the ex
-
I installed Acrobat 8 and the Acrobat 8 SDK and used the CommonInterfaceFX.swf with the SnippetRunner. It worked up until this week. Now, when I open CommonInterfaceFX.swf, I get no UI at all, just a blank page in IE with a small symbol for a broken