문제

I am executing a junit test case

I got the following error,

A fatal error has been detected by the Java Runtime Environment:

Internal Error (classFileParser.cpp:3174), pid=2680, tid=2688

  Error: ShouldNotReachHere()

  JRE version: 6.0_18-b07

  Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )

Can any body please suggest the solution to resolve

올바른 솔루션이 없습니다

다른 팁

OK 나는 마침내 내 필요에 응답하는 솔루션을 만드는 데 성공했습니다. 나는 그것을 요약하려고 노력할 것이다 :

3 개의 주요 SharePoint JS 라이브러리를 사용하는 JavaScript 스크립트를 만들었습니다. ECMA 스크립팅. 나는 내가 만들고 싶은 것과 똑같은 것을 발견했고, 나는 그것을 적응시키고, http://www.sharepointdevelopment.me/2011/05/working-with-files-in-sharepoint-from-cma-script/

그런 다음 코드 스 니펫 WebPart를 My SharePoint의 .aspx 페이지로 만들었습니다.

  1. 페이지 이름, 라디오 단추를 입력하고, 페이지를 만들고 싶은 템플릿을 선택하기 위해 드롭 다운 목록을 입력하여 입력을 입력하여 입력 한 다음 내부에 처방집을 만들고 사용하려는 템플릿을 선택하는 드롭 다운 목록을 선택합니다.
  2. 양식을 My JS 기능으로 연결했습니다.
  3. 가 생성 된 페이지에 직접 액세스하기 위해 끝에서 생성 된 링크가 추가되었습니다.

You'll need to take this up with Sun -- looks like a JVM bug to me. If it's reproducible, you should be able to run java in such a way as to generate more details (e.g. -verbose, etc). If you can reduce it to a minimal case that triggers the bug (source code always helps!), that also goes a very long way.

http://java.sun.com/developer/technicalArticles/bugreport_howto/index.html

http://bugreport.sun.com/bugreport/crash.jsp

In the meantime, you might want to try it with a different JVM implementation (maybe even an older patch level of the Sun JRE).

Go to Run As -> Run Configurations... and select the configuration you are using.
Select the Class Path tab and select BootStrap Entries.
Click on Advance, then Add Library and select JRE System Library.
Bring it up and make it the first entry in the BootstrapEntries List.

Apply and Run...

Another possible explanation: hardware failure. Ruled out if you can reproduce the error on different machines.

I resolved this by

  • Quit eclipse
  • Delete the bin and gen directories in your project
  • Start eclipse
  • Rebuild your project

I just recently found solution for this issue that was posted by devdanke:

"As of 11-July-2010 and Android 2.1, the work around I use is to segregate tests into different classes. Any test(s) that don't call any Android APIs go into their own classes. For each of these classes, I remove the reference to Android in their Run Configurations, Classpath tab."

The problem with having it configured class by class is then is not possible to run all tests in project. Better approach is creating 2 test projects with different sets of libraries.

Standard Android JUnit Test project can be created following link, and sample test class looks like:

import android.test.AndroidTestCase;
public class ConverterTest extends AndroidTestCase {
    public void testConvert() {
        assertEquals("one", "one");
    }   
}

Then JUnit Test project can be converted from Android JUnit Test project by removing Android Library from project build path, and adding JRE System Library, and JUnit 3 library, and sample test class looks like:

import junit.framework.TestCase;
public class ConverterTest extends TestCase{
    public void testConvert() {
        assertEquals("one", "one");
    }   
}

SharePoint Hosted Apps에서 언급 된 모든 아티팩트 콘텐츠 유형, 목록, 워크 플로 및 GUI를 작성할 수 있습니다.그러나 휴식 및 / 또는 JavaScript 클라이언트 객체 모델을 사용하여 모든 코딩을 수행해야한다는 것을 기억하십시오.

This could be a JVM bug; see @Zac's answer. But it could also be that your junit test case is causing a corrupted bytecode file to be loaded. Try rebuilding all your .class files, and if that does not fix the problem try refetching any external libraries that your code depends on.

이것은 나를 위해 일했습니다.그것은 1000 마일리 초마다 항상 자체를 반복합니다.

$(document).ready(function () {
          setInterval(function () {
                $('.ms-listviewtable tr').each(function() {
                $(this).find('td:eq(5)').css('text-transform','uppercase');
                $(this).find('td:eq(11)').css('text-transform','uppercase');
            });            
            }, 1000);


        });
.

Go to Run As -> Run Configurations->classpath->BootStrap Entries Click on Advance, then Add Library and select JRE System Library as a first entry. Apply and Run...

I am not sure whether you were able to reach the solution for your problem or not but your question just popped up while I was searching for the solution for the same problem I am facing. And I got one solution from the stack itself, so just thought to share a link with you if that aids you by any means. The link is as below:

Can't run JUnit 4 test case in Eclipse Android project

여기 여기를 수행하는 한 가지 방법이 있습니다..

누락 된 것은 OrderBy 절입니다. (AllItems보기에 정렬 기준을 설정하면) 동일한 순서를 유지하려고합니다.

이 코드 스 니펫을 추가해야합니다.

// Build a query with an orderby clause
SPQuery query = new SPQuery();
query.Query = "<OrderBy><FieldRef Name='YOUR_SORT_COLUMN' /></OrderBy>";
SPListItemCollection items = list.GetItems(query);

foreach (SPListItem item in items)
{
   //use the code showed in the linked page
}
.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top