Get error while trying to sendkeys using selenium webdriver : An error occurred while executing user supplied JavaScript

I get this error :
Exception in thread “main” org.openqa.selenium.WebDriverException: An error occurred while executing user supplied JavaScript. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 5.15 seconds
Build info: version: ‘2.52.0’, revision: ‘4c2593c’, time: ‘2016-02-11 19:03:33’
System info: host: ‘users-iMac.local’, ip: ‘192.168.1.16’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.10.5’, java.version: ‘1.7.0_80’
Session ID: cdcaf9fa-3530-4b09-8bca-c30c42d6c29e
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities [{platformVersion=9.2, platform=MAC, databaseEnabled=false, javascriptEnabled=true, platformName=iOS, deviceName=iPad 2, browserName=iOS, webStorageEnabled=false, bundleId=com.InovaSquad.Artinove, networkConnectionEnabled=false, desired={platformVersion=9.2, deviceName=iPad 2, platformName=iOS, bundleId=com.InovaSquad.Artinove}, locationContextEnabled=false, warnings={}, takesScreenshot=true}]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327)
at io.appium.java_client.DefaultGenericMobileElement.execute(DefaultGenericMobileElement.java:44)
at io.appium.java_client.MobileElement.execute(MobileElement.java:1)
at io.appium.java_client.ios.IOSElement.execute(IOSElement.java:1)
at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:122)
at test1.FirstTest.main(FirstTest.java:49)

The code :
package test1;

import java.net.MalformedURLException;
import java.net.URL;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.ios.IOSElement;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.Listeners;
/*

  • @author:Hajar
  • 11/03/2016

*/
@Listeners(TimeReport.class)
public class FirsTest1 {

public static  AppiumDriver dr;

 
 public static void main(String[] args)

throws MalformedURLException, InterruptedException{

	 DesiredCapabilities capabilities = new DesiredCapabilities();
 
 // Platform de l'emulateur
 capabilities.setCapability("platformName","iOS");
// La version de l'emulateur 
capabilities.setCapability("platformVersion", "9.2");
// le nom de l'emulateur
capabilities.setCapability("deviceName","iPad 2");

capabilities.setCapability(“bundleId”,“com.InovaSquad.Artinove”);

 dr=new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"),capabilities);
 dr.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIAScrollView[2]/UIAWebView[1]/UIALink[2]/UIAStaticText[1]")).click();
dr.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIAScrollView[2]/UIAWebView[1]/UIATextField[1]")).sendKeys("ggg");

}}

Any assistance would be greatly appreciated!