NutzCN Logo
问答 采用nutzboot mvc,在解决跨域问题时添加了CrossOriginFilter,还是没法解决跨域问题,请高手指教,附日志
发布于 2128天前 作者 qq_23c3f086 2065 次浏览 复制 上一个帖子 下一个帖子
标签:
[DEBUG] 14:47:22.753 org.apache.shiro.session.mgt.AbstractValidatingSessionManager.createSessionValidationScheduler(AbstractValidatingSessionManager.java:213) - No sessionValidationScheduler set.  Attempting to create default instance.
[INFO ] 14:47:22.753 org.apache.shiro.session.mgt.AbstractValidatingSessionManager.enableSessionValidation(AbstractValidatingSessionManager.java:233) - Enabling session validation scheduler...
[DEBUG] 14:47:22.757 org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:218) - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@13ba1bb0].  Returning null to indicate a session could not be found.
[DEBUG] 14:47:22.757 org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:218) - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@39ebc51f].  Returning null to indicate a session could not be found.
[DEBUG] 14:47:22.757 org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:218) - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@114936f4].  Returning null to indicate a session could not be found.
[DEBUG] 14:47:22.770 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/api/wx/signature : WxModule.signature(WxModule.java:32)
[DEBUG] 14:47:22.770 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/api/checkform/get : CheckFormModule.get(CheckFormModule.java:73)
[DEBUG] 14:47:22.770 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/api/checkformdetail/list : CheckFormDetailModule.list(CheckFormDetailModule.java:59)
[DEBUG] 14:47:22.772 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'wxModule'<class cn.boyitech.shopcheck.module.WxModule>
[DEBUG] 14:47:22.772 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'checkFormModule'<class cn.boyitech.shopcheck.module.CheckFormModule>
[DEBUG] 14:47:22.772 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'checkFormDetailModule'<class cn.boyitech.shopcheck.module.CheckFormDetailModule>
[DEBUG] 14:47:22.772 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - 	 >> Load definition name=wxModule
[DEBUG] 14:47:22.773 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(wxModule) in AnnotationIocLoader(packages=[cn.boyitech.shopcheck])
[DEBUG] 14:47:22.773 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - 	 >> Make...'wxModule'<class cn.boyitech.shopcheck.module.WxModule>
[DEBUG] 14:47:22.774 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'wxModule' to [app] 
[DEBUG] 14:47:22.775 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class cn.boyitech.shopcheck.module.WxModule without AOP
[DEBUG] 14:47:22.777 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - 	 >> Load definition name=checkFormDetailModule
[DEBUG] 14:47:22.777 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(checkFormDetailModule) in AnnotationIocLoader(packages=[cn.boyitech.shopcheck])
[DEBUG] 14:47:22.777 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - 	 >> Make...'checkFormDetailModule'<class cn.boyitech.shopcheck.module.CheckFormDetailModule>
[DEBUG] 14:47:22.778 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'checkFormDetailModule' to [app] 
[DEBUG] 14:47:22.778 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class cn.boyitech.shopcheck.module.CheckFormDetailModule without AOP
[DEBUG] 14:47:22.786 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'check_dao'<>
[DEBUG] 14:47:22.786 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - 	 >> Load definition name=check_dao
[DEBUG] 14:47:22.786 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(check_dao) in JsonLoader(paths=[ioc/])
[DEBUG] 14:47:22.787 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - 	 >> Make...'check_dao'<>
[DEBUG] 14:47:22.787 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'check_dao' to [app] 
[DEBUG] 14:47:22.788 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dataSource1'<>
[DEBUG] 14:47:22.788 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - 	 >> Load definition name=dataSource1
[DEBUG] 14:47:22.789 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(dataSource1) in JsonLoader(paths=[ioc/])
[DEBUG] 14:47:22.789 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - 	 >> Make...'dataSource1'<>
[DEBUG] 14:47:22.789 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'dataSource1' to [app] 
[DEBUG] 14:47:22.833 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class com.alibaba.druid.pool.DruidDataSource without AOP
[DEBUG] 14:47:23.198 org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCookies.java:122) - CookieSpec selected: default
[DEBUG] 14:47:23.216 org.apache.http.client.protocol.RequestAuthCache.process(RequestAuthCache.java:76) - Auth cache not set in the context
[DEBUG] 14:47:23.218 org.apache.http.impl.conn.PoolingHttpClientConnectionManager.requestConnection(PoolingHttpClientConnectionManager.java:249) - Connection request: [route: {s}->https://api.weixin.qq.com:443][total kept alive: 0; route allocated: 0 of 10; total allocated: 0 of 50]
[DEBUG] 14:47:23.241 org.apache.http.impl.conn.PoolingHttpClientConnectionManager.leaseConnection(PoolingHttpClientConnectionManager.java:282) - Connection leased: [id: 0][route: {s}->https://api.weixin.qq.com:443][total kept alive: 0; route allocated: 1 of 10; total allocated: 1 of 50]
[DEBUG] 14:47:23.243 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:234) - Opening connection {s}->https://api.weixin.qq.com:443
[INFO ] 14:47:23.248 com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:947) - {dataSource-1} inited
[DEBUG] 14:47:23.261 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class org.nutz.dao.impl.NutDao without AOP
[DEBUG] 14:47:23.261 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dataSource1'<>
[DEBUG] 14:47:23.323 org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:131) - Connecting to api.weixin.qq.com/163.177.83.164:443
[DEBUG] 14:47:23.323 org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:335) - Connecting socket to api.weixin.qq.com/163.177.83.164:443 with timeout 5000
[DEBUG] 14:47:23.442 org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:388) - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
[DEBUG] 14:47:23.442 org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:389) - Enabled cipher suites:[TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
[DEBUG] 14:47:23.442 org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:393) - Starting handshake
[DEBUG] 14:47:23.451 org.nutz.dao.jdbc.Jdbcs.<clinit>(Jdbcs.java:93) - Jdbcs init complete
[INFO ] 14:47:23.452 org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:106) - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
[DEBUG] 14:47:23.662 org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:423) - Secure session established
[DEBUG] 14:47:23.662 org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:424) -  negotiated protocol: TLSv1.2
[DEBUG] 14:47:23.663 org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:425) -  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
[DEBUG] 14:47:23.663 org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:433) -  peer principal: CN=mp.weixin.qq.com, OU=R&D, O=Shenzhen Tencent Computer Systems Company Limited, L=Shenzhen, ST=Guangdong, C=CN
[DEBUG] 14:47:23.664 org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:442) -  peer alternative names: [mp.weixin.qq.com, api.weixin.qq.com, a.weixin.qq.com, hk.mp.weixin.qq.com, minigame.weixin.qq.com, ad.weixin.qq.com, developers.weixin.qq.com, rd.wechatapp.com, api2.weixin.qq.com, hk.open.weixin.qq.com, sz.open.weixin.qq.com, servicewechat.com, game.weixin.qq.com, long.open.weixin.qq.com, open.weixin.qq.com, sh.api.weixin.qq.com, sz.api.weixin.qq.com, as.weixin.qq.com, hk.api.weixin.qq.com, sz.mp.weixin.qq.com, mp.weixinbridge.com]
[DEBUG] 14:47:23.664 org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:446) -  issuer principal: CN=GeoTrust RSA CA 2018, OU=www.digicert.com, O=DigiCert Inc, C=US
[DEBUG] 14:47:23.667 org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:138) - Connection established 192.168.43.93:54203<->163.177.83.164:443
[DEBUG] 14:47:23.667 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:255) - Executing request GET /cgi-bin/token?grant_type=client_credential&appid=wx392455e7cff35273&secret=92ed1a6d656dc5ef9660165ca9a8af32 HTTP/1.1
[DEBUG] 14:47:23.667 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:260) - Target auth state: UNCHALLENGED
[DEBUG] 14:47:23.668 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:266) - Proxy auth state: UNCHALLENGED
[DEBUG] 14:47:23.670 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onRequestSubmitted(LoggingManagedHttpClientConnection.java:124) - http-outgoing-0 >> GET /cgi-bin/token?grant_type=client_credential&appid=wx392455e7cff35273&secret=92ed1a6d656dc5ef9660165ca9a8af32 HTTP/1.1
[DEBUG] 14:47:23.670 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onRequestSubmitted(LoggingManagedHttpClientConnection.java:127) - http-outgoing-0 >> Host: api.weixin.qq.com
[DEBUG] 14:47:23.671 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onRequestSubmitted(LoggingManagedHttpClientConnection.java:127) - http-outgoing-0 >> Connection: Keep-Alive
[DEBUG] 14:47:23.671 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onRequestSubmitted(LoggingManagedHttpClientConnection.java:127) - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.5 (Java/1.8.0_181)
[DEBUG] 14:47:23.671 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onRequestSubmitted(LoggingManagedHttpClientConnection.java:127) - http-outgoing-0 >> Accept-Encoding: gzip,deflate
[DEBUG] 14:47:23.671 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 >> "GET /cgi-bin/token?grant_type=client_credential&appid=wx392455e7cff35273&secret=92ed1a6d656dc5ef9660165ca9a8af32 HTTP/1.1[\r][\n]"
[DEBUG] 14:47:23.671 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 >> "Host: api.weixin.qq.com[\r][\n]"
[DEBUG] 14:47:23.672 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
[DEBUG] 14:47:23.672 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.5 (Java/1.8.0_181)[\r][\n]"
[DEBUG] 14:47:23.674 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
[DEBUG] 14:47:23.674 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 >> "[\r][\n]"
[DEBUG] 14:47:23.680 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:188) - select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
[DEBUG] 14:47:23.690 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:199) - JDBC Driver --> mysql-connector-java-8.0.13 (Revision: 66459e9d39c8fd09767992bc592acd2053279be6)
[DEBUG] 14:47:23.690 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:200) - JDBC Name   --> MySQL Connector/J
[DEBUG] 14:47:23.690 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:202) - JDBC URL    --> jdbc:mysql://localhost:3306/boyi_check?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8
[DEBUG] 14:47:23.726 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) - Mysql : character_set_client=utf8mb4
[DEBUG] 14:47:23.726 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) - Mysql : character_set_connection=utf8mb4
[DEBUG] 14:47:23.726 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) - Mysql : character_set_database=utf8
[DEBUG] 14:47:23.727 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) - Mysql : character_set_filesystem=binary
[DEBUG] 14:47:23.727 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) - Mysql : character_set_results=
[DEBUG] 14:47:23.727 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) - Mysql : character_set_server=utf8
[DEBUG] 14:47:23.727 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) - Mysql : character_set_system=utf8
[DEBUG] 14:47:23.728 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) - Mysql : character_sets_dir=C:\phpStudy\PHPTutorial\MySQL\share\charsets\
[DEBUG] 14:47:23.730 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:219) - Mysql : binlog_format=STATEMENT
[DEBUG] 14:47:23.731 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:226) - Mysql : database=boyi_check
[DEBUG] 14:47:23.732 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:232) - Mysql : user=root@localhost
[DEBUG] 14:47:23.757 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:240) - Mysql : 'checkform' engine=MyISAM
[DEBUG] 14:47:23.758 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:221) - Database info --> MYSQL:[MySQL - 5.5.53]
[DEBUG] 14:47:23.761 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:192) - 	 >> Load definition name=checkFormModule
[DEBUG] 14:47:23.761 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:226) - Found IocObject(checkFormModule) in AnnotationIocLoader(packages=[cn.boyitech.shopcheck])
[DEBUG] 14:47:23.762 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - 	 >> Make...'checkFormModule'<class cn.boyitech.shopcheck.module.CheckFormModule>
[DEBUG] 14:47:23.762 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'checkFormModule' to [app] 
[DEBUG] 14:47:23.763 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class cn.boyitech.shopcheck.module.CheckFormModule without AOP
[DEBUG] 14:47:23.775 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'check_dao'<>
[DEBUG] 14:47:23.944 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] 14:47:23.945 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 << "Connection: keep-alive[\r][\n]"
[DEBUG] 14:47:23.945 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 << "Content-Type: application/json; encoding=utf-8[\r][\n]"
[DEBUG] 14:47:23.946 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 << "Date: Fri, 25 Jan 2019 06:47:22 GMT[\r][\n]"
[DEBUG] 14:47:23.946 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 << "Content-Length: 96[\r][\n]"
[DEBUG] 14:47:23.946 org.apache.http.impl.conn.Wire.wire(Wire.java:72) - http-outgoing-0 << "[\r][\n]"
[DEBUG] 14:47:23.946 org.apache.http.impl.conn.Wire.wire(Wire.java:86) - http-outgoing-0 << "{"errcode":40164,"errmsg":"invalid ip 101.206.169.163, not in whitelist hint: [qwrtUA08421533]"}"
[DEBUG] 14:47:23.950 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onResponseReceived(LoggingManagedHttpClientConnection.java:113) - http-outgoing-0 << HTTP/1.1 200 OK
[DEBUG] 14:47:23.950 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onResponseReceived(LoggingManagedHttpClientConnection.java:116) - http-outgoing-0 << Connection: keep-alive
[DEBUG] 14:47:23.951 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onResponseReceived(LoggingManagedHttpClientConnection.java:116) - http-outgoing-0 << Content-Type: application/json; encoding=utf-8
[DEBUG] 14:47:23.951 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onResponseReceived(LoggingManagedHttpClientConnection.java:116) - http-outgoing-0 << Date: Fri, 25 Jan 2019 06:47:22 GMT
[DEBUG] 14:47:23.951 org.apache.http.impl.conn.LoggingManagedHttpClientConnection.onResponseReceived(LoggingManagedHttpClientConnection.java:116) - http-outgoing-0 << Content-Length: 96
[DEBUG] 14:47:23.952 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM checkform_detail  ORDER BY no DESC   LIMIT 0, 20 
[DEBUG] 14:47:23.953 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM v_checkform  WHERE id=?
    |         1 |
    |-----------|
    | undefined |
  For example:> "SELECT * FROM v_checkform  WHERE id='undefined'"
[DEBUG] 14:47:23.963 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:284) - Connection can be kept alive indefinitely
[DEBUG] 14:47:23.984 org.apache.http.impl.conn.PoolingHttpClientConnectionManager.releaseConnection(PoolingHttpClientConnectionManager.java:314) - Connection [id: 0][route: {s}->https://api.weixin.qq.com:443] can be kept alive indefinitely
[DEBUG] 14:47:23.985 org.apache.http.impl.conn.PoolingHttpClientConnectionManager.releaseConnection(PoolingHttpClientConnectionManager.java:320) - Connection released: [id: 0][route: {s}->https://api.weixin.qq.com:443][total kept alive: 1; route allocated: 1 of 10; total allocated: 1 of 50]
[DEBUG] 14:47:24.017 org.apache.http.impl.execchain.ConnectionHolder.cancel(ConnectionHolder.java:143) - Cancelling request execution
me.chanjar.weixin.common.error.WxErrorException: {"errcode":40164,"errmsg":"invalid ip 101.206.169.163, not in whitelist hint: [qwrtUA08421533]"}
	at me.chanjar.weixin.mp.api.impl.WxMpServiceHttpClientImpl.getAccessToken(WxMpServiceHttpClientImpl.java:82)
	at me.chanjar.weixin.mp.api.impl.BaseWxMpServiceImpl.executeInternal(BaseWxMpServiceImpl.java:318)
	at me.chanjar.weixin.mp.api.impl.BaseWxMpServiceImpl.execute(BaseWxMpServiceImpl.java:283)
	at me.chanjar.weixin.mp.api.impl.BaseWxMpServiceImpl.getTicket(BaseWxMpServiceImpl.java:115)
	at me.chanjar.weixin.mp.api.impl.BaseWxMpServiceImpl.getJsapiTicket(BaseWxMpServiceImpl.java:136)
	at me.chanjar.weixin.mp.api.impl.BaseWxMpServiceImpl.createJsapiSignature(BaseWxMpServiceImpl.java:143)
	at cn.boyitech.shopcheck.module.WxModule.signature(WxModule.java:47)
	at cn.boyitech.shopcheck.module.WxModule$FM$signature$da810e841258c3a84ae9124e6d872cd8.invoke(WxModule.java)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:31)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:38)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:214)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:502)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:748)
[DEBUG] 14:48:23.091 org.apache.http.impl.conn.PoolingHttpClientConnectionManager.closeExpiredConnections(PoolingHttpClientConnectionManager.java:408) - Closing expired connections
[DEBUG] 14:48:23.092 org.apache.http.impl.conn.PoolingHttpClientConnectionManager.closeIdleConnections(PoolingHttpClientConnectionManager.java:401) - Closing connections idle longer than 60000 MILLISECONDS

6 回复

相应的程序代码如下:
@Filters(@By(type= CrossOriginFilter.class))
@ApiOperation(value="获取指定url的公众号js-sdk签名",notes="获取指定url的公众号js-sdk签名",httpMethod="POST")
@ApiImplicitParams({@ApiImplicitParam(name="url",value="需要签名url",dataType="string", paramType = "query",defaultValue="")})
@At
@GET
public Object signature(String url) throws WxErrorException {
Object ret=null;
String token="b7Uu3i7U3Z8VDizKvK772ogiO7Viv2b7";
String appsecret="92ed1a6d656dc5ef9660165ca9a8af32";
String appid="wx392455e7cff35273";

    WxMpInMemoryConfigStorage config = new WxMpInMemoryConfigStorage();
    config.setAppId(appid);
    config.setSecret(appsecret);
    config.setToken(token);
    config.setAesKey("StwiG5L1wqZcUW1ckTwkyILWvyycucQ5UTUuGjGljpP");

    WxMpService wxService = new WxMpServiceImpl();
    wxService.setWxMpConfigStorage(config);

    try{
        ret=wxService.createJsapiSignature(url);
    }catch (Exception e){
        e.printStackTrace();
    }
    return ret;
}

invalid ip 101.206.169.163

这是微信白名单问题呀

不是,白名单都好解决,所以我特意把异常包裹了,我是看filter有没有俘获到
前端还是报:Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9090' is therefore not allowed access.

如果我把微信相关当面注释掉,我相信还是一样的问题,没法调用

别用localhost,不能跨域的,不发op请求的,你可以看看网络请求,就没请求服务器

好的,谢谢!

添加回复
请先登陆
回到顶部