继上一篇maven-psl能够在eclipse中运行后,有出现了一个错误—–内存溢出
java.lang.OutOfMemoryError: GC overhead limit exceeded
然后找到了一个解决办法
https://blog.csdn.net/xingxiupaioxue/article/details/72488624
运行倒是不报错了,可运行时间也太尼玛久了,差不多2个小时吧,所以放弃了。
然后我就吧实验数据改小了,
以前是315*250的矩阵,我自己设计改成了5*10的矩阵
结果还是报错
java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: org/codehaus/groovy/vmplugin/v7/IndyInterface
at edu.umd.cs.psl.fakhraei_tcbb2014.new_interactions_triads.main (new_interactions_triads.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
at java.lang.reflect.Method.invoke (Unknown Source)
at org.codehaus.mojo.exec.ExecJavaMojo
1.run(ExecJavaMojo.java:282)atjava.lang.Thread.run(UnknownSource)Causedby:java.lang.NoClassDefFoundError:org/codehaus/groovy/vmplugin/v7/IndyInterfaceatedu.umd.cs.psl.fakhraeitcbb2014.newinteractionstriads.main(newinteractionstriads.groovy)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.codehaus.mojo.exec.ExecJavaMojo
1.
r
u
n
(
E
x
e
c
J
a
v
a
M
o
j
o
.
j
a
v
a
:
282
)
a
t
j
a
v
a
.
l
a
n
g
.
T
h
r
e
a
d
.
r
u
n
(
U
n
k
n
o
w
n
S
o
u
r
c
e
)
C
a
u
s
e
d
b
y
:
j
a
v
a
.
l
a
n
g
.
N
o
C
l
a
s
s
D
e
f
F
o
u
n
d
E
r
r
o
r
:
o
r
g
/
c
o
d
e
h
a
u
s
/
g
r
o
o
v
y
/
v
m
p
l
u
g
i
n
/
v
7
/
I
n
d
y
I
n
t
e
r
f
a
c
e
a
t
e
d
u
.
u
m
d
.
c
s
.
p
s
l
.
f
a
k
h
r
a
e
i
t
c
b
b
2014.
n
e
w
i
n
t
e
r
a
c
t
i
o
n
s
t
r
i
a
d
s
.
m
a
i
n
(
n
e
w
i
n
t
e
r
a
c
t
i
o
n
s
t
r
i
a
d
s
.
g
r
o
o
v
y
)
a
t
s
u
n
.
r
e
f
l
e
c
t
.
N
a
t
i
v
e
M
e
t
h
o
d
A
c
c
e
s
s
o
r
I
m
p
l
.
i
n
v
o
k
e
0
(
N
a
t
i
v
e
M
e
t
h
o
d
)
a
t
s
u
n
.
r
e
f
l
e
c
t
.
N
a
t
i
v
e
M
e
t
h
o
d
A
c
c
e
s
s
o
r
I
m
p
l
.
i
n
v
o
k
e
(
U
n
k
n
o
w
n
S
o
u
r
c
e
)
a
t
s
u
n
.
r
e
f
l
e
c
t
.
D
e
l
e
g
a
t
i
n
g
M
e
t
h
o
d
A
c
c
e
s
s
o
r
I
m
p
l
.
i
n
v
o
k
e
(
U
n
k
n
o
w
n
S
o
u
r
c
e
)
a
t
j
a
v
a
.
l
a
n
g
.
r
e
f
l
e
c
t
.
M
e
t
h
o
d
.
i
n
v
o
k
e
(
U
n
k
n
o
w
n
S
o
u
r
c
e
)
a
t
o
r
g
.
c
o
d
e
h
a
u
s
.
m
o
j
o
.
e
x
e
c
.
E
x
e
c
J
a
v
a
M
o
j
o
1.run (ExecJavaMojo.java:282)
at java.lang.Thread.run (Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.vmplugin.v7.IndyInterface
at java.net.URLClassLoader.findClass (Unknown Source)
at java.lang.ClassLoader.loadClass (Unknown Source)
at java.lang.ClassLoader.loadClass (Unknown Source)
at edu.umd.cs.psl.fakhraei_tcbb2014.new_interactions_triads.main (new_interactions_triads.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
at java.lang.reflect.Method.invoke (Unknown Source)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282)
at java.lang.Thread.run (Unknown Source)
重新编译之后,又报如下错误
Reading TARGETSIMILARITY_DIST
Reading TARGETSIMILARITY_GO
Reading TARGETSIMILARITY_SEQ
Reading DRUGSIMILARITY_ATCHIER
Reading DRUGSIMILARITY_CHEMICAL
0 [edu.umd.cs.psl.fakhraei_tcbb2014.new_interactions_triads.main()] ERROR edu.umd.cs.psl.database.rdbms.RDBMSDataLoader - Unique index or primary key violation: “PRIMARY_KEY_4 ON PUBLIC.DRUGSIMILARITY_CHEMICAL_PREDICATE(UNIQUEID_0, UNIQUEID_1, PARTITION)”; SQL statement:
INSERT INTO DRUGSIMILARITY_CHEMICAL_predicate (partition, UniqueID_0, UniqueID_1, truth, confidence) VALUES ( ?, ?, ?, ?, ?) [23001-126]
[3, 3]
问题是出在数据的读入方面
根据错误提示找出,数据错误的地方
3 3 1
3 3 0.687
3 3 1是唯一的,所以去掉3 3 1
改正之后数据读入没有错误,但又报如下问题
java.lang.AssertionError: Could not read truth value for data: [2 4 0]
说我不能读取这个数据文件里的数据
2 4 0
4 4 0
5 4 0
1 5 0
唉,,,,断言错误,,,,