Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 489419

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: DebugAssignee: 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:
Description Flags
Eclipse_Issue_Class_not_Loaded
none
Please find the Eclipse Log File.
none
Eclipse Log Updated
none
High Priority Eclipse Issue
none
Attached log_Todays none

Description Sahida Sultana CLA 2016-03-11 05:41:59 EST
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.
Comment 1 Sarika Sinha CLA 2016-03-11 06:52:04 EST
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.
Comment 2 Sahida Sultana CLA 2016-03-14 08:08:36 EDT
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.
Comment 3 Sahida Sultana CLA 2016-03-15 04:52:34 EDT
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"
Comment 4 Sahida Sultana CLA 2016-03-18 04:50:54 EDT
Please Update regarding Bug ID:489419
I have send you Eclipse log File
Comment 5 Sarika Sinha CLA 2016-03-18 05:41:18 EDT
I don't see any log attached to the bug?
Comment 6 Sahida Sultana CLA 2016-03-18 05:52:25 EDT
Created attachment 260407 [details]
Please find the Eclipse Log File.

Please find the Eclipse Log File.
Comment 7 Sarika Sinha CLA 2016-03-18 06:03:30 EDT
I see NPE and ClassCastException for Launch Delegate. Can you try in a new workspace ?
Comment 8 Sahida Sultana CLA 2016-03-23 03:33:14 EDT
Created attachment 260504 [details]
Eclipse Log Updated
Comment 9 Sahida Sultana CLA 2016-03-23 03:44:50 EDT
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.
Comment 10 Sahida Sultana CLA 2016-03-25 04:39:24 EDT
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?
Comment 11 Sahida Sultana CLA 2016-04-04 02:29:22 EDT
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.
Comment 12 Sarika Sinha CLA 2016-04-04 04:26:31 EDT
Please provide a standalone testcase which can be run on Eclipse SDK so that I can reproduce this problem.
Comment 13 Sahida Sultana CLA 2016-04-21 07:21:47 EDT
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();
        }
    }
Comment 14 Sahida Sultana CLA 2016-04-21 07:27:31 EDT
(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();
>         }
>     }
Comment 15 Sahida Sultana CLA 2016-04-21 07:29:10 EDT
(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();
> >         }
> >     }
Comment 16 Sahida Sultana CLA 2016-04-21 08:31:10 EDT
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.
Comment 17 Sahida Sultana CLA 2016-04-21 08:43:53 EDT
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.