gpt4 book ai didi

android - FailedBinderTransaction-TransactionTooLargeException

转载 作者:太空宇宙 更新时间:2023-11-03 11:08:01 25 4
gpt4 key购买 nike

<分区>

我正在尝试将 parse.com 与我的 android 应用程序一起使用。我正在创建注册凭据,但收到 TransactionTooLargeExcepetion。我相信发生这种情况是因为我超出了接收或提交的数据量。但是,我无法确定问题所在,因为我只是想向服务器提交 2 个字符串。我正在添加堆栈跟踪图像和少量代码供您引用。非常感谢大家的指导!

public class ParseStarterProjectActivity extends Activity {
// Sign Up/sign in Variables
Button signup;
String userName;
String userPassword;

EditText user;
EditText pass;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

// // Test Parse Object
// ParseObject testObject = new ParseObject("TestObject");
// testObject.put("foo", "bar");
// testObject.saveInBackground();

user = (EditText) findViewById(R.id.editText);
pass = (EditText) findViewById(R.id.editText2);

signup = (Button) findViewById(R.id.button);
//signup = (Button) findViewById(R.id.button2);

// Button onClick Listener
signup.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
userName = user.getText().toString();
userPassword = pass.getText().toString();

//send to parse
ParseUser user = new ParseUser();
user.setUsername(userName);
user.setPassword(userPassword);
user.signUpInBackground(new SignUpCallback() {
public void done(ParseException e) {
if (e == null) {
Toast.makeText(getApplicationContext(),
"Success",
Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(getApplicationContext(),
"Failed",
Toast.LENGTH_SHORT).show();
}
}
});
}
});
}
}

堆栈跟踪输出:

    17:52:54.747  15613-15613/com.parse.starter D/Error﹕ ERR: TOTAL BYTES WRITTEN: 12282164
06-01 17:52:54.748 15613-15613/com.parse.starter E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!!
06-01 17:52:54.748 15613-15613/com.parse.starter E/AndroidRuntime﹕ Error reporting crash
android.os.TransactionTooLargeException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:496)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:4100)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:89)
at com.parse.ErrorReporter.uncaughtException(ErrorReporter.java:1084)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
06-01 17:52:54.749 15613-15613/com.parse.starter I/Process﹕ Sending signal. PID: 15613 SIG: 9

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com