[JBoss AOP] - Re: Dynamic AOP and User-Defined Class Loader
by shu_boston
Flavia,
I still have a problem. Revised code throws the following exception. My class loader loads the test.Test$JoinPoint_print4216308509294254048 class , but javassist cannot see it. I have no idea what's happening.
Can you please help me out?
| java.lang.RuntimeException: Error generating joinpoint class for joinpoint Method[method=public void test.Test.print()]
| at org.jboss.aop.instrument.JoinPointGenerator.doGenerateJoinPointClass(JoinPointGenerator.java:321)
| at org.jboss.aop.instrument.JoinPointGenerator.access$100(JoinPointGenerator.java:77)
| at org.jboss.aop.instrument.JoinPointGenerator$GenerateJoinPointClassAction$2.generateJoinPointClass(JoinPointGenerator.java:1672)
| at ...
|
| Caused by: javassist.NotFoundException: test.Test$JoinPoint_print4216308509294254048
| at javassist.ClassPool.get(ClassPool.java:436)
| at org.jboss.aop.instrument.JoinPointGenerator.generateJoinpointClass(JoinPointGenerator.java:401)
| at org.jboss.aop.instrument.JoinPointGenerator.doGenerateJoinPointClass(JoinPointGenerator.java:287)
| at ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150166#4150166
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150166
18 years, 1 month
[Beginners Corner] - Question regarding Dynamic AOP
by jpsilva
Hi everybody.
I'm not even new to JBoss, as I'm not using it just yet, but evaluating its possibilities.
I have a question regarding its support for dynamic AOP. I post it here because as I'm more than a beginner, I don't know if I'm even asking the right questions. Please, feel free to move it to the AOP forum if considered appropriate.
I'm interested in the ability of JBoss to dynamically change the applied aspects of an application by changing the configuration file. My question is, is it feasible to have such ability in a by thread basis?.
To make it more clear, I have in mind something like a web service that depending on the client credentials, would apply different aspects to the main functionality, but would be serving multiple clients at the same time.
It would be of great interest for me to know if this can be done in the current state of JBoss, or even with the need of not-so-great modifications.
I look forward to your answers. Thanks in advance.
Regards,
Juan Pedro Silva
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150159#4150159
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150159
18 years, 1 month
[JBoss Portal] - Multiple portlet instances on same page
by sborbas
I have one problem - i hope for it, it problem only for me.
I developed two portlets, with JSF RI - and running with 2.6.1 GA Portal. The first portlet displaying an document, the second is diplaying an list. The two portlets are can communicate with each other by shared objects in PortletSession.APPLICATION_SCOPE. The communication works well.
But.. I deployed three portlet instances, one is a 'displayer' portlet, and the other are instances of 'lister' portlet on same portal page. The lister instances are displaying different lists - the list generation based on an portlet instance parameter. When I selected an item in the first lister instance, everything working well - the diplayer portley loads a document, what i want. But if I clicked on a link in the second lister instance, wrong JSF actionlistener called : it looks like, as if i clicked in the first instance. If I clicking third link of the second list, happens like, if I clicking in the first instance on the third link. With further words : when I clicking in the second instance, then the Portal is calling the actionlistener of the fist instance.
How can I fix this problem?
JSF code :
<f:view>
<h:form>
<h:dataTable value="#{taggedListBean.items}" var="thisItem" >
<h:column>
<h:commandLink action="#{taggedListBean.click}" actionListener="#{taggedListBean.viewItemAction}" >
<f:param id="ItemId" name="ItemId" value="#{thisItem.itemId}" />
<h:outputText value="#{thisItem.title}" />
</h:commandLink>
</h:column>
</h:dataTable>
</h:form>
</f:view>
Actionlistener :
public void viewItemAction(ActionEvent event)
{
UIParameter component = (UIParameter) event.getComponent().findComponent("ItemId");
int ItemId = Integer.parseInt(component.getValue().toString());
.
.
.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150157#4150157
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150157
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Anytime I close my program, I receive the error in Jboss
by paradisonoir
Hi,
I am using ant to run my applications and they're working fine with Jboss. However, whenever I close my application using Ctrl+C or because of raising an exception or error in my application, I would see errors. I would like to know if it should be like that or because of my bad Jboss configuration?
For example this time was because I closed one of my applications with Ctrl+C, I received this error while exiting jboss was not functioning and I had to restart it.
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(Se
rverThread.java:573)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.j
ava:387)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.jav
a:166)
Caused by: java.net.SocketException: Connection reset by peer: socket write erro
r
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:115)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.createSoc
ket(BisocketClientInvoker.java:449)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConne
ction(MicroSocketClientInvoker.java:801)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transpor
t(MicroSocketClientInvoker.java:551)
... 35 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150156#4150156
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150156
18 years, 1 month