<< 28-August-2008 : hausbot on #mobicents at codehaus [download] [back] >>
 
 
time nick message

01:01

<martins>

barreiro ?

01:02

<barreiro>

marteeens

01:03

<martins>

alexandre deployed com sucesso

01:03

<martins>

no irc

01:03

<martins>

:)

01:03

<martins>

ja almoçaste barreiro

01:03

<alexandre>

lol

01:04

<barreiro>

pah ... depende da prespectiva ... hoje 28/08 ainda n ;)

01:04

<martins>

entao mas n é meio dia pra ti? :p

01:04

<barreiro>

tás a convidar para almoçar, é ??

01:05

<martins>

tas sempre convidado pra almoçar, vou sempre a um cafezito

01:05

<barreiro>

ainda te surpreendo e te vou bater à porta um dia destes ;)

01:06

<martins>

eu e a minha princeza comemos 2 meios pratos + 1 agua de meio litro + 2 cafes por 9 eur e tal

01:06

<alexandre>

1 exception to go .

01:06

<martins>

meio prato é a mesma coisa q os pratos do bulldog

01:07

<barreiro>

em quantidade ou em qualidade ???

01:07

<alexandre>

lol barreiro, curtes o bot a falar ctg? :P

01:07

<martins>

nos 2

01:07

<martins>

só tenho saudades da massa e do risotto

01:08

<barreiro>

alexandre, é pra quando quero saber das horas :P

01:08

<barreiro>

barreiro, eu é do mac e das pizzas :D

01:08

<martins>

ja fala pra ele

01:08

<barreiro>

... perdi as saudades de um cozido ;)

01:09

<martins>

tb tenho saudades do teixeira

01:09

<martins>

a esta hora ja deve saber sacar as gravaçoes do meo

01:09

<martins>

e ver os canais pagos

01:09

<martins>

lol

01:09

<alexandre>

barreiro: para um dia ... c sorte ainda hoje

01:10

<barreiro>

de vez em quando n vais à janela e ouves um estoiro ??? ... é mais uma experiencia teixeirinha que correu mal :P

01:10

<martins>

agora temos um "novo" bot

01:10

<martins>

o de sip

01:11

<martins>

WAKEUP IN 10s! MSG: bla bla e passado 10s la vem a mensgaem bla bla

01:11

<alexandre>

:D

01:11

<martins>

por acaso é um exemplo com codigo interessante, ate usa o trace facility :D

01:12

<martins>

vai pra standalone do jslee

01:12

<martins>

q esta pobrezinha so com o gtalk e os sip-services

01:13

<alexandre>

pra semana.... servuletas pra carola

01:13

<martins>

grrr

01:14

<alexandre>

nem me digas :p

01:19

<alexandre>

guess this is it. mas n meto as maos no fogo por este deployer :P

01:19

<alexandre>

vou so testar o caso de remover o SBB antes do RA

01:21

<alexandre>

this is how it looks, martins

01:21

<alexandre>

02:20:37,841 INFO [XmppResourceAdaptor] Got notification that connection with id=org.mobicents.examples.googletalk.GoogleTalkBotSbb closed. Requesting ActivityEndEvent.

01:21

<alexandre>

02:20:38,092 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[2]

01:21

<alexandre>

02:20:38,129 WARN [SLEESubDeployer] Unable to UNINSTALL xmpp-ra-DU-1.2.0.GA-SNAPSHOT.jar right now. Waiting for dependents to be removed.

01:21

<alexandre>

02:20:38,137 ERROR [SleeContainer] javax.slee.InvalidStateException: Service is STOPPING

01:21

<alexandre>

02:20:38,138 INFO [DeploymentManager] Delaying uninstall due to service deactivation not complete.

01:21

<alexandre>

02:20:38,389 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[2]

01:21

<alexandre>

02:20:38,402 WARN [SLEESubDeployer] Unable to UNINSTALL xmpp-ra-DU-1.2.0.GA-SNAPSHOT.jar right now. Waiting for dependents to be removed.

01:21

<alexandre>

02:20:38,404 ERROR [SleeContainer] javax.slee.InvalidStateException: Service is STOPPING

01:21

<alexandre>

02:20:38,404 INFO [DeploymentManager] Delaying uninstall due to service deactivation not complete.

01:21

<alexandre>

02:20:38,655 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[2]

01:21

<alexandre>

...

01:22

<alexandre>

02:20:42,892 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[2]

01:22

<alexandre>

02:20:42,897 WARN [SLEESubDeployer] Unable to UNINSTALL xmpp-ra-DU-1.2.0.GA-SNAPSHOT.jar right now. Waiting for dependents to be removed.

01:22

<alexandre>

02:20:42,899 ERROR [SleeContainer] javax.slee.InvalidStateException: Service is STOPPING

01:22

<alexandre>

02:20:42,899 INFO [DeploymentManager] Delaying uninstall due to service deactivation not complete.

01:22

<alexandre>

02:20:42,993 INFO [EventRouterImpl] Deactivated ServiceID[GoogleTalkBotService#mobicents#0.1]

01:22

<alexandre>

02:20:43,149 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[2]

01:22

<alexandre>

02:20:43,159 INFO [SleeContainer] Uninstalled service ServiceID[GoogleTalkBotService#mobicents#0.1]

01:22

<alexandre>

02:20:43,170 INFO [SleeContainer] Uninstalled SBB SbbID[GoogleTalkBotSbb#mobicents#0.1] on DU DeployableUnitID[2]

01:22

<alexandre>

02:20:43,173 INFO [DeploymentMBeanImpl] Uninstalled DU with id DeployableUnitID[2]

01:22

<alexandre>

02:20:43,426 INFO [ResourceManagementMBeanImpl] Removed RA Entity Link XMPPRA

01:22

<alexandre>

02:20:43,678 INFO [ResourceManagementMBeanImpl] Deactivated RA Entity XMPPRA

01:22

<alexandre>

02:20:43,928 INFO [ResourceManagementMBeanImpl] Removed RA Entity XMPPRA

01:22

<alexandre>

02:20:44,178 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[1]

01:22

<alexandre>

02:20:44,186 INFO [SleeContainer] Uninstalled RA ResourceAdaptorID[XMPPResourceAdaptor#org.mobicents#2.0]

01:22

<alexandre>

02:20:44,186 INFO [SleeContainer] Uninstalled RA Type ResourceAdaptorTypeID[XMPPResourceAdaptorType#org.mobicents#2.0]

01:22

<alexandre>

02:20:44,187 INFO [SleeContainer] Uninstalled event EventTypeID[org.jivesoftware.smack.packet.Presence#org.jivesoftware.smack#1.0], #112

01:22

<alexandre>

02:20:44,187 INFO [SleeContainer] Uninstalled event EventTypeID[org.mobicents.slee.resource.xmpp.packet.PresenceProbe#org.jivesoftware.smack#1.0], #113

01:22

<alexandre>

02:20:44,187 INFO [SleeContainer] Uninstalled event EventTypeID[org.jivesoftware.smack.packet.Registration#org.jivesoftware.smack#1.0], #118

01:22

<alexandre>

02:20:44,187 INFO [SleeContainer] Uninstalled event EventTypeID[org.jivesoftware.smackx.packet.IQBasedAvatar#org.jivesoftware.smack#1.0], #117

01:22

<alexandre>

02:20:44,188 INFO [SleeContainer] Uninstalled event EventTypeID[org.jivesoftware.smack.packet.IQ#org.jivesoftware.smack#1.0], #116

01:22

<alexandre>

02:20:44,188 INFO [SleeContainer] Uninstalled event EventTypeID[org.jivesoftware.smackx.packet.DiscoverItems#org.jivesoftware.smack#1.0], #115

01:22

<alexandre>

02:20:44,188 INFO [SleeContainer] Uninstalled event EventTypeID[org.jivesoftware.smack.packet.Message#org.jivesoftware.smack#1.0], #111

01:22

<alexandre>

02:20:44,188 INFO [SleeContainer] Uninstalled event EventTypeID[org.jivesoftware.smackx.packet.DiscoverInfo#org.jivesoftware.smack#1.0], #114

01:22

<alexandre>

02:20:44,207 INFO [DeploymentMBeanImpl] Uninstalled DU with id DeployableUnitID[1]

01:22

<alexandre>

02:20:44,462 INFO [DeploymentManager] xmpp-ra-DU-1.2.0.GA-SNAPSHOT.jar wasn't deployed. Removing from waiting list.

01:22

<martins>

fine

01:22

<martins>

e implementaste o caso do RA relativamente a links ou entitdades deactivadas?

01:22

<alexandre>

mas ainda sao mts linhas repetidas

01:23

<alexandre>

secalhar incrementar a espera... da p fazer isso no timer?

01:23

<martins>

o repetido tem a ver com as ietrações, n ha nada a fazer

01:23

<alexandre>

mudar a fixed rate :)

01:23

<martins>

aumenta o delay

01:24

<alexandre>

tipo, tenta 250ms.... 500ms... 1000ms... 2000ms...4000ms...

01:27

<martins>

mete 1s no inicio

01:28

<alexandre>

no caso de remover o RA 1?, vai ficar a mostrar a cada ciclo:

01:28

<alexandre>

02:26:11,196 WARN [SLEESubDeployer] Unable to UNINSTALL xmpp-ra-DU-1.2.0.GA-SNAPSHOT.jar right now. Waiting for dependents to be removed.

01:30

<martins>

aceita-se

01:30

<alexandre>

lol

01:31

<alexandre>

eu n gosto :p

01:31

<alexandre>

deixa ver se ha maneira de mostrar 1x

01:35

<martins>

mete uma flag na task, se ja fez log ou n

01:38

<alexandre>

ha uma maneira mais simples

01:38

<alexandre>

se ja estiver na lista de espera, ja n logga

01:41

<alexandre>

awright

01:42

<alexandre>

pa... qt ao RA...

01:42

<alexandre>

tenho de ver q excepcao manda

01:43

<martins>

vai à consola e remove a entity

01:43

<martins>

depois faz undeploy

01:43

<martins>

it must be perfect!!!

01:43

<martins>

sip slee rules!

01:46

<alexandre>

axo q comentei logs de excepcoes a mais :P

01:46

<alexandre>

n deu nada mas tb n fez undeplot

01:47

<martins>

lol

01:47

<martins>

alguem se esta a esquecer de um throw

01:49

<alexandre>

o throw ta la

01:49

<alexandre>

dp n fa?o eh o print... pq senao a cada ciclo....

01:51

<alexandre>

got it. UnrecognizedLinkNameException

01:54

<martins>

tava capaz de ir fazer uma peq alteração no cc2, mudar os profiles para o domino 127.0.0.1 em vez de nist.gov

01:54

<martins>

pra facilitar o registo com o dominio

01:55

<alexandre>

isso ajudava... se tiver registado no nist.gov c o eyebeam n csg ouvir os announcements do voicemail

01:56

<alexandre>

heli's a esta hora aki... estamos em guerra?! :D

01:58

<alexandre>

else if(e.getCause() instanceof InvalidStateException && action.equals( "deactivateResourceAdaptorEntity" ))

01:58

<alexandre>

{

01:58

<alexandre>

}

01:58

<alexandre>

else if(e.getCause() instanceof UnrecognizedLinkNameException && action.equals( "unbindLinkName" ))

01:58

<alexandre>

{

01:58

<alexandre>

}

02:04

<martins>

esses { } sao irritantes, metes prai 10 linhas a mais à conta disso

02:05

<alexandre>

lol. n sao irritantes... sao boa pratica :p

02:05

<alexandre>

e recebo ? linha, n sabes?

02:07

<martins>

nope

02:08

<alexandre>

bem... guess this is it

02:08

<alexandre>

vou meter o patch no issue?

02:09

<alexandre>

porra... falta meter um limite para esperar

02:09

<alexandre>

grrr

02:09

<alexandre>

1h?

02:10

<alexandre>

eheh la vou eu come?ar a ver corridas de carros

02:11

<alexandre>

SuperLeague Formula !! GO FCP! :D

02:12

<alexandre>

long elapsedTime = System.currentTimeMillis() - this.startTime;

02:12

<alexandre>

if( doStop(di) || elapsedTime > 60 * 60 * 1000 )

02:12

<alexandre>

this.cancel();

02:13

<martins>

o limite é o do SLEE + qq coisa

02:13

<martins>

e aí força

02:13

<alexandre>

1h + o do SLEE ?

02:14

<martins>

s

02:14

<alexandre>

if( doStop(di) || elapsedTime > 60 * 60 * 1000 + MobicentsManagement.entitiesRemovalDelay )

02:17

<alexandre>

guess that's all...

02:17

<martins>

mete la o patch, manda-me as classes

02:17

<martins>

pra testar e commit

02:21

<martins>

barreiro: ja tens vpn?

02:22

<barreiro>

martins, nope :(

02:22

<martins>

e tu alex?

02:22

<barreiro>

um brazuca ligou para aki por volta das 14h ... eu tinha saído ... a minha mae disse para ligar a seguir .. até agora :(

02:23

<alexandre>

http://code.google.com/p/mobicents/issues/detail?id=313

02:23

<alexandre>

martins: nope

02:23

<martins>

manda-me as classes

02:24

<alexandre>

tenta la o patch

02:24

<alexandre>

enkto reuno as classes :p

02:27

<martins>

o patch deu

02:27

<alexandre>

;)

02:39

<martins>

lol, tenho a consola cheia de excepções

02:40

<martins>

03:39:23,226 ERROR [DeploymentManager] Failure invoking 'uninstall([DeployableUnitID[1]]) on slee:name=DeploymentMBean

02:40

<martins>

javax.management.MBeanException: Exception thrown in operation uninstall

02:40

<martins>

at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:435)

02:40

<martins>

at javax.management.StandardMBean.invoke(StandardMBean.java:323)

02:40

<martins>

at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

02:40

<martins>

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

02:40

<martins>

at org.mobicents.slee.container.deployment.jboss.DeploymentManager.sciAction(DeploymentManager.java:408)

02:40

<martins>

at org.mobicents.slee.container.deployment.jboss.DeploymentManager.uninstallDeployableUnit(DeploymentManager.java:268)

02:40

<martins>

at org.mobicents.slee.container.deployment.jboss.SLEESubDeployer.doStop(SLEESubDeployer.java:444)

02:40

<martins>

at org.mobicents.slee.container.deployment.jboss.SLEESubDeployer.access$000(SLEESubDeployer.java:37)

02:40

<martins>

at org.mobicents.slee.container.deployment.jboss.SLEESubDeployer$UndeploymentTask.run(SLEESubDeployer.java:652)

02:40

<martins>

at java.util.TimerThread.mainLoop(Timer.java:512)

02:41

<alexandre>

argh

02:41

<martins>

at java.util.TimerThread.run(Timer.java:462)

02:41

<martins>

Caused by: javax.slee.management.ManagementException: Exception removing deployable Unit

02:41

<martins>

at org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl.uninstall(DeploymentMBeanImpl.java:204)

02:41

<martins>

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

02:41

<martins>

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

02:41

<alexandre>

calma martinho!

02:41

<martins>

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

02:41

<martins>

at java.lang.reflect.Method.invoke(Method.java:585)

02:41

<martins>

at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)

02:41

<martins>

... 10 more

02:41

<martins>

Caused by: java.lang.IllegalStateException: Service state is not inactive

02:41

<alexandre>

DeploymentManager.java : 491 => comenta

02:41

<martins>

at org.mobicents.slee.container.SleeContainer.uninstallService(SleeContainer.java:1498)

02:41

<martins>

at org.mobicents.slee.container.SleeContainer.removeDU(SleeContainer.java:3104)

02:41

<martins>

at org.mobicents.slee.container.SleeContainer.removeDeployableUnit(SleeContainer.java:3065)

02:41

<martins>

at org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl.uninstall(DeploymentMBeanImpl.java:187)

02:41

<martins>

... 15 more

02:41

<martins>

03:39:23,235 ERROR [SleeContainer] javax.slee.InvalidStateException: Service is STOPPING

02:41

<martins>

03:39:23,235 INFO [DeploymentManager] Delaying uninstall due to service deactivation not complete.

02:41

<martins>

03:39:23,487 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[1]

02:41

<martins>

03:39:23,489 ERROR [DeploymentManager] Failure invoking 'uninstall([DeployableUnitID[1]]) on slee:name=DeploymentMBean

02:41

<alexandre>

foi a tal q descomentei p ver o q era do RA :P

02:41

<martins>

javax.management.MBeanException: Exception thrown in operation uninstall

02:41

<martins>

at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:435)

02:42

<martins>

at javax.management.StandardMBean.invoke(StandardMBean.java:323)

02:42

<martins>

at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

02:42

<martins>

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

02:42

<martins>

at org.mobicents.slee.container.deployment.jboss.DeploymentManager.sciAction(DeploymentManager.java:408)

02:42

<martins>

at org.mobicents.slee.container.deployment.jboss.DeploymentManager.uninstallDeployableUnit(DeploymentManager.java:268)

02:42

<martins>

at org.mobicents.slee.container.deployment.jboss.SLEESubDeployer.doStop(SLEESubDeployer.java:444)

02:42

<martins>

at org.mobicents.slee.container.deployment.jboss.SLEESubDeployer.access$000(SLEESubDeployer.java:37)

02:42

<martins>

at org.mobicents.slee.container.deployment.jboss.SLEESubDeployer$UndeploymentTask.run(SLEESubDeployer.java:652)

02:42

<martins>

at java.util.TimerThread.mainLoop(Timer.java:512)

02:42

<martins>

at java.util.TimerThread.run(Timer.java:462)

02:42

<martins>

Caused by: javax.slee.management.ManagementException: Exception removing deployable Unit

02:42

<martins>

at org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl.uninstall(DeploymentMBeanImpl.java:204)

02:42

<martins>

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

02:42

<martins>

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

02:42

<martins>

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

02:42

<martins>

at java.lang.reflect.Method.invoke(Method.java:585)

02:42

<martins>

at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)

02:42

<martins>

... 10 more

02:42

<martins>

Caused by: java.lang.IllegalStateException: Service state is not inactive

02:42

<martins>

at org.mobicents.slee.container.SleeContainer.uninstallService(SleeContainer.java:1498)

02:42

<martins>

at org.mobicents.slee.container.SleeContainer.removeDU(SleeContainer.java:3104)

02:43

<martins>

at org.mobicents.slee.container.SleeContainer.removeDeployableUnit(SleeContainer.java:3065)

02:43

<martins>

at org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl.uninstall(DeploymentMBeanImpl.java:187)

02:43

<martins>

... 15 more

02:43

<martins>

03:39:23,495 ERROR [SleeContainer] javax.slee.InvalidStateException: Service is STOPPING

02:43

<martins>

...

02:43

<martins>

alexandre: bip bip

02:43

<martins>

tou calmo

02:43

<alexandre>

[03:41] alexandre: DeploymentManager.java : 491 => comenta

02:43

<alexandre>

[03:41] alexandre: foi a tal q descomentei p ver o q era do RA :P

02:44

<alexandre>

hm pera

02:44

<alexandre>

isso devia era estar num use case

02:45

<alexandre>

certo?

02:48

<alexandre>

martins

02:48

<alexandre>

q fizeste p teres a excepcao?

02:49

<martins>

03:48:07,406 INFO [DeploymentManager] Delaying uninstall due to service deactivation not complete.

02:49

<martins>

03:48:07,657 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[1]

02:49

<martins>

03:48:07,659 ERROR [SleeContainer] javax.slee.InvalidStateException: Service is STOPPING

02:49

<martins>

03:48:07,660 INFO [DeploymentManager] Delaying uninstall due to service deactivation not complete.

02:49

<martins>

03:48:07,705 INFO [EventRouterImpl] Deactivated ServiceID[GoogleTalkBotService#mobicents#0.1]

02:49

<martins>

03:48:07,911 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[1]

02:49

<martins>

03:48:07,917 INFO [GoogleTalkBotSbb] Called setSbbContext!

02:49

<martins>

03:48:07,917 INFO [GoogleTalkBotSbb] setSbbContext() Retrieved uid[mobicents.org], passwd[m0b1c3nts]

02:49

<martins>

03:48:07,929 INFO [SleeContainer] Uninstalled service ServiceID[GoogleTalkBotService#mobicents#0.1]

02:49

<martins>

03:48:07,937 INFO [SleeContainer] Uninstalled SBB SbbID[GoogleTalkBotSbb#mobicents#0.1] on DU DeployableUnitID[1]

02:49

<martins>

03:48:07,939 INFO [DeploymentMBeanImpl] Uninstalled DU with id DeployableUnitID[1]

02:49

<martins>

03:48:08,193 INFO [ResourceManagementMBeanImpl] Removed RA Entity Link XMPPRA

02:49

<martins>

03:48:08,597 INFO [DeploymentManager] google-talk-bot-DU-1.2.0.GA-SNAPSHOT.jar wasn't deployed. Removing from waiting list.

02:49

<martins>

03:48:12,710 INFO [SbbEntity] Failed to remove the root sbb entity ServiceID[GoogleTalkBotService#mobicents#0.1]:root:2a722bc06c62e89f:-4fb4f348:11c07350ea2:-7fdb with convergence name null from the service ServiceID[GoogleTalkBotService#mobicents#0.1]

02:49

<martins>

java.lang.NullPointerException

02:49

<martins>

at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)

02:49

<martins>

at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)

02:49

<martins>

at org.mobicents.slee.runtime.cache.CacheableMap.innerGet(CacheableMap.java:278)

02:49

<martins>

at org.mobicents.slee.runtime.cache.CacheableMap.remove(CacheableMap.java:325)

02:49

<martins>

at org.mobicents.slee.container.service.Service.removeConvergenceName(Service.java:352)

02:50

<martins>

at org.mobicents.slee.runtime.sbbentity.SbbEntity.removeFromParent(SbbEntity.java:1197)

02:50

<martins>

at org.mobicents.slee.runtime.sbbentity.SbbEntity.remove(SbbEntity.java:587)

02:50

<martins>

at org.mobicents.slee.runtime.sbbentity.SbbEntityFactory.removeSbbEntity(SbbEntityFactory.java:163)

02:50

<martins>

at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:1017)

02:50

<martins>

at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)

02:50

<martins>

at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)

02:50

<martins>

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

02:50

<martins>

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

02:50

<martins>

at java.lang.Thread.run(Thread.java:613)

02:50

<martins>

03:48:12,712 ERROR [EventRouterImpl] Unhandled Exception in event router:

02:50

<martins>

javax.transaction.SystemException: Failed to commit tx. [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state

02:50

<martins>

at org.mobicents.slee.runtime.transaction.TransactionManagerImpl.commit(TransactionManagerImpl.java:352)

02:50

<martins>

at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:1070)

02:50

<martins>

at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)

02:50

<martins>

at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)

02:50

<martins>

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

02:50

<martins>

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

02:50

<martins>

at java.lang.Thread.run(Thread.java:613)

02:51

<martins>

ant undeploy-all

02:51

<martins>

convergence name null lol

02:51

<alexandre>

I knew it...

02:53

<alexandre>

o prob eh o undploy comecar antes do deploy completar

02:54

<martins>

deixa la esperar 1 min

02:54

<alexandre>

ha msgs de deploy durante o undeploy

02:54

<alexandre>

[03:49] martins: 03:48:07,911 INFO [DeploymentMBeanImpl] Uninstalling DU with id DeployableUnitID[1]

02:54

<alexandre>

[03:49] martins: 03:48:07,917 INFO [GoogleTalkBotSbb] Called setSbbContext!

02:54

<alexandre>

[03:49] martins: 03:48:07,917 INFO [GoogleTalkBotSbb] setSbbContext() Retrieved uid[mobicents.org], passwd[m0b1c3nts]

02:54

<alexandre>

[03:49] martins: 03:48:07,929 INFO [SleeContainer] Uninstalled service ServiceID[GoogleTalkBotService#mobicents#0.1]

02:56

<martins>

isso é algo q n estou a perceber, pq raio vai ao setsbbcontext tanta vez

02:56

<martins>

esperei e n houve probs

02:57

<martins>

wait, ja percebi

02:57

<martins>

pelo meons parte

02:57

<alexandre>

eu axo q vai ao setSbbContext cada vez q alguem fica online

02:57

<martins>

s

02:57

<martins>

tinha o sleep no activity end pra qq activity, n apenas no service activity

02:58

<martins>

é normal aquela excepção

02:58

<martins>

pq existe concorrencia entre o undeploy e o activity end pra remover as entidades

02:59

<martins>

um deles pode estar a trabalhar com uma entidade e puff

02:59

<martins>

fica sem ela

02:59

<martins>

enfim, excepções q um dia serão melhor trabalhadas

02:59

<martins>

;-)

02:59

<martins>

o teu depllyer tb ficou baralhado

03:00

<martins>

pq o activity end do service start tb n tinha passado

03:01

<martins>

enfim, consegui lixar isto tudo com um sleep no sitio errado lol

03:02

<martins>

deixa la correr o tck pra comprovar q esta bom e fazer o deploy e undeploy do sip-presence

03:03

<alexandre>

lol, pois...

03:03

<alexandre>

se o sip-presence der, td da :D

03:04

<martins>

y

03:04

<alexandre>

eskeci-me de aumentar o default pra 1000ms

03:04

<alexandre>

vou alterar

03:04

<martins>

classe e linha´

03:20

<alexandre>

martins: testa tb fazer shutdown c o sip-presence instalado

03:20

<alexandre>

em principio isso continua como antigamente :p

03:20

<martins>

ok

03:21

<martins>

eu espero q mudes a config de sitio

03:23

<martins>

o Sleecontainer tem getDeployPath q te da o path do sar

03:24

<martins>

n sei se necessitas de ir aí ou o jboss-service.xml é acessivel atraves de codigo

03:27

<alexandre>

akilo muda uma var no MBean, eu obtenho dai

03:28

<alexandre>

eh mm so mudar o codigo do XML, o Mbean n vou alterar

03:29

<martins>

ok

03:31

<alexandre>

kick it!

03:32

<martins>

humm

03:33

<alexandre>

what??

03:36

<martins>

em q mbean isso esta

03:36

<alexandre>

SleeSubDeployerMBean

03:36

<martins>

pq n no MobicentsManagement

03:37

<alexandre>

org.mobicents.slee.container.deployment.jboss.SleeDeployerMBean.java

03:37

<martins>

pra q é preciso esse mbean

03:37

<alexandre>

pq este mbean tem uma operacao, showStatus

03:37

<martins>

entao mas n tinhamos combinado centralizar a config

03:38

<martins>

q operação é essa

03:38

<alexandre>

sim, mas isto ja estava

03:38

<alexandre>

mostra o estado do deployer

03:38

<alexandre>

o q esta deployed, o q esta em espera, o q falta a uma DU q esta em espera, etc.

03:40

<martins>

o jboss usa o setter pra definir o valor dessas vars n é?

03:41

<alexandre>

julgo q sim

03:41

<alexandre>

mas neste caso isto eh a invocacao d um metodo q eh implementado no SleeDeployer

03:41

<alexandre>

SleeSubDeployer

03:42

<alexandre>

o SleeDeployer foi uma tentativa do Ivelin de fazer o deployer

03:43

<martins>

ia passar o version ataves do xml mas sendo assim é melhor n, n faz sentido haver um setter

03:46

<martins>

vou so mudar do mbean das specs pra esse novo

03:49

<alexandre>

specs?

03:50

<martins>

SleeManagementMbean

03:51

<alexandre>

ah

03:51

<alexandre>

bem.. axo q vou dormir

03:51

<alexandre>

precisas de mais alg coisa?

03:51

<martins>

vou testar

03:51

<alexandre>

ok

03:59

<martins>

agora percebo o pq dos 250ms lole

04:00

<martins>

porque graças ao sleep isto fica um bocadinho mais lento

04:00

<alexandre>

ehhe

04:00

<martins>

sobreviveu ao shutdown do sip-presence, vamos ver o undeploy

04:00

<alexandre>

1 segundo * 8 DUs q o sip-presence tem... :P

04:02

<alexandre>

lol

04:02

<alexandre>

ja vi na sic noticias o pq do helicoptero q falei ah bocado

04:02

<alexandre>

rusga na quinta do mocho e quinta da fonte :D

04:02

<martins>

hmm, not good news no undeploy

04:02

<alexandre>

:S

04:03

<alexandre>

o q aconteceu?

04:03

<martins>

a treta das classes

04:04

<martins>

Uninstalled SBB SbbID[OMAPresRulesAppUsageSbb#org.openxdm#1.0] on DU DeployableUnitID[4]

04:04

<martins>

05:01:49,291 INFO [DeploymentMBeanImpl] Uninstalled DU with id DeployableUnitID[4]

04:04

<martins>

05:01:50,298 WARN [SLEESubDeployer] Unable to UNINSTALL msps-xdms-core-DU-1.0.0.BETA3-SNAPSHOT.jar right now. Waiting for dependents to be removed.

04:04

<martins>

05:01:50,304 ERROR [STDERR] java.lang.NoSuchMethodException: org.openxdm.xcap.server.slee.RequestProcessorSbbImpl.put(org.openxdm.xcap.common.uri.ResourceSelector, java.lang.String, java.io.InputStream, org.openxdm.xcap.server.etag.ETagValidator, java.lang.String)

04:04

<martins>

05:01:50,304 ERROR [STDERR] at java.lang.Class.getMethod(Class.java:1581)

04:04

<martins>

05:01:50,304 ERROR [STDERR] at org.mobicents.slee.container.deployment.interceptors.SbbLocalObjectInterceptor.invokeAndReturnObject(SbbLocalObjectInterceptor.java:71)

04:04

<martins>

05:01:50,304 ERROR [STDERR] at org.openxdm.xcap.server.slee.RequestProcessorSbbLocalObjectImpl.put(RequestProcessorSbbLocalObjectImpl.java)

04:04

<martins>

05:01:50,304 ERROR [STDERR] at org.openxdm.xcap.server.slee.AbstractAppUsageSbb.updateXCAPCapsGlobalDoc(AbstractAppUsageSbb.java:221)

04:04

<martins>

05:01:50,304 ERROR [STDERR] at org.openxdm.xcap.server.slee.AbstractAppUsageSbb.onActivityEndEvent(AbstractAppUsageSbb.java:282)

04:04

<martins>

05:01:50,304 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

04:04

<martins>

05:01:50,305 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

04:04

<martins>

05:01:50,305 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

04:04

<martins>

05:01:50,306 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)

04:04

<martins>

05:01:50,306 ERROR [STDERR] at org.mobicents.slee.runtime.sbbentity.SbbEntity.invokeEventHandler(SbbEntity.java:877)

04:05

<martins>

05:01:50,306 ERROR [STDERR] at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:892)

04:05

<martins>

05:01:50,307 ERROR [STDERR] at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)

04:05

<martins>

05:01:50,307 ERROR [STDERR] at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)

04:05

<martins>

05:01:50,307 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

04:05

<martins>

05:01:50,307 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

04:05

<martins>

05:01:50,307 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)

04:05

<martins>

05:01:52,315 WARN [SLEESubDeployer] Unable to UNINSTALL msps-xdms-ds-ra-DU-1.0.0.BETA3-SNAPSHOT.jar right now. Waiting for dependents to be removed.

04:05

<martins>

05:01:52,322 WARN [SLEESubDeployer] Unable to UNINSTALL msps-xdms-aucache-ra-DU-1.0.0.BETA3-SNAPSHOT.jar right now. Waiting for dependents to be removed.

04:05

<martins>

05:01:52,325 ERROR [EventRouterImpl] Failure while routing event; second phase. DeferredEvent [EventTypeID[javax.slee.ActivityEndEvent#javax.slee#1.0], #0]

04:05

<martins>

java.lang.NullPointerException

04:05

<martins>

at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:630)

04:05

<martins>

at java.lang.ClassLoader.loadClass(ClassLoader.java:316)

04:05

<martins>

at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:474)

04:05

<martins>

at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)

04:05

<martins>

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

04:05

<martins>

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)

04:06

<martins>

at org.mobicents.slee.sipevent.server.publication.PublicationControlSbb.onActivityEndEvent(PublicationControlSbb.java:816)

04:06

<martins>

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

04:06

<martins>

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

04:06

<martins>

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

04:06

<martins>

at java.lang.reflect.Method.invoke(Method.java:585)

04:06

<martins>

at org.mobicents.slee.runtime.sbbentity.SbbEntity.invokeEventHandler(SbbEntity.java:877)

04:06

<alexandre>

dammit..

04:06

<martins>

at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:892)

04:06

<martins>

at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)

04:06

<martins>

at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)

04:06

<martins>

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

04:06

<martins>

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

04:06

<martins>

at java.lang.Thread.run(Thread.java:613)

04:06

<martins>

sera q assim estas a deixar o jboss remover as classes

04:07

<martins>

era o sleep q estava a proteger isso?

04:07

<alexandre>

nao, tou a guardar o UCL

04:08

<alexandre>

e removo qd forem apagados os outros q dependem desse

04:08

<martins>

vou baixar pra 250ms

04:08

<martins>

a ver se faz diferença

04:09

<martins>

nopes

04:10

<alexandre>

pois

04:10

<martins>

deixa-ve fazer uma experiencia

04:10

<alexandre>

podera ser por ser noutra thread?

04:10

<alexandre>

isso mexer com os CL's?

04:11

<martins>

tipo estares a pendurar o novo UCL no timer e o slee n ter acesso?

04:12

<martins>

onde isso esta no codigo

04:13

<alexandre>

org.mobicents.slee.container.deployment.jboss.DeploymentManager.java

04:13

<alexandre>

461

04:13

<alexandre>

org.mobicents.slee.container.deployment.jboss.SLEESubDeployer.java : 461

04:13

<alexandre>

a funcao dp eh q esta no manager

04:16

<martins>

n é pelo facto de só guardar se tiver uma DeploymentException pois n?

04:17

<alexandre>

pois... podera ser

04:17

<alexandre>

eu tinha ai um else p fazr print da excepcao s n fosse essa, apaguei

04:18

<martins>

tou a expeirmentar a por a DU do core no fim da lista

04:18

<martins>

do core do presence

04:18

<martins>

hmm

04:21

<martins>

ta todo passado lol

04:23

<alexandre>

lol

04:23

<martins>

este metodo é praque

04:23

<martins>

public void addReplacedUCL( DeployableUnit du, RepositoryClassLoader ucl )

04:23

<martins>

metes isso num mapa e depois

04:24

<alexandre>

meto no mapa c a chave de quem depende dela

04:24

<alexandre>

qd essa DU eh removida, retiro do mapa e fa?o o unregister dela

04:24

<alexandre>

if( replacedUCLs.containsKey(waitingDU) )

04:24

<alexandre>

replacedUCLs.remove(waitingDU).unregister();

04:24

<alexandre>

o q me faz pensar........

04:25

<alexandre>

se houver 2 DUs a depender dela, borra a cueca

04:25

<martins>

é exactamente o mesmo prob de antes

04:26

<alexandre>

if( replacedUCLs.containsKey(waitingDU) )

04:26

<alexandre>

{

04:26

<alexandre>

RepositoryClassLoader ucl = replacedUCLs.remove(waitingDU);

04:26

<alexandre>

if(!replacedUCLs.containsValue(ucl))

04:26

<alexandre>

ucl.unregister();

04:26

<alexandre>

}

04:26

<alexandre>

substitui por isto

04:27

<alexandre>

axo q faz sentido

04:29

<alexandre>

DU-A (UCL-A) tem como deps DU-B (UCL-B) e DU-C (UCL-C)... qd A eh removido eh guardad a UCL-A, qd B eh removido eh feito unreg ah UCL-A e qd C eh removido... kaboom. cade a minha UCL-A? :P

04:30

<martins>

resposta em breve

04:31

<martins>

oh n, voltei a por o 1s lol

04:31

<alexandre>

ahah

04:32

<alexandre>

zzzzz

04:32

<martins>

vou fazer commit com 250ms e q se lixe o nº de msgs de log :p

04:32

<martins>

n funcionou

04:32

<alexandre>

:'(

04:33

<alexandre>

queres tentar nunca fazer unreg ah UCL, p ver se vem dai?

04:35

<martins>

n é

04:36

<martins>

e esta ein

04:36

<martins>

vou espetar com o class loader do deployment manager no timer

04:36

<alexandre>

entao tem de ser de ser numa thread em diferente do deploy

04:43

<martins>

lol, tb n funcionou

04:43

<martins>

grande fdx eh eh

04:43

<alexandre>

o q experimentaste=

04:43

<alexandre>

?

04:43

<martins>

por o class loader do thread do deploy no run das timertask

04:44

<alexandre>

hum

04:44

<alexandre>

o facto de o timer ser static pode influenciar alg coisa?

04:45

<martins>

deixa-me primeiro fazsr uma copia do projecto e fazer revert, quero me certificar q estamos a acusar o componente certo

04:45

<martins>

phonix, tava tudo certinho, é sempre a presença

04:46

<martins>

o teixeira é q tinha razão

04:46

<alexandre>

LOL

04:46

<alexandre>

ele ? q a sabe toda!

04:52

<martins>

ok, ta comprovado q são estas alterações q provocam o issue

04:53

<martins>

com o head n se passa nada

04:54

<alexandre>

podera a excepcao n ser a deploymentexception... ou n chegar la..

04:54

<martins>

hmm

04:54

<martins>

pois

04:54

<martins>

e q tal guardar sempre

04:55

<alexandre>

axo q n tem prob

04:56

<alexandre>

desde q se fa?a o unreg qd ela ja n eh necessaria, n ha prob em guardar sempre

05:01

<alexandre>

mete um log p veres se ta mm a passar la

05:02

<martins>

ya, é isso, ele deve estar a mandar uma excepção q n é deployment

05:03

<martins>

usei um finally e n houve probs

05:04

<martins>

vou tirar o if do deployment exception

05:04

<martins>

é seguro esta abordagem n é, pq se retorna false entao ha-de fazer outra vez

05:04

<martins>

?

05:05

<alexandre>

julgo q sim

05:05

<alexandre>

deixa so dar 1 vista de olhos

05:06

<martins>

pronto, remover o if(e instanceof DeploymentException) funcionou

05:06

<alexandre>

cooooool :)

05:06

<martins>

verificala só se é seguro q mais tarde ele vai remover

05:07

<martins>

vou deixar o codigo antigo do unregister

05:07

<alexandre>

hum, axo q o novo n fica mal...

05:07

<martins>

ok

05:07

<alexandre>

por acaso pode n estar a acontecer nenhum caso desses, mas pode vir a acontecer

05:08

<alexandre>

sim, ele vai sempre la passar novamente, por isso vai sempre acabar por remover

05:08

<martins>

isso depois n pode meter probs com redeploys?

05:08

<martins>

ficaram la 2?

05:09

<martins>

depois fazes redeploy e ficam la 3

05:09

<martins>

etc

05:09

<alexandre>

nao nao

05:09

<alexandre>

pq ao removeres um componente q tem deps ele n eh undeployed

05:09

<alexandre>

logo nc eh redeployed

05:10

<martins>

w8 lol

05:10

<martins>

só visto

05:10

<martins>

deve ser das horas

05:10

<alexandre>

lol, entao?

05:11

<alexandre>

no caso do GTalk... deploy do XMPP, deploy do GT... removes o XMPP, a UCL eh guardada... se meteres um novo XMPP ele barra logo pq ja existe deployed

05:11

<martins>

fiz a copia da pasta pro revert, depois apaguei a do head e mudei o nome da copia outra vez

05:12

<martins>

resultado é q a bash ficou a apontar pra pasta no thrash, a do revert

05:12

<martins>

lol

05:12

<martins>

a q funcionava sempre

05:12

<martins>

vou ficar mesmo fdd se a bug n é aquilo q dizia

05:13

<martins>

alguma coisa vai pela janela

05:13

<alexandre>

lol

05:13

<martins>

abdiuvwifviqwyvfiwqvifvqweufq

05:13

<martins>

n é

05:13

<alexandre>

:S

05:13

<martins>

:(

05:13

<alexandre>

damn.

05:13

<martins>

fdx n acredito

05:14

<alexandre>

e o pior eh q se me acabaram as ideias

05:14

<alexandre>

n tou a ver o q mais possa ser

05:14

<martins>

ya, siga dormir

05:15

<martins>

pra refrescar as ideias

05:15

<martins>

assim n vamos lá

05:15

<martins>

enganado pela bash

05:15

<martins>

:´(

05:16

<alexandre>

q miseria :S

05:16

<martins>

é q ate as classes do hibernate falham

05:17

<martins>

java.lang.NullPointerException

05:17

<martins>

at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:630)