微信支付成功但是微信分享却失败了

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_35414752/article/details/80285258

场景:项目进入到结束阶段了,进行测试,发现微信分享失败了但是微信支付却是可以的。然而微信只有在打包的情况下才可以正常跑通,但是打包了又没办法获取到错误日志。

分析:为解决上面的问题,我决定接一个错误分析的框架(嗯,外包公司,项目需求里没有的都不会加的,这个项目就没有~)。因为之前结果腾讯的bugly作为热更新,而且也支持bug分析。所以就是它了——bugly.qq.com

OK,接入项目后,再拿同事的手机跑程序(没错,我的手机没报错),在bugly控制台看到上传的错误代码:


嗯,一看到这个错误,马上反应过来这个报错代码似曾相识识(android8.0的问题)

——https://blog.csdn.net/qq_35414752/article/details/80103601


解决办法:


设置theme改成这个就好了,至于这个NoTranslucent哪来的,请看上面的链接。

OK,BUG解决了~~~~~~

展开阅读全文

ShareSDk 微信分享失败

10-24

我使用ShareSDk 直接分享到朋友圈 或者好友 都跳转不过去 分享失败rn配置 appID 都是对的。我用shareSDK一键分享都能成功,可是单独的直接分享就失败 到回调里的onError。rnrn[code=java]rnrn类已经继承了 public class AddFriendsActivity extends Activity implements OnClickListener, Callback, PlatformActionListener 。rnrnrnprivate void showShareCircle()rn ShareSDK.initSDK(this);rn Platform.ShareParams sp = new WechatMoments.ShareParams();rn sp.setTitle("test");rn sp.text = "test";rn sp.setImageUrl("http://192.168.2.5:8808/appImages/Head/1000.png");rn sp.setUrl("http://192.168.2.5:8808/AppService/app");rn Platform platform = ShareSDK.getPlatform(AddFriendsActivity.this, WechatMoments.NAME);rn platform.setPlatformActionListener(this);rn platform.share(sp);rn rnrn//回调方法rnpublic void onComplete(Platform plat, int action,rn HashMap res) rn Message msg = new Message();rn msg.arg1 = 1;rn msg.arg2 = action;rn msg.obj = plat;rn UIHandler.sendMessage(msg, this);rn rnrn public void onCancel(Platform plat, int action) rn Message msg = new Message();rn msg.arg1 = 3;rn msg.arg2 = action;rn msg.obj = plat;rn UIHandler.sendMessage(msg, this);rn rnrn public void onError(Platform plat, int action, Throwable t) rn t.printStackTrace();rnrn Message msg = new Message();rn msg.arg1 = 2;rn msg.arg2 = action;rn msg.obj = t;rn UIHandler.sendMessage(msg, this);rn rnrn public boolean handleMessage(Message msg) rn String text = "msg.arg2";rn switch (msg.arg1) rn case 1: rn // 成功rn Platform plat = (Platform) msg.obj;rn text = plat.getName() + " completed at " + text;rn rn break;rn case 2: rn // 失败rn if ("WechatClientNotExistException".equals(msg.obj.getClass().getSimpleName())) rn text = this.getString(R.string.wechat_client_inavailable);rn rn else if ("WechatTimelineNotSupportedException".equals(msg.obj.getClass().getSimpleName())) rn text = this.getString(R.string.wechat_client_inavailable);rn rn else rn text = this.getString(R.string.share_failed);rn rn rn break;rn case 3: rn // 取消rn Platform plat = (Platform) msg.obj;rn text = plat.getName() + " canceled at " + text;rn rn break;rn rnrn Toast.makeText(this, text, Toast.LENGTH_LONG).show();rn return false;rn rnrn[/code] 论坛

kettle连接hive成功但是查询失败

10-11

hive sql 语句 select * from shujurn错误信息如下:rnorg.pentaho.di.core.exception.KettleDatabaseException:rnAn error occurred executing SQL:rnselect * from shujurnrnError determining value metadata from SQL resultset metadatarnMethod not supportedrnrnrn at org.pentaho.di.core.database.Database.openQuery(Database.java:1718)rn at org.pentaho.di.core.database.Database.getRows(Database.java:3398)rn at org.pentaho.di.core.database.Database.getRows(Database.java:3376)rn at org.pentaho.di.core.database.Database.getRows(Database.java:3361)rn at org.pentaho.di.ui.core.database.dialog.SQLEditor.exec(SQLEditor.java:372)rn at org.pentaho.di.ui.core.database.dialog.SQLEditor.access$200(SQLEditor.java:81)rn at org.pentaho.di.ui.core.database.dialog.SQLEditor$7.handleEvent(SQLEditor.java:242)rn at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)rn at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)rn at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1347)rn at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7989)rn at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9269)rn at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:662)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:601)rn at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)rnCaused by: org.pentaho.di.core.exception.KettleDatabaseException:rnError determining value metadata from SQL resultset metadatarnMethod not supportedrnrn at org.pentaho.di.core.row.value.ValueMetaBase.getValueFromSQLType(ValueMetaBase.java:4588)rn at org.pentaho.di.core.database.Database.getValueFromSQLType(Database.java:2267)rn at org.pentaho.di.core.database.Database.getRowInfo(Database.java:2229)rn at org.pentaho.di.core.database.Database.openQuery(Database.java:1714)rn ... 19 morernCaused by: java.sql.SQLException: Method not supportedrn at org.apache.hive.jdbc.HiveResultSetMetaData.isSigned(HiveResultSetMetaData.java:143)rn at org.pentaho.di.core.row.value.ValueMetaBase.getValueFromSQLType(ValueMetaBase.java:4355)rn ... 22 more 论坛

没有更多推荐了,返回首页