serkan-ozal / jillegal

Java Off Heap Object Pool and On the Fly Instrumentation Tool
http://serkan-ozal.github.com/jillegal/
111 stars 13 forks source link

build fail #1

Closed fancyerii closed 10 years ago

fancyerii commented 10 years ago

I cloned this project and use mvn package to install it but failed. is it supporting oracle jdk 7?

my environment: mvn --version Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800) Maven home: D:\programs\apache-maven-3.0.4\bin.. Java version: 1.7.0_10, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_10\jre Default locale: en_CN, platform encoding: GBK OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

mvn package [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for tr.com.serkanozal:jillegal:jar:1.0.5-RELEASE [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar- plugin is missing. @ line 59, column 21 [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten t he stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support buildin g such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Jillegal 1.0.5-RELEASE [INFO] ------------------------------------------------------------------------ [INFO]

[INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ jillegal -

[INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jillegal --- [INFO] Compiling 88 source files to D:\ubuntu\projects\jillegal\target\classes [INFO] ------------------------------------------------------------- [WARNING] COMPILATION WARNING : [INFO] ------------------------------------------------------------- [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\off heap\memory\DirectMemoryServiceImpl.java:[12,15] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JillegalUtil.java:[23,21] VMManagement is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[43,21] VMManagement is internal proprietary API and may be remov ed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[44,15] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\off heap\memory\DirectMemoryServiceImpl.java:[21,12] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JillegalUtil.java:[51,8] VMManagement is internal proprietary API and may be r emoved in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JillegalUtil.java:[51,35] VMManagement is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[126,19] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[153,32] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[155,22] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[230,15] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[1222,8] VMManagement is internal proprietary API and may be remo ved in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[1222,35] VMManagement is internal proprietary API and may be rem oved in a future release [INFO] 13 warnings [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[10,59] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[15,37] error: package tr.com.serkanozal .jcommon.util does not exist [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[18,81] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[19,35] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[20,33] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[21,36] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[22,40] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[24,40] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[88,18] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[101,43] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[12,59] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[20,82] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[21,35] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[22,33] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[23,36] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[24,40] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[32,41] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[133,18] error: cannot find s ymbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[149,43] error: cannot find s ymbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\util\ JvmUtil.java:[45,37] error: package tr.com.serkanozal.jcommon.util does not exis t [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[187,24] error: cannot find symbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[190,9] error: cannot find symbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[195,8] error: cannot find symbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\instr ument\impl\DefaultInstrumenter.java:[39,7] error: DefaultInstrumenter is not abs tract and does not override abstract method argumentId(int) in Instrumenter [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\util\ JvmUtil.java:[541,14] error: cannot find symbol [INFO] 25 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.614s [INFO] Finished at: Thu Nov 21 15:25:58 CST 2013 [INFO] Final Memory: 9M/25M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project jillegal: Compilation failure: Compilat ion failure: [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[10,59] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[15,37] error: package tr.com.serkanozal .jcommon.util does not exist [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[18,81] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[19,35] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[20,33] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[21,36] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[22,40] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[24,40] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[88,18] error: cannot find sym bol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\LazyReferencedObjectOffHeapPool.java:[101,43] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[12,59] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[20,82] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[21,35] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[22,33] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[23,36] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[24,40] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[32,41] error: cannot find sy mbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[133,18] error: cannot find s ymbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\EagerReferencedObjectOffHeapPool.java:[149,43] error: cannot find s ymbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\util\ JvmUtil.java:[45,37] error: package tr.com.serkanozal.jcommon.util does not exis t [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[187,24] error: cannot find symbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[190,9] error: cannot find symbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[195,8] error: cannot find symbol [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\instr ument\impl\DefaultInstrumenter.java:[39,7] error: DefaultInstrumenter is not abs tract and does not override abstract method argumentId(int) in Instrumenter [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\util\ JvmUtil.java:[541,14] error: cannot find symbol [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption D:\ubuntu\projects\jillegal>

serkan-ozal commented 10 years ago

Hi fancyerii, I will add "ReflectionUtil" class to "tr.com.serkanozal.jillegal.util.ReflectionUtil" instead of "tr.com.serkanozal.jcommon.util.ReflectionUtil" as soon as possible. After new version is commited, i will notify you from here.

Thanks for your interest.

serkan-ozal commented 10 years ago

Hi fancyerii, I pushed uncommitted files. Can you try cloning again. New version is 1.0.6-RELEASE.

fancyerii commented 10 years ago

still failed. it can't find tr.com.serkanozal:jcommon:jar:1.0.1-RELEASE in central repository is it in your private repo?

[ERROR] Failed to execute goal on project jillegal: Could not resolve dependenci es for project tr.com.serkanozal:jillegal:jar:1.0.6-RELEASE: Could not find arti fact tr.com.serkanozal:jcommon:jar:1.0.1-RELEASE in nexus-maven-repository (http s://maven-us.nuxeo.org/nexus/content/groups/public/) -> [Help 1] [ERROR]

fancyerii commented 10 years ago

I found the jcommon but it seems to be an older version of 1.0.0-release I modified pom.xml of jillegal to use jcommon-1.0.0-release but also failed

[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for tr.com.serkanozal:jillegal:jar:1.0.6-RELEASE [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar- plugin is missing. @ line 60, column 21 [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten t he stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support buildin g such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Jillegal 1.0.6-RELEASE [INFO] ------------------------------------------------------------------------ [INFO]

[INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ jillegal -

[INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jillegal --- [INFO] Compiling 63 source files to D:\ubuntu\projects\jillegal\target\classes [INFO] ------------------------------------------------------------- [WARNING] COMPILATION WARNING : [INFO] ------------------------------------------------------------- [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\off heap\memory\DirectMemoryServiceImpl.java:[12,15] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JillegalUtil.java:[23,21] VMManagement is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[43,21] VMManagement is internal proprietary API and may be remov ed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[44,15] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\off heap\memory\DirectMemoryServiceImpl.java:[21,12] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JillegalUtil.java:[51,8] VMManagement is internal proprietary API and may be r emoved in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JillegalUtil.java:[51,35] VMManagement is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[126,19] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[153,32] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[155,22] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[230,15] Unsafe is internal proprietary API and may be removed in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[1222,8] VMManagement is internal proprietary API and may be remo ved in a future release [WARNING] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\uti l\JvmUtil.java:[1222,35] VMManagement is internal proprietary API and may be rem oved in a future release [INFO] 13 warnings [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[195,22] error: method getMethod in clas s ReflectionUtil cannot be applied to given types; [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.563s [INFO] Finished at: Fri Nov 22 12:47:55 CST 2013 [INFO] Final Memory: 9M/24M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project jillegal: Compilation failure [ERROR] \ubuntu\projects\jillegal\src\main\java\tr\com\serkanozal\jillegal\offhe ap\pool\impl\BaseObjectOffHeapPool.java:[195,22] error: method getMethod in clas s ReflectionUtil cannot be applied to given types; [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption

serkan-ozal commented 10 years ago

I have just uploaded "jcommon-1.0.1-RELEASE" to my private maven repository on GitHub. Can you try again compiling jillegal with "jcommon-1.0.1-RELEASE" version at pom.xml?

fancyerii commented 10 years ago

build successfully. thanks.

serkan-ozal commented 10 years ago

Ok, i am closing issue. However there are some problems for offheap part of project due to compact phase of GC. These problems can be handled by VM arguments but i am working on a better solution.

fancyerii commented 10 years ago

I do have a problem when testing offheap demo

Used memory on heap before On-Heap allocation: 1017992 bytes Array for class with size 10000000 for class test.OffHeapDemo$SampleClass has be en allocated ... 22 Array for class test.OffHeapDemo$SampleClass has been allocated, got and set for 10000000 elements in 1036 milliseconds ... Used memory on heap after On-Heap allocation: 281828624 bytes Memory used by On-Heap allocation: 280810632 bytes

Used memory on heap before Off-Heap allocation: 863648 bytes [INFO] Using attach provider: sun.tools.attach.WindowsAttachProvider@d320d6 Class Path: D:\ubuntu\projects\jillegal\target\test-classes;D:\ubuntu\projects\j illegal\target\classes;C:\Windows\System32\config\systemprofile.m2\repository\t r\com\serkanozal\jillegal-agent\1.0.4-RELEASE\jillegal-agent-1.0.4-RELEASE.jar;C :\Windows\System32\config\systemprofile.m2\repository\com\sun\tools\1.6.2\tools -1.6.2.jar;C:\Windows\System32\config\systemprofile.m2\repository\tr\com\serkan ozal\jcommon\1.0.1-RELEASE\jcommon-1.0.1-RELEASE.jar;C:\Windows\System32\config\ systemprofile.m2\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;C:\Windows\Syst em32\config\systemprofile.m2\repository\com\google\guava\guava\13.0\guava-13.0. jar;C:\Windows\System32\config\systemprofile.m2\repository\commons-lang\commons -lang\2.6\commons-lang-2.6.jar;C:\Windows\System32\config\systemprofile.m2\repo sitory\cglib\cglib\2.2\cglib-2.2.jar;C:\Windows\System32\config\systemprofile.m 2\repository\asm\asm\3.1\asm-3.1.jar;C:\Windows\System32\config\systemprofile.m 2\repository\org\javassist\javassist\3.17.1-GA\javassist-3.17.1-GA.jar;C:\Window s\System32\config\systemprofile.m2\repository\junit\junit\4.11\junit-4.11.jar;C :\Windows\System32\config\systemprofile.m2\repository\org\hamcrest\hamcrest-cor e\1.3\hamcrest-core-1.3.jar OS Name: Windows 7 Using ClassPath: D:\ubuntu\projects\jillegal\target\test-classes;D:\ubuntu\proje cts\jillegal\target\classes;C:\Windows\System32\config\systemprofile.m2\reposit ory\tr\com\serkanozal\jillegal-agent\1.0.4-RELEASE\jillegal-agent-1.0.4-RELEASE. jar;C:\Windows\System32\config\systemprofile.m2\repository\com\sun\tools\1.6.2\ tools-1.6.2.jar;C:\Windows\System32\config\systemprofile.m2\repository\tr\com\s erkanozal\jcommon\1.0.1-RELEASE\jcommon-1.0.1-RELEASE.jar;C:\Windows\System32\co nfig\systemprofile.m2\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;C:\Windows \System32\config\systemprofile.m2\repository\com\google\guava\guava\13.0\guava- 13.0.jar;C:\Windows\System32\config\systemprofile.m2\repository\commons-lang\co mmons-lang\2.6\commons-lang-2.6.jar;C:\Windows\System32\config\systemprofile.m2 \repository\cglib\cglib\2.2\cglib-2.2.jar;C:\Windows\System32\config\systemprofi le.m2\repository\asm\asm\3.1\asm-3.1.jar;C:\Windows\System32\config\systemprofi le.m2\repository\org\javassist\javassist\3.17.1-GA\javassist-3.17.1-GA.jar;C:\W indows\System32\config\systemprofile.m2\repository\junit\junit\4.11\junit-4.11. jar;C:\Windows\System32\config\systemprofile.m2\repository\org\hamcrest\hamcres t-core\1.3\hamcrest-core-1.3.jar Agent path: C:\Windows\System32\config\systemprofile.m2\repository\tr\com\serka nozal\jillegal-agent\1.0.4-RELEASE\jillegal-agent-1.0.4-RELEASE.jar Agentmain: sun.instrument.InstrumentationImpl@13f9276 - Arguments: null Exception in thread "main" java.lang.ClassCastException: /30165213 cannot be cas t to test.OffHeapDemo$SampleClass at test.OffHeapDemo.demoObjectOffHeapPool(OffHeapDemo.java:142) at test.OffHeapDemo.main(OffHeapDemo.java:32) Sequential Off Heap Object Pool with size 10000000 for class test.OffHeapDemo$Sa mpleClass has been allocated ...