小编Jam*_*s Z的帖子

NetBeans 8.2 - Weblogic - Ant构建

当我尝试使用ant在Netbeans中构建我的企业项目时,我得到了以下异常:

警告:注释处理器'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor'支持的源版本'RELEASE_6'小于-source'1.8'注意:创建静态元数据工厂......

注释处理器抛出了未捕获的异常.有关详细信息,请参阅以下堆栈跟踪 java.lang.ClassFormatError:在类文件中不是本机或抽象的方法中的Absent Code属性javax/persistence/PersistenceException

entity我的ejb模块中只有一些类.

java ant netbeans java-ee

7
推荐指数
1
解决办法
205
查看次数

如何将 JSON 数据保存到 Google Firebase 的 Firestore 数据库?

是否可以将 JSON 数据直接保存到 Firebase Firestore?

我尝试保存下面的 json 数据,

数据

[{"id":"1234","name":"Chair","symbol":"CHR"}]
Run Code Online (Sandbox Code Playgroud)

代码:

request({url: 'https://api.example.com/v1/data', json: true}, function (error, response, body) {
        if (!error && response.statusCode === 200) {
            res.send(body);    
            console.log(body);    
        }
        else {
            console.log(response.statusCode + " " + error);
        }
        db.collection('market').doc('price').set(body);

    });
Run Code Online (Sandbox Code Playgroud)

错误

错误:参数“数据”不是有效的文档。Input 不是一个普通的 JavaScript 对象。

解决方法

  1. JSON.parse() 用于正文

    db.collection('market').doc('price').set(JSON.parse(body));
    
    Run Code Online (Sandbox Code Playgroud)
  2. JSON.stringify() 用于正文

    db.collection('market')doc('price').set(JSON.stringify(body));
    
    Run Code Online (Sandbox Code Playgroud)

我仍然收到错误。

json node.js firebase node-request google-cloud-firestore

7
推荐指数
1
解决办法
7413
查看次数

Kafka Zookeeper - Java.net.BindException:地址已在使用中

我的机器上安装了 Kafka 并且运行良好。

然后我安装了 NetBeans,我认为这把事情搞砸了。现在我的动物园管理员没有启动。

安装 netBeans 后,我在运行时遇到错误

缺少 JDK,需要运行一些 netbeans 模块

我使用这篇文章解决了这个问题

现在,当我使用以下命令启动 zookeeper 时:

sudo bin/zookeeper-server-start.sh config/zookeeper.properties
Run Code Online (Sandbox Code Playgroud)

我得到以下回溯:

[2018-01-31 17:30:09,953] INFO Reading configuration from:     config/zookeeper.properties     (org.apache.zookeeper.server.quorum.QuorumPeerConfig)
[2018-01-31 17:30:09,959] INFO autopurge.snapRetainCount set to 3     (org.apache.zookeeper.server.DatadirCleanupManager)
[2018-01-31 17:30:09,959] INFO autopurge.purgeInterval set to 0     (org.apache.zookeeper.server.DatadirCleanupManager)
[2018-01-31 17:30:09,959] INFO Purge task is not scheduled. (org.apache.zookeeper.server.DatadirCleanupManager)
[2018-01-31 17:30:09,959] WARN Either no config or no quorum defined     in config, running  in standalone mode     (org.apache.zookeeper.server.quorum.QuorumPeerMain)
[2018-01-31 17:30:09,979] INFO Reading configuration from:     config/zookeeper.properties     (org.apache.zookeeper.server.quorum.QuorumPeerConfig) …
Run Code Online (Sandbox Code Playgroud)

apache-kafka apache-zookeeper

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

webclient(websocket.js)的ejabberd连接失败

我已经在Ubunut OS上安装了ejabberd.

  1. 配置ejabberd.yml为:

    port: 5280
        ip: "::"
        module: ejabberd_http
        request_handlers:
          "/ws": ejabberd_http_ws
          "/bosh": mod_bosh
          "/a/b/": mod_foo
          "/api": mod_http_api
        web_admin: true
        http_bind: true
        register: true
        captcha: true
    
    Run Code Online (Sandbox Code Playgroud)
  2. Webclient:https://github.com/processone/xmpp-websocket-client

注意:能够使用jabber客户端和spark连接和聊天.

尝试连接webclient作为获取响应,如下所示:

     client Request: <?xml version="1.0"?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0"
 xmlns="jabber:client" to="localhost" xml:lang="en"
 xmlns:xml="http://www.w3.org/XML/1998/namespace" >

     Server Response: <stream:stream id='14754768778694635521' version='1.0' xml:lang='en'
 xmlns:stream='http://etherx.jabber.org/streams' from='localhost'
 xmlns='jabber:client'>

     <stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>X-OAUTH2</mechanism></mechanisms></stream:features>

     Client request: <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>

     Server Response: <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>bm9uY2U9IjE2NDY5ODExMTQ0NDkyMDQyMjQxIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>

     Client Request: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9Im1hbm9qIixyZWFsbT0iIixub25jZT0iMTY0Njk4MTExNDQ0OTIwNDIyNDEiLGNub25jZT0iZDQxZDhjZDk4ZjAwYjIwNGU5ODAwOTk4ZWNmODQyN2UiLG5jPSIwMDAwMDAwMSIscW9wPSJhdXRoIixkaWdlc3QtdXJpPSJ4bXBwL2xvY2FsaG9zdCIscmVzcG9uc2U9ImJhMjhjNTQwYzU5ZTczZGE1NGY1MmU2YjYxYTFhMjlmIixjaGFyc2V0PSJ1dGYtOCI=</response> 

     Server Response: <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD0xMzc3MzJjMzc3M2FhMjIxNzg0Y2RmYTIxY2RkNzZjMQ==</challenge>

     CR: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>

     SR <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>

     CR: <?xml version="1.0"?><stream:stream …
Run Code Online (Sandbox Code Playgroud)

xmpp ejabberd websocket strophe

7
推荐指数
1
解决办法
158
查看次数

Cassandra 安装 64 位检查失败。在 Windows 10 上重新运行以从 32 位获取版本

我已经在 Windows 10 中安装了 datastax-ddc-64bit-3.8.0 并尝试通过运行 bin 文件夹中的 cassandra.bat 来启动该服务。该服务未启动并失败并显示以下消息。

Detected powershell execution permissions.  Running with enhanced startup scripts.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*

    WARNING!  Automatic page file configuration detected.
    It is recommended that you disable swap when running Cassandra
    for performance and stability reasons.

*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
Failed 64-bit check. Re-running to get version from 32-bit
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*

    WARNING! Detected a power profile other than High Performance.
    Performance of this node will suffer.
    Modify conf\cassandra.env.ps1 to suppress this warning.

*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
Cassandra 3.0 …
Run Code Online (Sandbox Code Playgroud)

cassandra cassandra-3.0

7
推荐指数
2
解决办法
2583
查看次数

亚马逊Sagemaker中的内存错误

在预处理2 gb的s3中存储的数据时,在Amazon Sagemaker中发生内存错误。加载数据没有问题。数据量为700万行和64列。一种热编码也是不可能的。这样做会导致内存错误。笔记本实例为ml.t2.medium。如何解决这个问题?

amazon-sagemaker

7
推荐指数
2
解决办法
2718
查看次数

在 iphone11 Pro Max 上运行 pod install 时出错启动应用程序

我完成了我的 flutter 应用程序,我想在 ios 设备上测试它,所以我使用了一台 mac 笔记本电脑,我做了所有的安装,但是当我执行“flutter run”命令时,我收到了这个错误 Launching lib/main.dart on iPhone 11 Pro Max 处于调试模式...

 Running pod install...                                              4,0s
 CocoaPods' output:
 ?
  Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Finding Podfile changes
  A flutter_barcode_scanner
  A geolocator
  A google_api_availability
  A google_maps_flutter
  A location
  A location_permissions
  A shared_preferences
  A shared_preferences_macos
  A shared_preferences_web
  - Flutter

Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `flutter_barcode_scanner` from `.symlinks/plugins/flutter_barcode_scanner/ios` …
Run Code Online (Sandbox Code Playgroud)

ios dart flutter

7
推荐指数
2
解决办法
8954
查看次数

无法删除 Azure 中的目录

我在 Azure 中有一个文件共享,其中包含文件夹,而文件夹内又包含许多文件夹。我试图通过右键单击该文件夹来手动删除该文件夹,该文件夹内有很多文件,并且显示

删除目录失败。错误:指定的目录不为空。

怎样才能删除该目录呢?需要删除的目录中有数千个文件,并且无法手动删除每个文件以删除该目录

file azure azure-storage azure-files azure-storage-files

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

将包从“Microsoft.Extensions.Configuration.AzureKeyVault”更改为“Azure.Extensions.AspNetCore.Configuration.Secrets”

我正在使用 nuget Microsoft.Extensions.Configuration.AzureKeyVault,并且在 中使用下面的 asp.net core 3.1 代码Program.cs,

我正在为 azure keyVault 进行自定义证书身份验证。还使用自定义秘密管理。

   public static IHostBuilder CreateHostBuilder(string[] args) =>
        Host.CreateDefaultBuilder(args)
            .ConfigureAppConfiguration((context, config) =>
            {
                    config.AddAzureKeyVault(new AzureKeyVaultConfigurationOptions
                    {
                        Vault = "key vault url",
                        ReloadInterval = TimeSpan.FromSeconds(15),
                        //authenticate with custom certificate
                        Client = new KeyVaultClient(CustomCertificateAuthenticationCallback),
                        Manager = new CustomKeyVaultSecretManager()
                    });
                }
            })
            .ConfigureWebHostDefaults(webBuilder =>
            {
                webBuilder.UseStartup<Startup>();
            }); 
Run Code Online (Sandbox Code Playgroud)

该软件包Microsoft.Extensions.Configuration.AzureKeyVault已被弃用,我已卸载该软件包并安装了更新的软件包Azure.Extensions.AspNetCore.Configuration.Secrets。切换到这个包后,我无法弄清楚如何使用custom验证以及如何通过keyvault url

azure-keyvault asp.net-core-3.1

7
推荐指数
1
解决办法
5504
查看次数

只能在草稿应用程序上创建状态为草稿的版本。如何告诉 Azure DevOps 将版本标记为“草稿”?

我有

  1. 在Android Studio中开发了一个Android应用程序框架

  2. Azure DevOps 中的构建管道

  3. 我的 Google 开发控制台上此应用程序的内部测试轨道

  4. 通过 Google Dev Console 的 GUI 手动上传通过 Android Studio 生成的签名 .aab 包到内部测试轨道

  5. 为赛道设置的测试人员已经能够在他们的设备上安装该应用程序并进行测试

上面的步骤工作正常。

然后我实施了以下

  1. 使用编辑器(不是在 YAML 中)在 Azure DevOps 中创建发布管道

  2. 在此版本中,已使用Google Play Release Bundle 插件(参见下图),其 Track 属性根据可用下拉值设置为“内部测试”

  3. 在此版本之后添加了部署阶段(参见下图)。

但是,当发布管道运行时,我在标题中收到错误(只能在草稿应用程序上创建状态为草稿的发布。),该错误在下面的屏幕截图中也可见。

我读了下面的帖子

还有如下文章/文档

我怀疑要消除错误,我需要以某种方式创建一个版本,以便

isDraft = true;
Run Code Online (Sandbox Code Playgroud)

这是一个草稿版本,在部署时不会被 Azure Dev Console 内部测试轨道拒绝,但我对它有点不知所措,因为我本来期望 Google Play Release Bundle 插件为我处理这个细节,但是某些事情显然出了问题,或者我不清楚,并且我无法弄清楚它是什么或如何以最好/最简单的方式解决这个问题。

01-部署失败

02-发布-管道-工件

03-发布-管道-任务-AgentJob

04-发布-管道-任务-GooglePlayReleaseToInternalTrack

azure google-play devops azure-pipelines-release-pipeline google-play-console

7
推荐指数
0
解决办法
4098
查看次数