Problems with Maths (decimals) In java calculations
In a normal calculator type in
(27.8 / 3) * 12 = 111.2
Do this in Java and I get
111.20000000000002
This is causing a problem in my calculations, is this a known bug and how can i get around it ?
Friendly Regards
Steven
Yes i know I will read the article but as I said just
wanted get this working before i go home today.
This is how I fixed it anyway
DecimalFormat threeDecimals = new
DecimalFormat("0.000");
thirdOfWk =
Double.parseDouble(threeDecimals.format(thirdOfWk));
Thanks for the help guysI think you are going to need to do some rounding otherwise this will not fix all the problems.
Consider that:
111.20000000000002
truncated to 3 decimals is:
111.200
But what if the number comes up something like this (I am not sure that it can happen but I would guess that it can):
123.19999999999998 (instead of 123.2)
truncated to 3 decimals is:
123.199
And I think doremifasollatido is correct and you have another problem (because you are putting the truncated number back into a Double).
You really need to use BigDecimal or integers. For integers you would need to scale the numbers and then display with decimals.
Message was edited by:
jbish
Similar Messages
-
Problem with compilation of HelloWorld.java
hi,
getting problem with compilation of HelloWorld.java
CLASSPATH--- C:\java
PATH--- C:\j2sdk1.4.2_04\bin
HelloWorld.java source code in: C:\java
On cmd prompt:
C:\java>javac HelloWorld.java
error: cannot read: HelloWorld.java
1 error
pls help me with this
rgds,
sanlearnsWhat does this command yield?
dir HelloWorld.java -
Problem with Math In Calculated Fields
I am calculating a group incident rate for data returned from
a query. The formula is Number of cases multiplied by 200000
divided by number of hours worked. Cases in my report is the
calculated field: calc.CaseSum (the sum of cases for the group)
Hours is calc.SumHours (the sum of hours for the group). The actual
values for these variables (for the first group are 48 and 29427171
respectively. When I create the following calculated field called
rate using the formula: (calc.CaseSum * 200000) / calc.SumHours,
Cold Fusion Generates a Runtime Error:
Invalid ColdFusion expression in report. If the expression is
a string, ensure that it is within quotes. Error: (calc.CaseSum *
200000) / calc.SumHours is not a valid ColdFusion expression.
If I use the constant value "29427171" as the divisor, the
report works albeit only for the first group. Any ideas; is this a
bug, or am I misusing the product?
Addition: I forgot to mention I am using CF8. Also this
formula worked fine as a Report Total before I introduced grouping
and modified the calculated fields to reset on the change of a
group.Sorry, I've been on another project for awhile. This problem
will certainly be a "show stopper" for me if I cannot resolve it.
As I mentioned in my original post, I used a constant in the
formula in lieu of the variable and the calculation worked. This
would suggest that CF does not have a problem with a large number.
In spite of that reasoning, I tried Tony's suggested (thanks
by the way!) with the identical outcome, only difference is the new
formula is displayed in the error message.
Tony, you also suggested that I set the variables using
CFSET... How would I do this within the report writer environment.
I had tried a similar approach: to perform half the calculation
i.e. that within the parenthesis, and assign that value to a
separate "calculated field: and then perform the rest of the
calculation on that variable with the same outcome.
I think that I may be dealing with a CF bug here, I'd like to
find a workaround... I've noticed that CF8 has a new patch, perhaps
after I apply it, I may be able to get this thing to work. I'm on
another project right now so it will be a few days before I can
test this theory, I report the result.
Should this fail, and no one can come up with a workaround, I
will report this to Adobe. -
Problem with n 79 instal java software
hi
i have one problem with my nokia n 79
when i install a java software or game my device ask me where do u wana install? in memory card or memory phone.its natural.but if i select memory card when the installation finished autorun to start the program and software is disable and when i go to the application list are no icon of that progran to run.but in installation list there is it.so there is any icon andany way to run it.
its just abouy java program and install to memroy card
i dont have any problem with symbian in 2 memory and java when i install it in memory phone
please help me
thanksdear alzaeem i ran java in before this time when i installed it in memory card
i dont know whay u say it doesnt run in memory card
before this i installed every application of java and symbian in memory card with out any problem and after installation icon of them were in application list
when i install java in memry card i dont have problem with installation and its complete installation and there is the name of that software java in installation list but my problem is that there is any icon of software in application list or every where to start or run it. -
Problem with XMLEncoder for complex java object i
Hi All.
My problem with XMLEncoder is it doesnt transfrom java objects without default no arguement constructor. I was able to resolve this in my main java object class, by setting a new persistence delegate, but for other classes that are contained in the main class, they are not being encoded.
Thanks in advance for your answersBetter to put this in java forum :-)
Just check, if this helps.
http://forum.java.sun.com/thread.jspa?threadID=379614&messageID=1623434 -
In case of problems with SAP GUI for Java ...
Hello all,
in case of having problems (errors, ABAP dumps etc.) with SAP GUI for Java, please create an OSS message on component BC-FES-JAV with information described in OSS note 326558
http://www.service.sap.com/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700010521522001.
This makes sure our official support channels get aware of your problem.
Thanks and best regards
Rolf-MartinHello Rolf-Martin,
i don't have access to this website to view the note.
The version of the Suse libc is:
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3 20030226 (prerelease) (SuSE Linux).
Compiled on a Linux 2.4.20 system on 2003-03-13.
Best Regards,
Piotr Brostovski -
Problems with PL/SQL Calling Java Function that returns String []
Hi,
I have written the following code. It's not compiling OK.
DECLARE
TYPE Tokens_Type IS VARYING ARRAY(20) OF VARCHAR2(20);
s1 Tokens_Type DEFAULT NULL;
SQL_STR VARCHAR2(2000) DEFAULT NULL;
BEGIN
SQL_STR := 'CREATE OR REPLACE FUNCTION Schema1.SPLIT_STR (S2 VARCHAR2(20)) ' ||
'RETURN s1 ' ||
'AS LANGUAGE JAVA ' ||
'NAME ''String_Mani.split_it (String) return java.lang.String []''';
EXECUTE IMMEDIATE SQL_STR;
END;
What's the problem with this?You cannot create a function with a locally defined return type. As soon as this script is executed, Oracle no longer knows what the TOKEN_TYPE type is any more, so the function will be invalid.
You need to use a collection type defined at the database level or defined in a package - somewhere where it will persist. -
Problem with the query of Sharepoint Calculated Fields
Hello,
I am developing an application in sharepoint 2013 foundation. but i have problems with a list, when executing a caml query on a calculated field. I try the solution of this blog
http://sptalks.wordpress.com/2013/03/25/query-on-calculated-field-problem
but i got no result
attentive to any comments
thanksHello,
This is my CAML Query
<View>
<ViewFields>
<FieldRef Name="ID" />
<FieldRef Name="PermMask" />
<FieldRef Name="FSObjType" />
<FieldRef Name="Nombre" AutoHyperLink="TRUE" />
<FieldRef Name="Apellidos" AutoHyperLink="TRUE" />
<FieldRef Name="Cargo" /><FieldRef Name="Edad" />
<FieldRef Name="Compa_x00f1_ia" />
<FieldRef Name="Created" />
</ViewFields>
<Query>
<GroupBy Collapse="TRUE" GroupLimit="30">
<FieldRef Name="Compa_x00f1_ia" />
<FieldRef Name="Edad" />
</GroupBy>
<OrderBy>
<FieldRef Name="ID" />
</OrderBy>
<Where>
<Contains>
<FieldRef Name="Ano" LookupId="FALSE" />
<Value Type="Text">2014</Value>
</Contains>
</Where>
</Query>
</View> -
Problems with importing classes in Java
Hello,
i have some problems with a simple project.
The structure is like this:
web-inf/classes/databeans/loginexistinguserform.java
web-inf/classes/formactions/loginexistinguseraction.java
loginexistinguserform.java :
package databeans;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
public class LoginExistingUserForm extends ActionForm
String userid;
String password;
public String getUserid(){return userid;}
public void setUserid(String newUserid){userid=newUserid;}
public String getPassword(){return password;}
public void setPassword(String newPassword) {password=newPassword;}
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){
ActionErrors errors=new ActionErrors();
if(this.userid==null||this.userid.equals(""))
errors.add("user",new ActionError("error.userid.required"));
if(this.password==null||this.password.equals(""))
errors.add("pass",new ActionError("error.password.required"));
return errors;
}loginexistinguseraction.java
package formactions;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import databeans.LoginExistingUserForm;
public class LoginExistingUserAction extends Action
public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
LoginExistingUserForm loginData=(LoginExistingUserForm)form;
if(loginData.getUserid().equals("Admin")&&loginData.getPassword().equals("Parola"))
return mapping.findForward("successLogin");
else
return mapping.findForward("failureLogin");
}I can complie succesfully loginexisitinguserform.java but problems appears when i want to compile the second file, loginexistinguseraction.java with command: javac loginexistinguseraction.java
C:\ApacheGroup\Tomcat\webapps\PersonalWeb\WEB-INF\classes\formactions>javac loginexistinguseraction.java
loginexistinguseraction.java:10: package databeans does not exist
import databeans.LoginExistingUserForm;
^
loginexistinguseraction.java:17: cannot find symbol
symbol : class LoginExistingUserForm
location: class formactions.LoginExistingUserAction
LoginExistingUserForm loginData=(LoginExistingUserForm)form;
^
loginexistinguseraction.java:17: cannot find symbol
symbol : class LoginExistingUserForm
location: class formactions.LoginExistingUserAction
LoginExistingUserForm loginData=(LoginExistingUserForm)form;
^
3 errors
I have the CLASSPATH variable setup tu C:/Sun/Appserver/lib/j2ee.jar
Can someone help me ? Thank you in advance !Thank you very much ! It worked. I'm really new in Jav a programming.
Now i have encoutered another problem. When i want to login, and enter user name and password i am redirected to a login.do page, instead of Welcome.jsp
Here is Login.jsp:
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@page contentType="text/html; charset=ISO-8859-1"%>
<html>
<head><title>Login Form</title></head>
<body>
<html:errors/>
<html:form action="/login">
<table border="0" width="200">
<tr>
<td>User Name:</td>
<td><html:text property="userid" maxlength="13"/></td>
</tr>
<tr>
<td>Password:</td>
<td><html:password property="password" maxlength="13"/></td>
</tr>
</table>
<br />
<html:submit value="Login"/>
</html:form>
</body>
</html>and here is struts-config.xml :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<struts-config>
<!--========================beans for HTML form data=======================-->
<form-beans>
<form-bean name="loginBean" type="databeans.LoginExistingUserForm"/>
</form-beans>
<!--========================Action Mappings================================-->
<action-mappings>
<action path="/login" type="formactions.LoginExistingUserAction" name="loginBean" input="/Login.jsp" scope="session">
<forward name="succesLogin" path="/pages/Welcome.jsp" redirect="true"/>
<forward name="failureLogin" path="/pages/Diverse.jsp" redirect="true"/>
</action>
</action-mappings>
<message-resources parameter="MessageResources" />
</struts-config> -
Problems with WLST embedded in java app.
Hi,
I have a problem with the WLST embedded in a java app.
I want to programatically create or reconfigure a domain from a java application. Following is a simple example of what I want to do.
import weblogic.management.scripting.utils.WLSTInterpreter;
public class DomainTester {
static WLSTInterpreter interpreter = new WLSTInterpreter();
private void processDomain() {
if(domainExists()) {
System.out.println("Should now UPDATE the domain");
} else {
System.out.println("Should now CREATE the domain");
private boolean domainExists() {
try {
interpreter.exec("readDomain('d:/myDomains/newDomain')");
return true;
}catch(Exception e) {
return false;
}The output of this should be one of two possibles.
1. If the domain exists already it should output
"Should now UPDATE the domain"
2. If the domain does not exist it should output
"Should now CREATE the domain"
However, if the domain does not exist the output is always :
Error: readDomain() failed. Do dumpStack() to see details.
Should now UPDATE the domain
It never returns false from the domainExists() method therefor always states that the exec() worked.
It seams that the exec() method does not throw ANY exceptions from the WLST commands. The catch clause is never executed and the return value from domainExists() is always true.
None of the VERY limited number of examples using embedded WLST in java has exception or error handling in so I need to know what is the policy to detect failures in a WLST command executed in java??? i.e. How does my java application know when a command succeeds or not??
Regards
SteveHi,
I did some creative wrapping for the WLSTInterpreter and I now have very good programatic access to the WLST python commands.
I will put this on dev2dev somewhere and release it into the open source community.
Don't know the best place to put it yet, so if anybody sees this and has any good ideas please feel free to pass them on.
Here is the wrapper class. It can be used as a direct replacement for the weblogic WLSTInterpreter. As I can't overload the actual exec() calls because I want to return a String from this call I created an exec1(String command) that will return a String and throw my WLSTException which is a RuntimeException which you can handle if you like.
It sets up stderr and stdout streams to interpret the results both from the Python interpreter level and at the JVM level where dumpStack() just seem to do a printStackTrace(). It also calls the dumpStack() command should the result contain this in its text. If either an exception is thrown from the lower level interpreter or dumpStack() is in the response I throw my WLSTException containing this information.
package eu.medsea.WLST;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import weblogic.management.scripting.utils.WLSTInterpreter;
public class WLSTInterpreterWrapper extends WLSTInterpreter {
// For interpreter stdErr and stdOut
private ByteArrayOutputStream baosErr = new ByteArrayOutputStream();
private ByteArrayOutputStream baosOut = new ByteArrayOutputStream();
private PrintStream stdErr = new PrintStream(baosErr);
private PrintStream stdOut = new PrintStream(baosOut);
// For redirecting JVM stderr/stdout when calling dumpStack()
static PrintStream errSaveStream = System.err;
static PrintStream outSaveStream = System.out;
public WLSTInterpreterWrapper() {
setErr(stdErr);
setOut(stdOut);
// Wrapper function for the WLSTInterpreter.exec()
// This will throw an Exception if a failure or exception occures in
// The WLST command or if the response containes the dumpStack() command
public String exec1(String command) {
String output = null;
try {
output = exec2(command);
}catch(Exception e) {
try {
synchronized(this) {
stdErr.flush();
baosErr.reset();
e.printStackTrace(stdErr);
output = baosErr.toString();
baosErr.reset();
}catch(Exception ex) {
output = null;
if(output == null) {
throw new WLSTException(e);
if(!output.contains(" dumpStack() ")) {
// A real exception any way
throw new WLSTException(output);
if (output.length() != 0) {
if(output.contains(" dumpStack() ")) {
// redirect the JVM stderr for the durration of this next call
synchronized(this) {
System.setErr(stdErr);
System.setOut(stdOut);
String _return = exec2("dumpStack()");
System.setErr(errSaveStream);
System.setOut(outSaveStream);
throw new WLSTException(_return);
return stripCRLF(output);
private String exec2(String command) {
// Call down to the interpreter exec method
exec(command);
String err = baosErr.toString();
String out = baosOut.toString();
if(err.length() == 0 && out.length() == 0) {
return "";
baosErr.reset();
baosOut.reset();
StringBuffer buf = new StringBuffer("");
if (err.length() != 0) {
buf.append(err);
if (out.length() != 0) {
buf.append(out);
return buf.toString();
// Utility to remove the end of line sequences from the result if any.
// Many of the response are terminated with either \r or \n or both and
// some responses can contain more than one of them i.e. \n\r\n
private String stripCRLF(String line) {
if(line == null || line.length() == 0) {
return line;
int offset = line.length();
while(true && offset > 0) {
char c = line.charAt(offset-1);
// Check other EOL terminators here
if(c == '\r' || c == '\n') {
offset--;
} else {
break;
return line.substring(0, offset);
}Next here is the WLSTException class
package eu.medsea.WLST;
public class WLSTException extends RuntimeException {
private static final long serialVersionUID = 1102103857178387601L;
public WLSTException() {
super();
public WLSTException(String message) {
super(message);
public WLSTException(Throwable t) {
super(t);
public WLSTException(String s, Throwable t) {
super(s, t);
}And here is the start of a wrapper class for so that you can use the WLST commands directly. I will flesh this out later with proper var arg capabilities as well as create a whole Exception hierarchy that better suites the calls.
package eu.medsea.WLST;
// Provides methods for the WLSTInterpreter
// just to make life a little easier.
// Also provides access to the more generic exec(...) call
public class WLSTCommands {
public void cd(String path) {
exec("cd('" + path + "')");
public void edit() {
exec("edit()");
public void startEdit() {
exec("startEdit()");
public void save() {
exec("save()");
public void activate() {
exec("activate(block='true')");
public void updateDomain() {
exec("updateDomain()");
public String state(String serverName) {
return exec("state('" + serverName + "')");
public String ls(String dir) {
return exec("ls('" + dir + "')");
// The generic wrapper for the interpreter exec() call
public String exec(String command) {
return interpreter.exec1(command);
private WLSTInterpreterWrapper interpreter = new WLSTInterpreterWrapper();
}Lastly here is some example code using these classes:
its using both the exec(...) and cd(...) wrapper commands from the WLSTCommand.class shown above.
String machineName = ...; // get name from somewhere
try {
exec("machine=create('" + machineName + "','Machine')");
cd("/Machines/" + machineName + "/NodeManager/" + machineName);
exec("set('ListenAddress','10.42.60.232')");
exec("set('ListenPort', 5557)");
}catch(WLSTException e) {
// Possibly the machine object already exists so
// lets just try to look it up.
exec("machine=lookup('" + machineName + "','Machine')");
...After this call a machine object is setup that can be allocated later like so:
exec("set('Machine',machine)");Regards
Steve -
Problems with porting to Personal Java
Hi all,
I'm currently trying to port a java application to Personal Java to run on the jeode jvm. The application needs certain packages from Java standard Edition, packages like java.util.Properties.class etc. However when I add this package to the core jar of classes for jeode, my program still cannot see it. I keep getting a NoSuchMethod Error on java.util.Properties.setProperties. This method does exist, and I am calling it correctly.
I'm just wondering if anyone has met this sort of a problem with jeode? Also packages like java.lang.object and java.lang.string don't appear in the main jar file for jeode? Does anyone know if this is correct?
Many thanks for yor help in advance,
ShaneHi all,
I'm currently trying to port a java
a java application to Personal Java to run on the
jeode jvm. The application needs certain packages
from Java standard Edition, packages like
java.util.Properties.class etc. However when I add
this package to the core jar of classes for jeode, my
program still cannot see it. I keep getting a
NoSuchMethod Error on
java.util.Properties.setProperties. This method does
exist, and I am calling it correctly.
I suppose you mean java.util.Properties.setProperty(String, String) ? This API was added to Properties in Java 2, so it is not available in Personal Java. You will have to use put(Object, Object), which Properties inherits from Hashtable.
As a suggestion, try running JavaCheck on your project to find uses of APIs not contained in the pjava spec.
Regards,
Alex -
Problems with 11g Global Schema / Java API Test Programs
Hi,
In the process of trying to get the 11g sample java api programs up and running, I've encountered a problem. Having installed without error the sample schemas for documentation and set up the 11g version of the test code, I get this error when I try to run BuildAW11g.java
Created the AW GLOBAL_AWJ
Identifier "GLOBAL.CHANNEL_DIM.TOTAL_ID" is invalid.
at
oracle.olapi.syntax.parser.IdentifierResolver.error(Unknown Source)
at oracle.olapi.syntax.SyntaxObject.validate(Unknown Source)
at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
at oracle.olapi.examples.metadata.BuildAW11g.createDimension(BuildAW11g.java:470)
at oracle.olapi.examples.metadata.BuildAW11g.run(BuildAW11g.java:120)
at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:54)
at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:74)
at oracle.olapi.examples.metadata.BuildAW11g.main(BuildAW11g.java:989)
This seems to indicate that there is a problem with the sample schema - that GLOBAL.CHANNEL_DIM.TOTAL_ID doesn't exist. Is that right?
On the topic of the sample schemas, a quick question. The install script runs without error so presumably the tables described in the readme had been installed, but I'm not sure. How can I verify this? When I connect as global using Oracle SQL Developer and expand 'Tables' in the right hand pane, I don't see any tables at all. I would have (perhaps naively) expected to see the tables listed in the samples schemas readme, eg, CHANNEL_DIM. Should I have? If not, how can I view these tables? Thanks in advance for any input anyone may have.
-exitsAfter a reboot the "DHCP-check" is passed:
INFO: Checking DetectIfDHCPAssignedIP
This is a prerequisite condition to test whether the primary IP address of the system is DHCP-assiged or static.
INFO: Detecting the IP.....:192.168.1.4
INFO: Checking the network interface display name.... :eth0
INFO: Checking the network reference name..... :eth0
INFO: Checking the platform .......46
INFO: Checking the LINUX vendor .... :enterprise
INFO: Inspect interface file :/etc/sysconfig/network-scripts/ifcfg-eth0
INFO: Check complete. The overall result of this check is: Passed
But net configuration assistant is still failing. -
Problem with XML Parser For Java V2
Get message:
<Line 5, Column 40>: XSD-2021: (Error) Element not completed: 'doesNotWork'
Parser Exception: Element not completed: 'doesNotWork'
Element 'doesNotWork' is defined the same as 'works' except 'doesNotWork' uses a ref="" rather than defining element inline.
This appears to be a bug in the parser.
XML:
<?xml version ="1.0"?>
<example>
<works anAttribute="something"/>
<doesNotWork anAttribute="something"/>
</example>
Schema:
<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema xmlns:xsd = "http://www.w3.org/2000/10/XMLSchema">
<xsd:element name = "example">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="works">
<xsd:complexType>
<xsd:attribute name = "anAttribute" use = "required" type = "xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element ref = "doesNotWork"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name = "doesNotWork">
<xsd:complexType>
<xsd:attribute name = "anAttribute" use = "required" type = "xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>Hi all,
I am getting the same error. Is the schema parser being actively suppported. From replies to problems, it does not seem like it is. Also I am still having problems with 'required', ID attributes etc. Is there comprehensive documentation of what is and what is not supported.
Any help appreciated
Thanks
Venu -
Problem with downloading xdk for java - suggestions?
I am having problems downloading the xdk for java. Could someone please direct me to an alternate site for download?
In Windows, open the Task Manager and, in the Processes tab, close bridge.exe.
http://helpx.adobe.com/creative-suite/kb/error-installation-cannot-continue-bridge.html -
Problem with sending mail throgh java mail api
hi folks,
We are having problem regarding sending mail using java mail api.
we are using msgsendsample.java file from demo folder contained in javamail-1.3.3_01 folder.
we are using following command at dos prompt.:
java msgsendsample [email protected] [email protected] smtp.mail.yahoo.com false
It gives following Exception:
--Exception handling in msgsendsample.java
com.sun.mail.smtp.SMTPSendFailedException: 530 authentication required - for hel
p go to http://help.yahoo.com/help/us/mail/pop/pop-11.html
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1
333) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:906)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:535)
at javax.mail.Transport.send0(Transport.java:151)
at javax.mail.Transport.send(Transport.java:80)
at msgsendsample.main(msgsendsample.java:93)
** ValidUnsent Addresses
[email protected]
Thanking in Advance...
Please give us guidance to any alternate solution if exists.hi
the smtp server u are using should allow u to send mail to other smtp server like if u r sending mail to yahoo account u have to use yahoo smtp server only .....
bye
Maybe you are looking for
-
I CANNOT FIND THE REMOTE BUTTON ON THE NEW ITUNES TO ENTER THE PIN FOR PAIRING MY REMOTE. HELP ME
-
every time i download a file from the web (ie. a PDF file) i get "Anti-Virus Program not found " message. This has been happening since I changed anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program
-
Ok, I read the ENTIRE manual that came on the install CD. This is ALL I want to know: How do I STOP a song from playing say at mid-song? I don't want to switch to a different song, I just want to stop it. Not pause it and have it resume again later.
-
Inventory Management-Change designated printer for Goods Receipts
Hi, I am trying to change the designated printer that is assigned for printing our Goods Receipts. We are on 4.6C. I have looked at all of the IMG configuration tools and have not found the one that has the currently assigned printer shown. This incl
-
Print Date located in Special Fields In Field Explorer
Post Author: sher CA Forum: General The "print date" on my report displays the first date I ran the report which was 6/11/07. This date should display the system date/current date. Do you know why this is happening in my report?