Project

General

Profile

java.lang.IllegalArgumentException: Null input buffer

share yuan
Added 10 months ago

java.lang.IllegalArgumentException: Null input buffer
    at javax.crypto.Cipher.doFinal(Cipher.java:2160)
    at tigase.http.util.AES.decrypt(AES.java:69)
    at tigase.http.java.DummyServletRequest.getUserPrincipal(DummyServletRequest.java:416)
    at tigase.http.java.DummyServletRequest.isUserInRole(DummyServletRequest.java:399)
    at javax.servlet.http.HttpServletRequest$isUserInRole$4.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    at tigase.http.rest.RestServlet$_processRequest_closure3.doCall(RestServlet.groovy:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021)
    at groovy.lang.Closure.call(Closure.java:426)
    at groovy.lang.Closure.call(Closure.java:442)
    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2056)
    at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    at tigase.http.rest.RestServlet.processRequest(RestServlet.groovy:128)
    at tigase.http.rest.RestExtServlet.processRequest(RestExtServlet.groovy:189)
    at tigase.http.rest.RestExtServlet$processRequest$0.callCurrent(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
    at tigase.http.rest.RestServlet.service(RestServlet.groovy:95)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at tigase.http.java.RequestHandler.handle(RequestHandler.java:124)
    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
    at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
    at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
    at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
    at tigase.http.java.JavaStandaloneHttpServer$ExecutorWithTimeout.lambda$0(JavaStandaloneHttpServer.java:187)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)


Replies (1)

Added by share yuan 10 months ago

config-type=--gen-config-def
--admins=admin@im.app
--virt-hosts = 192.168.0.120,app.im,test-d

--user-db=mysql
--user-db-uri=jdbc:mysql://192.168.0.63:3306/tigase?user=tigase&password=tigase_123&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull

sess-man/plugins-conf/urn\:ietf\:params\:xml\:ns\:\xmpp-bind/apns-token-db-uri=jdbc:mysql://192.168.0.63:3306/tigase?user=tigase&password=tigase_123&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
#sess-man/plugins-conf/enabled-mechanisms=SCRAM-SHA-1,PLAIN
sess-man/plugins-conf/enabled-mechanisms=PLAIN
sess-man/plugins-conf/client-key=QERHTELKCS
sess-man/plugins-conf/server-key=POANFJGWYQ

basic-conf/logging/tigase.http.level=FINEST
basic-conf/logging/tigase.db.jdbc.level=FINER
basic-conf/logging/tigase.xmpp.impl.level=FINE
basic-conf/logging/tigase.muc.level=FINE
basic-conf/logging/tigase.apns.level=FINE

#sess-man/plugins-conf/amp/user-store-limit-enable[B]=false
#sess-man/plugins-conf//user-store-limit-enable[B]=false
amp/store-limit[L]=10000

--sm-plugins=+urn:xmpp:receipts,+message-push,+message-archive-xep-0136

--comp-name-1=http
--comp-class-1=tigase.http.HttpMessageReceiver
http/api-keys[s]=open_access
http/http/ports[i]=19080,19081
http/http/19081/domain=im.app
http/http/19081/socket=ssl


#--comp-name-2 = muc
#--comp-class-2 = tigase.muc.MUCComponent


--comp-name-2 = muc
--comp-class-2 = tigase.group.GroupComponent

--comp-name-3=message-archive
--comp-class-3=tigase.archive.MessageArchiveComponent
message-archive/auto=true
sess-man/plugins-conf/message-archive-xep-0136/required-store-method=message

    (1-1/1)