フォーラム

ホーム » 1. Marketplace App Development

構造的に表示 平面上に表示 ツリー上に表示
toggle
Philippe Tran
PACL and "Attempted to access declared members"
2013/07/01 17:15
答え

Philippe Tran

ランク: Youngling

投稿: 0

参加年月日: 2009/01/22

最近の投稿

Hi everyone,

I'm facing this warning "Attempted to access declared members" when my portlet app (ex: myapp.war, containing several portlets) starts up, with Security Manager enabled on Liferay 6.2.0 M5 and M6.

The message is fired by a call to getDeclaredMethods() made by org.springframework.core.convert.support.IdToEntityConverter in webapps/myapp/WEB-INF/lib/org.springframework.core-3.0.7.RELEASE.jar.

After reading the doc at here and there, I still don't understand how to get rid of this warning.

My problem seems analog to LPS-31182, with a difference: the caller is in a jar from my war file.

I tried:

security-manager-class-loader-reference-ids=myapp
security-manager-get-bean-property=org.springframework.core.convert.support.IdToEntityConverter


I tried also to define a java.policy in WEB-INF with:

grant codeBase "file:${myapp}${/}-" {
permission java.lang.RuntimePermission "accessDeclaredMembers";
};


But the warning is still there. Unfortunately, the security-manager generate option doesn't help. Does anyone have any clue about his ?

Thanks in advance,
Philippe
Raymond Augé
RE: PACL and "Attempted to access declared members"
2013/07/02 7:57
答え

Raymond Augé

ランク: Youngling

投稿: 0

参加年月日: 2005/02/07

最近の投稿

Sorry, but the warning will not currently go away even after you add the correct java.policy, which you have.

This is due to a current design limitation that we haven't had time to refactor yet.

However, the app "should" work properly.

Is that not the case?
Philippe Tran
RE: PACL and "Attempted to access declared members"
2013/07/10 0:39
答え

Philippe Tran

ランク: Youngling

投稿: 0

参加年月日: 2009/01/22

最近の投稿

Hi Ray,

Thank you for your answer. In fact, I found a way to by-pass the Spring getDeclaredMethods() method call, and I don't get this warning anymore.

Thanks again,
Philippe

Forums

To access the Developer Forum, please login to your Liferay.com account if you are already a registered developer or register to become a developer.