Hi, i am using the nvp api(express checkout) calls for parallel payment intgration,it show this error , how can i fix thsi showing error msg: SetExpressCheckout API call failed.Array ( [name] => Basic Plan [desc] => Basic Plan $3.00 Signup & $5.00 per month [qty] => 1 [amt] => 300 ) Detailed Error Message: The totals of the cart item amounts do not match order amounts. Short Error Message: Transaction refused because of an invalid argument. See additional error messages for details. Error Code: 10413 Error Severity Code: Error

Member Avatar
Member Avatar
+0 forum 1

package controller; import dao.CheckDAO; import entity.Users; import java.io.IOException; import java.sql.Date; import java.text.SimpleDateFormat; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.annotation.Resource; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.naming.NamingException; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import model.CipherText; import model.UserService; public class Registration extends HttpServlet implements Runnable{ @Resource(name = "gmail") private Session gmail; public static Users user = new Users(); public static UserService userService = new UserService(); @Override public void init(ServletConfig config) throws ServletException { super.init(config); //To change body of generated methods, choose Tools | Templates. } protected void processRequest(HttpServletRequest request, HttpServletResponse …

Member Avatar
Member Avatar
+0 forum 1

I was taking a tutorial on PDO with PHP and MySQL and noticed I could not generate an exception from this code. I wonder what setting I need to put in place to generate the exception. If I shut down MySQL I can generate an error but with MySQL running the error is not generated. Below is the error. SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. Any ideas of what I should be looking for. # connect to the database try { $DBH = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass); $DBH->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); # UH-OH! Typed …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I am new to webservices.I am using eclipse,tomacat6 and axis2. When i was converting a class to webservice upto WSDL creation was done.After that i was getting error like [B] IWAB0014E Unexpected exception occurred.[/B] and details are[CODE]IWAB0014E Unexpected exception occurred. The char '0x0' after 'return code: 502 <HEAD><TITLE>Connection refused</TITLE></HEAD> <BODY BGCOLOR="white" FGCOLOR="black"><H1>Connection refused</H1><HR> <FONT FACE="Helvetica,Arial"><B> Description: Connection refused</B></FONT> <HR> <!-- default "Connection refused" response (502) --> </BODY> ' is not a valid XML character. java.lang.IllegalArgumentException: The char '0x0' after 'return code: 502 <HEAD><TITLE>Connection refused</TITLE></HEAD> <BODY BGCOLOR="white" FGCOLOR="black"><H1>Connection refused</H1><HR> <FONT FACE="Helvetica,Arial"><B> Description: Connection refused</B></FONT> <HR> <!-- default "Connection refused" …

Member Avatar
Member Avatar
+0 forum 3

Server Code [CODE]import java.io.DataInputStream; import java.io.DataOutputStream; import java.net.ServerSocket; import java.net.Socket; /** * * @author efron */ public class Server { public static void main(String[] args) { try { ServerSocket serverSocket = new ServerSocket(Integer.parseInt("49999")); System.out.println(serverSocket.getLocalPort()); while (true) { System.out.println("Waiting for Client...(port = " + 49999 + ")"); Socket acceptSocket = serverSocket.accept(); System.out.println("Connected to: " + acceptSocket.getRemoteSocketAddress()); DataInputStream in = new DataInputStream(acceptSocket.getInputStream()); DataOutputStream out = new DataOutputStream(acceptSocket.getOutputStream()); System.out.println(in.readUTF()); out.writeUTF("You have been connected to the server" + acceptSocket.getLocalSocketAddress()); acceptSocket.close(); } } catch (Exception e) { } } } [/CODE] Client Code [CODE]import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.net.InetAddress; import java.net.Socket; /** * …

Member Avatar
Member Avatar
+0 forum 9

The End.