小编sam*_*met的帖子

无法在Eclipse上部署应用程序(Bluemix)

我正在尝试在Bluemix上创建我的第一个Web应用程序.

  1. 我创建了一个Java Liberty Runtime并下载了Starter Code以便在Eclipse上工作.
  2. 我将IBM Bluemix工具安装到Eclipse并将入门代码作为归档文件导入.

当我尝试在IBM Bluemix Server上运行应用程序时,它将启动程序代码识别为另一个新应用程序并说:"There is a deployed application with the same name."所以,我无法在eclipse上更新应用程序,并且在服务器视图上还有两个不同的应用程序:

替代文字

当我尝试去申请主页时,它给出了:

Not Found
The application or context root for this request has not been found: /
Run Code Online (Sandbox Code Playgroud)

谢谢你的评论.

eclipse deployment devops ibm-cloud-tools ibm-cloud

5
推荐指数
1
解决办法
910
查看次数

在ASP.NET中从数据库动态创建DIV

这是一个初学者的问题.我想从数据库(MSSQL)动态创建div .例如,我想在条目下面显示评论.该评价表连接由表的EntryID.我的aspx代码如下:

<div class="commentBody" runat="server">
      <asp:Label ID="commentSender" runat="server" Text=""></asp:Label>
      <asp:Label ID="commentDate" runat="server" Text=""></asp:Label>
      <asp:Label ID="commentText" runat="server" Text=""></asp:Label>
</div>
Run Code Online (Sandbox Code Playgroud)

所有评论都会重复这一点.我正在处理所有代码隐藏(没有逃避).我的c#代码:

protected void YorumlariGetir()
{   
    string selectComments = "SELECT * FROM Comment WHERE Comment.EntryID = @EntryID";

    SqlConnection conn = new SqlConnection(constr);
    SqlCommand cmd = new SqlCommand(selectComments, conn);

    cmd.Parameters.AddWithValue("@EntryID", Session["EntryID"].ToString());

    try
    {
        conn.Open();
        // HERE I WANT TO CALL A LOOP FOR COMMENTS

    }
    catch (Exception ex)
    {
        Response.Write("Hata: " + ex.Message);
    }
    finally
    { …
Run Code Online (Sandbox Code Playgroud)

c# sql sql-server asp.net sqldatareader

3
推荐指数
1
解决办法
1万
查看次数

在 Eclipse 上克隆 Git 存储库(传输错误)

我是 Bluemix 服务的新手。我找不到这个问题的确切解决方案。

我在 Bluemix 上有一个 Web 应用程序,在 DevOps 上有一个 Git 存储库。我正在开发 Eclipse(有 Git 和 Bluemix 插件)并对项目进行了一些更改。现在,我在本地和 Bluemix 端都有该项目的最后一个版本,需要更新存储库(仍然是入门代码)。

第一步,我尝试克隆 Git 存储库(在 Eclipse 上)。填写 URI 和身份验证字段后,我收到如下所示的错误。我可以通过设置忽略 SSL 错误http.sslVerify=false,但无法解决其他错误。谢谢。

传输错误

错误日志:

eclipse.buildId=4.4.2.M20150204-1700
 java.version=1.8.0_45
 java.vendor=Oracle Corporation
 BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=tr_TR
 Framework arguments:  -product org.eclipse.epp.package.jee.product
 Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

 org.eclipse.egit.ui
 Error
 Thu Apr 23 12:46:33 EEST 2015
 https://hub.jazz.net/git/***/***: authentication not supported

 org.eclipse.jgit.api.errors.TransportException: https://hub.jazz.net/git/***/***: authentication not supported
     at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:223)
     at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)
     at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:99)
     at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:324) …
Run Code Online (Sandbox Code Playgroud)

git github devops ibm-cloud

3
推荐指数
1
解决办法
3万
查看次数

无法从CursorWindow(Android)读取第0行第1列

我创建了一个类似PlayersonTreate()方法的表,它位于MySQLiteHelper.java中:

String CREATE_PLAYERS_TABLE = "CREATE TABLE Players 
(id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, password TEXT, score INTEGER)";

db.execSQL(CREATE_PLAYERS_TABLE);
Run Code Online (Sandbox Code Playgroud)

我在同一个类中有一个更新方法,如:

public int PlayerUpdate(Player PL) {

    // 1. get reference to writable DB
    SQLiteDatabase db = this.getWritableDatabase();

    // 2. create ContentValues to add key "column"/value
    ContentValues values = new ContentValues();
    values.put("name", PL.getName());
    values.put("password", PL.getPassword());
    values.put("score", PL.getScore());

    // 3. updating row
    int i = db.update(TABLE_Players, // table
            values, // column/value
            KEY_ID + " = ?", // selections
            new String[] { …
Run Code Online (Sandbox Code Playgroud)

database sqlite android

2
推荐指数
1
解决办法
2689
查看次数