forcemax's

에러다...

ActiveMessaging: Loading /home/forcemax/workspace/MessageMonster/app/processors/persist_message_processor.rb
=> Subscribing to /queue/PersistMessage (processed by PersistMessageProcessor)
ArgumentError: wrong number of arguments (7 for 6)

별수 없다 이번에는 내 맘대로 바꿔보자..

/home/forcemax/workspace/MessageMonster/vendor/plugins/activemessaging/lib/activemessaging/adapters/stomp.rb:25:in `initialize'

여기서 발생한 에러라고 했으니 여기로 간다.

분명 내가 설정해줄때는 :clientId는 없었다. 근데 왜 이것까지 들어가는 걸까. 이상하다.

그래서 결국
super(cfg[:login],cfg[:passcode],cfg[:host],cfg[:port].to_i,cfg[:reliable],cfg[:reconnectDelay],cfg[:clientId])


super(cfg[:login],cfg[:passcode],cfg[:host],cfg[:port].to_i,cfg[:reliable],cfg[:reconnectDelay]) #,cfg[:clientId])

로 바꿨다.

잘돈다... 이게 뭐하는 짓이냐 -_-

script/generate processor PersistMessage
라는 명령을 실행시키는데 에러가 나왔다. 이건 뭐냐 -_-;;

구글링 결과
vendor/plugins/activemessaging/lib/activemessaging.rb
파일을 수정하란다.

이 파일을 열고 64번 줄에 가면 다음 내용이 있다.

load RAILS_ROOT + '/app/processors/application.rb'

다음과 같이 바꾼다.

load RAILS_ROOT + '/app/processors/application.rb' if File.exist?(RAILS_ROOT + '/app/processors/application.rb')

이건 뭐 파일도 없는데 load하려고 하냐;;