IBM Support

Attempt to make configuration changes (such as security related changes) using the WebSphere Administrative Console fails with error: WKSP0005E: Error while releasing context NODE_NAME-java.lang.IllegalArgumentException: invalid opaquePart:

Question & Answer


Question

Why do I receive the following exceptions when attempting to make configuration changes via the Administrative Console ?
[11/25/19 5:10:56:192 EST] 00000178 FileRepositor A   ADMR0016I: User username.ibm.com:385/wasadmin modified document cells/CELL_NAME/security.xml.
[11/25/19 5:10:56:253 EST] 00000178 RepositoryCon E   WKSP0005E: Error while releasing context NODE_NAME-java.lang.IllegalArgumentException: invalid opaquePart:
    at org.eclipse.emf.common.util.URI.validateURI(URI.java:1005)
    at org.eclipse.emf.common.util.URI.parseIntoURI(URI.java:774)
    at org.eclipse.emf.common.util.URI.createURIWithCache(URI.java:663)
    at org.eclipse.emf.common.util.URI.createURI(URI.java:535)
    at com.ibm.ws.sm.workspace.migration.WSResourceSetImpl.release(WSResourceSetImpl.java:116)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.release(RepositoryContextImpl.java:1758)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.releaseInSynchOnly(RepositoryContextImpl.java:1653)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.releaseInSynchOnly(RepositoryContextImpl.java:1644)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.releaseInSynchOnly(RepositoryContextImpl.java:1644)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.releaseInSynch(RepositoryContextImpl.java:1630)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.synch(RepositoryContextImpl.java:1955)
    at com.ibm.ws.sm.workspace.impl.WorkSpaceImpl.synch(WorkSpaceImpl.java:549)
    at com.ibm.ws.console.core.action.SyncWorkSpaceAction$1.run(SyncWorkSpaceAction.java:284)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5574)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5700)
    at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
    at com.ibm.ws.console.core.action.SyncWorkSpaceAction.execute(SyncWorkSpaceAction.java:288)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source)
    at org.apache.struts.action.RequestProcessor.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.doGet(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1240)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:971)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:518)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:339)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:963)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1833)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
.
[11/25/19 5:10:56:312 EST] 00000178 RepositoryCon E   invalid opaquePart:
[11/25/19 5:10:56:342 EST] 00000178 RequestProces W org.apache.struts.action.RequestProcessor processException Unhandled Exception thrown: class javax.servlet.ServletException
[11/25/19 5:10:56:364 EST] 00000178 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause action: javax.servlet.ServletException: java.security.PrivilegedActionException: com.ibm.ws.sm.workspace.WorkSpaceException: WKSP0005E Error while releasing context NODE_NAME-java.lang.IllegalArgumentException: invalid opaquePart:
    at com.ibm.ws.console.core.action.SyncWorkSpaceAction.execute(SyncWorkSpaceAction.java:348)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source)
    at org.apache.struts.action.RequestProcessor.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.doGet(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1240)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:971)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:518)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:339)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:963)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1833)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
Caused by: java.security.PrivilegedActionException: com.ibm.ws.sm.workspace.WorkSpaceException: WKSP0005E Error while releasing context NODE_NAME-java.lang.IllegalArgumentException: invalid opaquePart:
    at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5620)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5700)
    at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
    at com.ibm.ws.console.core.action.SyncWorkSpaceAction.execute(SyncWorkSpaceAction.java:288)
    ... 36 more
Caused by: com.ibm.ws.sm.workspace.WorkSpaceException: WKSP0005E Error while releasing context NODE_NAME-java.lang.IllegalArgumentException: invalid opaquePart:
    at com.ibm.ws.sm.workspace.impl.WorkSpaceLogger.createException(WorkSpaceLogger.java:114)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.releaseInSynchOnly(RepositoryContextImpl.java:1658)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.releaseInSynchOnly(RepositoryContextImpl.java:1644)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.releaseInSynchOnly(RepositoryContextImpl.java:1644)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.releaseInSynch(RepositoryContextImpl.java:1630)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.synch(RepositoryContextImpl.java:1955)
    at com.ibm.ws.sm.workspace.impl.WorkSpaceImpl.synch(WorkSpaceImpl.java:549)
    at com.ibm.ws.console.core.action.SyncWorkSpaceAction$1.run(SyncWorkSpaceAction.java:284)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5574)
    ... 39 more
Caused by: java.lang.IllegalArgumentException: invalid opaquePart:
    at org.eclipse.emf.common.util.URI.validateURI(URI.java:1005)
    at org.eclipse.emf.common.util.URI.parseIntoURI(URI.java:774)
    at org.eclipse.emf.common.util.URI.createURIWithCache(URI.java:663)
    at org.eclipse.emf.common.util.URI.createURI(URI.java:535)
    at com.ibm.ws.sm.workspace.migration.WSResourceSetImpl.release(WSResourceSetImpl.java:116)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.release(RepositoryContextImpl.java:1758)
    at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.releaseInSynchOnly(RepositoryContextImpl.java:1653)
    ... 46 more
[11/25/19 5:10:56:551 EST] 00000178 SystemOut     O WSCUrlFilter exception using CSRFResponseWrapper: javax.servlet.ServletException: java.security.PrivilegedActionException: com.ibm.ws.sm.workspace.WorkSpaceException: WKSP0005E Error while releasing context NODE_NAME-java.lang.IllegalArgumentException: invalid opaquePart:

Cause

This error can occur if there are invalid files in the WebSphere configuration database.
These invalid file(s) may exist under the following locations:
        WAS_HOME/profiles/PROFILE_NAME/config/cells/CELL_NAME
             and/or
        WAS_HOME/profiles/PROFILE_NAME/config/cells/CELL_NAME/nodes/NODE_NAME

Answer

Check the WebSphere configuration locations WAS_HOME/profiles/PROFILE_NAME/config/cells/CELL_NAME and WAS_HOME/profiles/PROFILE_NAME/config/cells/CELL_NAME/nodes/NODE_NAME for any invalid files.

In this case under /WAS_HOME/profiles/PROFILE_NAME/config/cells/CELL_NAME/nodes/NODE_NAME/ I see a file with the name of " : ".

       i.e.   A file named the colon symbol.

Move this : file to some location outside of WAS_HOME then try making the configuration change again using the Admin Console.
If the problem persists look for similar files under the configuration and move them as well.
Once the invalid files are removed from the configuration database the problem should be resolved.

[{"Business Unit":{"code":"BU004","label":"Hybrid Cloud"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"Administrative Console;Console;Admin Console;configuration;master configuration;configuration database;save","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF043","label":"Red Hat"},{"code":"PF027","label":"Solaris"},{"code":"PF048","label":"SUSE"},{"code":"PF033","label":"Windows"}],"Version":"8.5;9.0","Edition":"Network Deployment;ND"}]

Product Alias/Synonym

WAS;WebSphere;WebSphere Application Server

Document Information

Modified date:
27 November 2019

UID

ibm11115925