You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/06/19 14:41:05 UTC

[skywalking] branch master updated: Summary FAQ of WebSphere installation. (#2911)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/master by this push:
     new 825a521  Summary FAQ of WebSphere installation. (#2911)
825a521 is described below

commit 825a52195d63d80730e976e7077f451bcea3da6d
Author: 吴晟 Wu Sheng <wu...@foxmail.com>
AuthorDate: Wed Jun 19 22:40:55 2019 +0800

    Summary FAQ of WebSphere installation. (#2911)
    
    * Create install_agent_on_websphere.md
    
    * Update README.md
---
 docs/en/FAQ/README.md                     |  1 +
 docs/en/FAQ/install_agent_on_websphere.md | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/docs/en/FAQ/README.md b/docs/en/FAQ/README.md
index aa671be..ec9addc 100644
--- a/docs/en/FAQ/README.md
+++ b/docs/en/FAQ/README.md
@@ -12,3 +12,4 @@ These are known and common FAQs. We welcome you to contribute yours.
 * [Agent or collector version upgrade](Upgrade.md)
 * [EnhanceRequireObjectCache class cast exception](EnhanceRequireObjectCache-Cast-Exception.md)
 * [ElasticSearch server performance FAQ, including ERROR CODE:429](ES-Server-FAQ.md)
+* [IllegalStateException when install Java agent on WebSphere 7](install_agent_on_websphere.md)
diff --git a/docs/en/FAQ/install_agent_on_websphere.md b/docs/en/FAQ/install_agent_on_websphere.md
new file mode 100644
index 0000000..bb79770
--- /dev/null
+++ b/docs/en/FAQ/install_agent_on_websphere.md
@@ -0,0 +1,30 @@
+# IllegalStateException when install Java agent on WebSphere
+This FAQ came from [community discussion and feedback](https://github.com/apache/skywalking/issues/2652). 
+This user installed SkyWalking Java agent on WebSphere 7.0.0.11 and ibm jdk 1.8_20160719 and 1.7.0_20150407,
+and had following error logs
+```
+WARN 2019-05-09 17:01:35:905 SkywalkingAgent-1-GRPCChannelManager-0 ProtectiveShieldMatcher : Byte-buddy occurs exception when match type.
+java.lang.IllegalStateException: Cannot resolve type description for java.security.PrivilegedAction
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.pool.TypePool$Resolution$Illegal.resolve(TypePool.java:144)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.pool.TypePool$Default$WithLazyResolution$LazyTypeDescription.delegate(TypePool.java:1392)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.description.type.TypeDescription$AbstractBase$OfSimpleType$WithDelegation.getInterfaces(TypeDescription.java:8016)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.description.type.TypeDescription$Generic$OfNonGenericType.getInterfaces(TypeDescription.java:3621)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.HasSuperTypeMatcher.hasInterface(HasSuperTypeMatcher.java:53)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.HasSuperTypeMatcher.hasInterface(HasSuperTypeMatcher.java:54)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.HasSuperTypeMatcher.matches(HasSuperTypeMatcher.java:38)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.HasSuperTypeMatcher.matches(HasSuperTypeMatcher.java:15)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.ElementMatcher$Junction$Conjunction.matches(ElementMatcher.java:107)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.ElementMatcher$Junction$Disjunction.matches(ElementMatcher.java:147)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.ElementMatcher$Junction$Disjunction.matches(ElementMatcher.java:147)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.ElementMatcher$Junction$Disjunction.matches(ElementMatcher.java:147)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.ElementMatcher$Junction$Disjunction.matches(ElementMatcher.java:147)
+at org.apache.skywalking.apm.dependencies.net.bytebuddy.matcher.ElementMatcher$Junction$Disjunction.matches(ElementMatcher.java:147)
+...
+```
+
+The exception has been addressed as access grant required in WebSphere. 
+You could follow these steps.
+
+1. Set the agent's owner to the owner of WebSphere.
+2. Add "grant codeBase "file:${agent_dir}/-" { permission java.security.AllPermission; };" in the file of "server.policy".
+