Public class CxfUtil {
Private static final JaxWsDynamicClientFactory DCF model=JaxWsDynamicClientFactory. NewInstance ();
Public static String cxfWebservce (HTTP, String String method, the Object... The parameters) throws Throwable {
The Client Client=null;
The client=DCF model. CreateClient (HTTP);//here will go wrong
.
.
}
}
Server every few minutes will invoke the interface methods, first run 1 to 2 weeks is no problem, but after running long, can appear error, error log is as follows:
Java. Lang. Reflect. UndeclaredThrowableException
At com. Sun. Proxy. $Proxy267. Bind (Unknown Source)
At org, apache CXF. The endpoint. Dynamic. DynamicClientFactory. CreateClient (DynamicClientFactory. Java: 318)
At org, apache CXF. The endpoint. Dynamic. DynamicClientFactory. CreateClient (DynamicClientFactory. Java: 235)
At org, apache CXF. The endpoint. Dynamic. DynamicClientFactory. CreateClient (DynamicClientFactory. Java: 228)
At org, apache CXF. The endpoint. Dynamic. DynamicClientFactory. CreateClient (DynamicClientFactory. Java: 183)
At com. Hisun. Core. Utils. CxfUtil. CxfWebservce (CxfUtil. Java: 158)
The at hall. Meiping. Mp. Service. Impl. ScreendataServiceImpl. PullLedInfo (ScreendataServiceImpl. Java: 255)
At sun. Reflect. GeneratedMethodAccessor214. Invoke (Unknown Source)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (606) Method. The Java:
The at org. Springframework. Aop. Support. AopUtils. InvokeJoinpointUsingReflection (AopUtils. Java: 307)
The at org. Springframework. Aop. Framework. ReflectiveMethodInvocation. InvokeJoinpoint (ReflectiveMethodInvocation. Java: 183)
The at org. Springframework. Aop. Framework. ReflectiveMethodInvocation. Proceed (ReflectiveMethodInvocation. Java: 150)
The at org. Springframework. Transaction. The interceptor. TransactionInterceptor. Invoke (TransactionInterceptor. Java: 107)
The at org. Springframework. Aop. Framework. ReflectiveMethodInvocation. Proceed (ReflectiveMethodInvocation. Java: 172)
The at org. Springframework. Aop. Interceptor. ExposeInvocationInterceptor. Invoke (ExposeInvocationInterceptor. Java: 89)
The at org. Springframework. Aop. Framework. ReflectiveMethodInvocation. Proceed (ReflectiveMethodInvocation. Java: 172)
The at org. Springframework. Aop. Framework. JdkDynamicAopProxy. Invoke (JdkDynamicAopProxy. Java: 202)
At com. Sun. Proxy. $Proxy81. PullLedInfo (Unknown Source)
At sun. Reflect. GeneratedMethodAccessor213. Invoke (Unknown Source)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (606) Method. The Java:
The at org. Springframework. Util. MethodInvoker. Invoke (MethodInvoker. Java: 273)
The at org. Springframework. Scheduling. Support. MethodInvokingRunnable. Run (MethodInvokingRunnable. Java: 65)
The at org. Springframework. Scheduling. Support. DelegatingErrorHandlingRunnable. Run (DelegatingErrorHandlingRunnable. Java: 51)
The at org. Springframework. Scheduling. Concurrent. ReschedulingRunnable. Run (ReschedulingRunnable. Java: 81)
The at Java. Util. Concurrent. Executors $RunnableAdapter. Call (471) Executors. Java:
The at Java. Util. Concurrent. FutureTask. Run (FutureTask. Java: 262)
The at Java. Util. Concurrent. ScheduledThreadPoolExecutor $ScheduledFutureTask. Access the $201 (178) ScheduledThreadPoolExecutor. Java:
The at Java. Util. Concurrent. ScheduledThreadPoolExecutor $ScheduledFutureTask. Run (ScheduledThreadPoolExecutor. Java: 292)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1145)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 615)
The at Java. Lang. Thread. The run (Thread. Java: 745)
Under Caused by: Java. Lang. Reflect. InvocationTargetException
At sun. Reflect. GeneratedMethodAccessor2670. Invoke (Unknown Source)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (606) Method. The Java:
At org.apache.cxf.com, mon. Util. ReflectionInvokationHandler. Invoke (ReflectionInvokationHandler. Java: 53)
. 33 more
Under Caused by: Java. Lang. StackOverflowError
The at Java. Util. Concurrent. ConcurrentHashMap. PutIfAbsent (ConcurrentHashMap. Java: 1150)
The at Java. Lang. This. GetClassLoadingLock (464). This Java:
The at Java. Lang. This. LoadClass (405). This Java:
At sun. Misc. The Launcher $AppClassLoader. LoadClass (308). The Launcher Java:
The at Java. Lang. This. LoadClass (412). This Java:
The at Java. Lang. This. LoadClass (358). This Java:
The at weblogic. Utils. Classloaders. GenericClassLoader. LoadClass (GenericClassLoader. Java: 179)
The at weblogic. Utils. Classloaders. FilteringClassLoader. FindClass (FilteringClassLoader. Java: 101)
The at weblogic. Utils. Classloaders. FilteringClassLoader. LoadClass (FilteringClassLoader. Java: 86)
The at Java. Lang. This. LoadClass (412). This Java:
The at Java. Lang. This. LoadClass (412). This Java:
The at Java. Lang. This. LoadClass (412). This Java:
The at Java. Lang. This. LoadClass (412). This Java:
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull