Hi
I have generated the web service client using wsimport utility and generated clent classes are copy to the OIM_Home/ThirdParty Directory. Even though I have I have copied client classes to the ThirdParty directory and I am getting the following error while invoking the webservice inside the process task and also plugin.
java.lang.IllegalArgumentException: interface edu.sfsu.powershell.exchange.ExchangeService is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at weblogic.wsee.jaxws.spi.ClientInstance.createProxyInstance(ClientInstance.java:143)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:855)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
at javax.xml.ws.Service.getPort(Service.java:92)
at edu.sfsu.powershell.exchange.ExchangeServiceService.getExchangeServicePort(ExchangeServiceService.java:56)
at edu.sfsu.connector.target.search.scheduler.SearchTargetReconUsers.execute(SearchTargetReconUsers.java:25)
at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:196)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Solution:
Copy the Genrated Class files into the Oracle_IDM1/server/apps/oim.ear/APP-INF/lib directory and restart the OIM Server and issue will be resolved.
Hi,
ReplyDeleteAm facing the same issue but not able to find the oim.ear in OIM 9.0.1
Hi Prasant.
ReplyDeleteThe above solution for OIM 11G. If your not able to find the OIM 9, please make the jar file and added into the weblogic classpath. Please let me know if you have any issues.
Thank you, it helped me a lot!
ReplyDeleteTracking down a java.lang.IllegalArgumentException: interface is not visible from class loader is a classic Java debugging nightmare! It almost always points to tricky classloader isolation issues in enterprise application servers (like Tomcat or WebLogic) or strict context boundaries when generating dynamic proxies. However, when Java developers and middleware admins are forced to download massive offline JDK distributions, bulky Java EE application server binaries, or heavy heap dump analyzers like Eclipse MAT to troubleshoot these complex architectural bugs locally, standard built-in browser downloaders frequently timeout or corrupt the archives. To securely pull down these enormous enterprise Java development payloads without frustrating network drops, following an elite 14-step IDM optimization blueprint guarantees a rock-solid, high-speed download configuration on Windows 10 and 11. Thanks for sharing the exact context hierarchy and debugging steps to untangle this notorious Java reflection error!
ReplyDelete