| Summary: | issue facing when debugging Selenium script and error message displaying as "org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type" | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Sahida Sultana <ssultana> | ||||||||||||
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> | ||||||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||||||
| Severity: | normal | ||||||||||||||
| Priority: | P3 | CC: | sarika.sinha, ssultana | ||||||||||||
| Version: | 4.6 | ||||||||||||||
| Target Milestone: | --- | ||||||||||||||
| Hardware: | PC | ||||||||||||||
| OS: | Windows 7 | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Attachments: |
|
||||||||||||||
Can you please attach the error log. You may also want to check the supported Selenium driver versions for Luna and check in Eclipse Newbie forum. Today Eclipse Working Fine and I am not Facing given Issue "org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type" So, Closed the Defect. Again I am facing same issue with Eclipse.So Reopen the Defect. I am Using Eclipse for Automate Selenium scripts(Version: Luna Service Release 2 (4.4.2)) but issue facing when debugging script and error message displaying as "org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type" Please Update regarding Bug ID:489419 I have send you Eclipse log File I don't see any log attached to the bug? Created attachment 260407 [details]
Please find the Eclipse Log File.
Please find the Eclipse Log File.
I see NPE and ClassCastException for Launch Delegate. Can you try in a new workspace ? Created attachment 260504 [details]
Eclipse Log Updated
Created attachment 260506 [details]
High Priority Eclipse Issue
Again i am Facing High Priority Eclipse Issue.that's why unable to Run Selenium scripts.When i am running valid code there Error Message throwing as "org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.".this issue coming as intermitten.I have also attached Log File.there is displaying Some Remote Access.now i am not able to run Eclipse Scripts due above reason.so,please have a look as soon as possible and let me know as soon as possible.
Again i am Facing High Priority Eclipse Issue.that's why unable to Run Selenium scripts.When i am running valid code there Error Message throwing as "org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.".this issue coming as intermitten.I have also attached Log File.there is displaying Some Remote Access.now i am not able to run Eclipse Scripts due above reason.so,please have a look as soon as possible and let me know as soon as possible. so,is any update for the same? Created attachment 260689 [details]
Attached log_Todays
Still facing same issue that's why unable to run Eclipse Scripts.i have also attached new log.
Please provide a standalone testcase which can be run on Eclipse SDK so that I can reproduce this problem. Hi,
I have given Automated testcases .please check and let me know the issue.
I am facing issue given issues
1.sometimes displaying driver null(sometimes working fine).this issue coming as intermittent.
2.sometimes facing "org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type".
package Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class Test_Green_driver {
public WebDriver driver;
@BeforeClass
public void setUp(){
System.setProperty("webdriver.chrome.driver", "C:\\Users\\ssultana\\Desktop\\sahida\\Selenium\\chromedriver.exe");
driver=new ChromeDriver();
}
@Test
public void StartEngine_SahidaSultana() {
try {
driver.get("https://www.startengine.com/");
driver.findElement(By.linkText("Login"));
driver.findElement(By.id("email")).sendKeys("ssultana@xavient.com");
driver.findElement(By.name("password")).sendKeys("april@2016");
driver.findElement(By.xpath("/html/body/div[5]/div/div/form/div[2]/input[3]")).click();
} catch (Exception e) {
e.printStackTrace();
}
}
(In reply to Sahida Sultana from comment #13) > Hi, > I have given Automated testcases .please check and let me know the issue. > I am facing issue given issues > 1.sometimes displaying driver null(sometimes working fine).this issue coming > as intermittent. > 2.sometimes facing "org.eclipse.debug.core.DebugException: > com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while > retrieving component type". > > package Test; > import org.openqa.selenium.By; > import org.openqa.selenium.WebDriver; > import org.openqa.selenium.chrome.ChromeDriver; > import org.testng.annotations.AfterClass; > import org.testng.annotations.BeforeClass; > import org.testng.annotations.Test; > > public class Test_Green_driver { > public WebDriver driver; > > > @BeforeClass > public void setUp(){ > System.setProperty("webdriver.chrome.driver", > "C:\\Users\\ssultana\\Desktop\\sahida\\Selenium\\chromedriver.exe"); > driver=new ChromeDriver(); > > } > @Test > public void StartEngine_SahidaSultana() { > try { > > driver.get("https://www.gmail.com/"); > driver.findElement(By.linkText("Login")); > > driver.findElement(By.id("email")).sendKeys("xyz"); > driver.findElement(By.id("password")).sendKeys("xyz"); > > driver.findElement(By.xpath("/html/body/div[5]/div/div/form/div[2]/ > input[3]")).click(); > } catch (Exception e) { > e.printStackTrace(); > } > } (In reply to Sahida Sultana from comment #14) > (In reply to Sahida Sultana from comment #13) > > Hi, > > I have given Automated testcases .please check and let me know the issue. > > I am facing issue given issues > > 1.sometimes displaying driver null(sometimes working fine).this issue coming > > as intermittent. > > 2.sometimes facing "org.eclipse.debug.core.DebugException: > > com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while > > retrieving component type". > > > > package Test; > > import org.openqa.selenium.By; > > import org.openqa.selenium.WebDriver; > > import org.openqa.selenium.chrome.ChromeDriver; > > import org.testng.annotations.AfterClass; > > import org.testng.annotations.BeforeClass; > > import org.testng.annotations.Test; > > > > public class Test_Green_driver { > > public WebDriver driver; > > > > > > @BeforeClass > > public void setUp(){ > > System.setProperty("webdriver.chrome.driver", > > "C:\\Users\\ssultana\\Desktop\\sahida\\Selenium\\chromedriver.exe"); > > driver=new ChromeDriver(); > > > > } > > @Test > > public void StartEngine_SahidaSultana() { > > try { > > > > driver.get("https://www.gmail.com/"); > > driver.findElement(By.linkText("Login")).click(); > > > > driver.findElement(By.id("email")).sendKeys("xyz"); > > > > driver.findElement(By.xpath("/html/body/div[5]/div/div/form/div[2]/ > > input[3]")).click(); > > } catch (Exception e) { > > e.printStackTrace(); > > } > > } Now it's working fine and i am facing issue.so,closing the defect.in future if i face any issue then i will reopen the defect. Now it's working fine and i am not facing issue.so,closing the defect.in future if i face any issue then i will reopen the defect. Suggestion on behalf of me:Edit features should add in the Bugzilla bugs comment. sometime need to Edit Bugs comment but unable due to Edit features is not added in the Bugzilla. |
Created attachment 260247 [details] Eclipse_Issue_Class_not_Loaded I am Using Eclipse for Automate Selenium scripts(Version: Luna Service Release 2 (4.4.2)) but issue facing when debugging script and error message displaying as "org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type" I have used everything correctly in the given code package pageObjects; import java.util.Set; import org.openqa.selenium.WebDriver; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import utility.Log; public class Home_Page extends BaseClass { public static WebElement element=null; public Home_Page(WebDriver driver) { super(driver); } public static WebElement Home_Page_Link(int rowNum)throws Exception { try{ java.util.List<WebElement> links = driver.findElements(By.tagName("a")); Set<String> handle1= driver.getWindowHandles(); //String handle= driver.getWindowHandle(); System.out.println(handle1); element=driver.findElement(By.cssSelector("body")); String linkval=element.getText(); Log.info("Home Page Link Text Verified as "+" "+linkval); //} }catch(Exception e){ Log.error("Home Page Link Text does not Verified"); } return element; } } so,please have a look and update for the same issue.