java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:125)
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:108)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:118)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:246)
at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:97)
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda$invokeTestInstancePostProcessors
3
(
C
l
a
s
s
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
j
a
v
a
:
215
)
a
t
o
r
g
.
j
u
n
i
t
.
j
u
p
i
t
e
r
.
e
n
g
i
n
e
.
d
e
s
c
r
i
p
t
o
r
.
J
u
p
i
t
e
r
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
e
x
e
c
u
t
e
A
n
d
M
a
s
k
T
h
r
o
w
a
b
l
e
(
J
u
p
i
t
e
r
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
j
a
v
a
:
141
)
a
t
o
r
g
.
j
u
n
i
t
.
j
u
p
i
t
e
r
.
e
n
g
i
n
e
.
d
e
s
c
r
i
p
t
o
r
.
C
l
a
s
s
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
l
a
m
b
d
a
3(ClassTestDescriptor.java:215) at org.junit.jupiter.engine.descriptor.JupiterTestDescriptor.executeAndMaskThrowable(JupiterTestDescriptor.java:141) at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda
3(ClassTestDescriptor.java:215)atorg.junit.jupiter.engine.descriptor.JupiterTestDescriptor.executeAndMaskThrowable(JupiterTestDescriptor.java:141)atorg.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambdainvokeTestInstancePostProcessors$4(ClassTestDescriptor.java:215)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$2
1.
a
c
c
e
p
t
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
175
)
a
t
j
a
v
a
.
u
t
i
l
.
A
r
r
a
y
L
i
s
t
1.accept(ReferencePipeline.java:175) at java.util.ArrayList
1.accept(ReferencePipeline.java:175)atjava.util.ArrayListArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.StreamSpliterators
W
r
a
p
p
i
n
g
S
p
l
i
t
e
r
a
t
o
r
.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
S
t
r
e
a
m
S
p
l
i
t
e
r
a
t
o
r
s
.
j
a
v
a
:
312
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
S
t
r
e
a
m
s
WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312) at java.util.stream.Streams
WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312)atjava.util.stream.StreamsConcatSpliterator.forEachRemaining(Streams.java:743)
at java.util.stream.Streams
C
o
n
c
a
t
S
p
l
i
t
e
r
a
t
o
r
.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
S
t
r
e
a
m
s
.
j
a
v
a
:
742
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
ConcatSpliterator.forEachRemaining(Streams.java:742) at java.util.stream.ReferencePipeline
ConcatSpliterator.forEachRemaining(Streams.java:742)atjava.util.stream.ReferencePipelineHead.forEach(ReferencePipeline.java:580)
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.invokeTestInstancePostProcessors(ClassTestDescriptor.java:214)
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.instantiateAndPostProcessTestInstance(ClassTestDescriptor.java:196)
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda$testInstanceProvider
0
(
C
l
a
s
s
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
j
a
v
a
:
185
)
a
t
o
r
g
.
j
u
n
i
t
.
j
u
p
i
t
e
r
.
e
n
g
i
n
e
.
d
e
s
c
r
i
p
t
o
r
.
C
l
a
s
s
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
l
a
m
b
d
a
0(ClassTestDescriptor.java:185) at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda
0(ClassTestDescriptor.java:185)atorg.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambdatestInstanceProvider
1
(
C
l
a
s
s
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
j
a
v
a
:
189
)
a
t
j
a
v
a
.
u
t
i
l
.
O
p
t
i
o
n
a
l
.
o
r
E
l
s
e
G
e
t
(
O
p
t
i
o
n
a
l
.
j
a
v
a
:
267
)
a
t
o
r
g
.
j
u
n
i
t
.
j
u
p
i
t
e
r
.
e
n
g
i
n
e
.
d
e
s
c
r
i
p
t
o
r
.
C
l
a
s
s
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
l
a
m
b
d
a
1(ClassTestDescriptor.java:189) at java.util.Optional.orElseGet(Optional.java:267) at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda
1(ClassTestDescriptor.java:189)atjava.util.Optional.orElseGet(Optional.java:267)atorg.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambdatestInstanceProvider
2
(
C
l
a
s
s
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
j
a
v
a
:
188
)
a
t
o
r
g
.
j
u
n
i
t
.
j
u
p
i
t
e
r
.
e
n
g
i
n
e
.
d
e
s
c
r
i
p
t
o
r
.
T
e
s
t
M
e
t
h
o
d
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
p
r
e
p
a
r
e
(
T
e
s
t
M
e
t
h
o
d
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
j
a
v
a
:
81
)
a
t
o
r
g
.
j
u
n
i
t
.
j
u
p
i
t
e
r
.
e
n
g
i
n
e
.
d
e
s
c
r
i
p
t
o
r
.
T
e
s
t
M
e
t
h
o
d
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
p
r
e
p
a
r
e
(
T
e
s
t
M
e
t
h
o
d
T
e
s
t
D
e
s
c
r
i
p
t
o
r
.
j
a
v
a
:
58
)
a
t
o
r
g
.
j
u
n
i
t
.
p
l
a
t
f
o
r
m
.
e
n
g
i
n
e
.
s
u
p
p
o
r
t
.
h
i
e
r
a
r
c
h
i
c
a
l
.
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
2(ClassTestDescriptor.java:188) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:81) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:58) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor
2(ClassTestDescriptor.java:188)atorg.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:81)atorg.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:58)atorg.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorNodeExecutor.prepare(HierarchicalTestExecutor.java:89)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor
N
o
d
e
E
x
e
c
u
t
o
r
.
e
x
e
c
u
t
e
(
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
.
j
a
v
a
:
74
)
a
t
o
r
g
.
j
u
n
i
t
.
p
l
a
t
f
o
r
m
.
e
n
g
i
n
e
.
s
u
p
p
o
r
t
.
h
i
e
r
a
r
c
h
i
c
a
l
.
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
NodeExecutor.execute(HierarchicalTestExecutor.java:74) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor
NodeExecutor.execute(HierarchicalTestExecutor.java:74)atorg.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorNodeExecutor.lambda$executeRecursively
2
(
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
.
j
a
v
a
:
120
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
F
o
r
E
a
c
h
O
p
s
2(HierarchicalTestExecutor.java:120) at java.util.stream.ForEachOps
2(HierarchicalTestExecutor.java:120)atjava.util.stream.ForEachOpsForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2
1.
a
c
c
e
p
t
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
175
)
a
t
j
a
v
a
.
u
t
i
l
.
I
t
e
r
a
t
o
r
.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
I
t
e
r
a
t
o
r
.
j
a
v
a
:
116
)
a
t
j
a
v
a
.
u
t
i
l
.
S
p
l
i
t
e
r
a
t
o
r
s
1.accept(ReferencePipeline.java:175) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators
1.accept(ReferencePipeline.java:175)atjava.util.Iterator.forEachRemaining(Iterator.java:116)atjava.util.SpliteratorsIteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps
F
o
r
E
a
c
h
O
p
.
e
v
a
l
u
a
t
e
S
e
q
u
e
n
t
i
a
l
(
F
o
r
E
a
c
h
O
p
s
.
j
a
v
a
:
151
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
F
o
r
E
a
c
h
O
p
s
ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps
ForEachOp.evaluateSequential(ForEachOps.java:151)atjava.util.stream.ForEachOpsForEachOp
O
f
R
e
f
.
e
v
a
l
u
a
t
e
S
e
q
u
e
n
t
i
a
l
(
F
o
r
E
a
c
h
O
p
s
.
j
a
v
a
:
174
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
e
v
a
l
u
a
t
e
(
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
j
a
v
a
:
234
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
f
o
r
E
a
c
h
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
418
)
a
t
o
r
g
.
j
u
n
i
t
.
p
l
a
t
f
o
r
m
.
e
n
g
i
n
e
.
s
u
p
p
o
r
t
.
h
i
e
r
a
r
c
h
i
c
a
l
.
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor
OfRef.evaluateSequential(ForEachOps.java:174)atjava.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)atjava.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)atorg.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorNodeExecutor.lambda$executeRecursively
3
(
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
.
j
a
v
a
:
120
)
a
t
o
r
g
.
j
u
n
i
t
.
p
l
a
t
f
o
r
m
.
e
n
g
i
n
e
.
s
u
p
p
o
r
t
.
h
i
e
r
a
r
c
h
i
c
a
l
.
S
i
n
g
l
e
T
e
s
t
E
x
e
c
u
t
o
r
.
e
x
e
c
u
t
e
S
a
f
e
l
y
(
S
i
n
g
l
e
T
e
s
t
E
x
e
c
u
t
o
r
.
j
a
v
a
:
66
)
a
t
o
r
g
.
j
u
n
i
t
.
p
l
a
t
f
o
r
m
.
e
n
g
i
n
e
.
s
u
p
p
o
r
t
.
h
i
e
r
a
r
c
h
i
c
a
l
.
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
3(HierarchicalTestExecutor.java:120) at org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor
3(HierarchicalTestExecutor.java:120)atorg.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)atorg.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorNodeExecutor.executeRecursively(HierarchicalTestExecutor.java:108)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor
N
o
d
e
E
x
e
c
u
t
o
r
.
e
x
e
c
u
t
e
(
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
.
j
a
v
a
:
79
)
a
t
o
r
g
.
j
u
n
i
t
.
p
l
a
t
f
o
r
m
.
e
n
g
i
n
e
.
s
u
p
p
o
r
t
.
h
i
e
r
a
r
c
h
i
c
a
l
.
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
NodeExecutor.execute(HierarchicalTestExecutor.java:79) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor
NodeExecutor.execute(HierarchicalTestExecutor.java:79)atorg.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorNodeExecutor.lambda$executeRecursively
2
(
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
.
j
a
v
a
:
120
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
F
o
r
E
a
c
h
O
p
s
2(HierarchicalTestExecutor.java:120) at java.util.stream.ForEachOps
2(HierarchicalTestExecutor.java:120)atjava.util.stream.ForEachOpsForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2
1.
a
c
c
e
p
t
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
175
)
a
t
j
a
v
a
.
u
t
i
l
.
I
t
e
r
a
t
o
r
.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
I
t
e
r
a
t
o
r
.
j
a
v
a
:
116
)
a
t
j
a
v
a
.
u
t
i
l
.
S
p
l
i
t
e
r
a
t
o
r
s
1.accept(ReferencePipeline.java:175) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators
1.accept(ReferencePipeline.java:175)atjava.util.Iterator.forEachRemaining(Iterator.java:116)atjava.util.SpliteratorsIteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps
F
o
r
E
a
c
h
O
p
.
e
v
a
l
u
a
t
e
S
e
q
u
e
n
t
i
a
l
(
F
o
r
E
a
c
h
O
p
s
.
j
a
v
a
:
151
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
F
o
r
E
a
c
h
O
p
s
ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps
ForEachOp.evaluateSequential(ForEachOps.java:151)atjava.util.stream.ForEachOpsForEachOp
O
f
R
e
f
.
e
v
a
l
u
a
t
e
S
e
q
u
e
n
t
i
a
l
(
F
o
r
E
a
c
h
O
p
s
.
j
a
v
a
:
174
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
e
v
a
l
u
a
t
e
(
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
j
a
v
a
:
234
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
f
o
r
E
a
c
h
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
418
)
a
t
o
r
g
.
j
u
n
i
t
.
p
l
a
t
f
o
r
m
.
e
n
g
i
n
e
.
s
u
p
p
o
r
t
.
h
i
e
r
a
r
c
h
i
c
a
l
.
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor
OfRef.evaluateSequential(ForEachOps.java:174)atjava.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)atjava.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)atorg.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorNodeExecutor.lambda$executeRecursively
3
(
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
.
j
a
v
a
:
120
)
a
t
o
r
g
.
j
u
n
i
t
.
p
l
a
t
f
o
r
m
.
e
n
g
i
n
e
.
s
u
p
p
o
r
t
.
h
i
e
r
a
r
c
h
i
c
a
l
.
S
i
n
g
l
e
T
e
s
t
E
x
e
c
u
t
o
r
.
e
x
e
c
u
t
e
S
a
f
e
l
y
(
S
i
n
g
l
e
T
e
s
t
E
x
e
c
u
t
o
r
.
j
a
v
a
:
66
)
a
t
o
r
g
.
j
u
n
i
t
.
p
l
a
t
f
o
r
m
.
e
n
g
i
n
e
.
s
u
p
p
o
r
t
.
h
i
e
r
a
r
c
h
i
c
a
l
.
H
i
e
r
a
r
c
h
i
c
a
l
T
e
s
t
E
x
e
c
u
t
o
r
3(HierarchicalTestExecutor.java:120) at org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor
3(HierarchicalTestExecutor.java:120)atorg.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)atorg.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorNodeExecutor.executeRecursively(HierarchicalTestExecutor.java:108)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor$NodeExecutor.execute(HierarchicalTestExecutor.java:79)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:55)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:43)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
at org.eclipse.jdt.internal.junit5.runner.JUnit5TestReference.run(JUnit5TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘empployeeDAOImpl’ defined in class path resource [xyz/xzxyz/App-context.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.aop.aspectj.AspectJPointcutAdvisor#0’: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ‘name pattern’ at character position 40
execution(*xyz.xzxyz.service.Service.(…))
^
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:493)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:846)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:128)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:275)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:243)
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99)
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:117)
... 68 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.aop.aspectj.AspectJPointcutAdvisor#0’: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ‘name pattern’ at character position 40
execution(*xyz.xzxyz.service.Service.(…))
^
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:303)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:284)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1154)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:91)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:109)
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:101)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:253)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1091)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1064)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:487)
... 81 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ‘name pattern’ at character position 40
execution(*xyz.xzxyz.service.Service.(…))
^
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:184)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:299)
... 97 more
Caused by: java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ‘name pattern’ at character position 40
execution(*xyz.xzxyz.service.Service.(…))
^
at org.aspectj.weaver.tools.PointcutParser.resolvePointcutExpression(PointcutParser.java:317)
at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:295)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:227)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.obtainPointcutExpression(AspectJExpressionPointcut.java:198)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.getMethodMatcher(AspectJExpressionPointcut.java:183)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.buildSafePointcut(AbstractAspectJAdvice.java:202)
at org.springframework.aop.aspectj.AspectJPointcutAdvisor.<init>(AspectJPointcutAdvisor.java:52)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172)
... 99 more
看Caused by: java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ‘name pattern’ at character position 40
execution(*xyz.xzxyz.service.Service.(…))
提示说语法有错误
正确的表达式要在这里加上空格,修改之后就可以看到下面这张美丽的图片了