问题列表 - 第279845页

在 Jenkins 中使用声明式 linter

我一直在尝试使用Command-line Pipeline Linter

我可以在服务器本地使用这个声明式 linter 吗?

我尝试运行:

declarative-linter < Jenkinsfile
Run Code Online (Sandbox Code Playgroud)

并得到:

-bash: declarative-linter: command not found
Run Code Online (Sandbox Code Playgroud)

我需要安装此命令还是应该在安装管道插件后自动安装?

请指教。

jenkins jenkins-cli jenkins-pipeline

6
推荐指数
1
解决办法
2691
查看次数

当用户离线使用Angular PWA时如何处理身份验证?

我在PWA中有一个角度应用程序。我主要关心的是允许用户离线使用应用程序而无需连接互联网。问题是:如何使用IdentityServerOIDC来实现?我正在考虑以下解决方案:假设我有一个有效的“刷新令牌”,那么只要Internet连接处于脱机状态,我就会认为该用户仍在身份验证中。当然,这意味着用户已经在“联机”时登录。

处理“登录”时仍“脱机”的任何建议。例如,Windows OS使用某种“本地存储”来进行身份验证用户,即使他们没有Internet连接也是如此。任何建议,赞赏

authentication progressive-web-apps identityserver4 angular

6
推荐指数
1
解决办法
1036
查看次数

使用 KUBE_PING 缩小后在 Wildfly 中重复警告消息

我正在尝试使用 KUBE_PING JGroups 协议在 Kubernetes 上以 HA Full 模式运行 Wildfly。一切正常,我可以扩展集群,节点可以毫无问题地相互识别。

当我尝试缩小集群时会出现问题。ActiveMQ Artemis 不断抱怨它无法连接到断开连接的节点,即使 JGroups 已确认旧节点已离开集群。

我想知道我在 JGroups 配置中可能做错了什么。我附上了一些日志消息,以及我的 JGroups 配置KUBE_PING

为了确保我提供了尽可能多的信息,我正在运行最新的 Wildfly 官方docker映像15.0.1.Final,它在 JDK 11 上运行。

在此先感谢您的帮助!

编辑:修正错别字

JGroups 确认节点断开连接

wildfly-kube 12:48:36,514 INFO  [org.apache.activemq.artemis.core.server] (Thread-22 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$5@10f88645)) AMQ221027: Bridge ClusterConnectionBridge@379d51e3 [name=$.artemis.internal.sf.my-cluster.7ee91868-337b-11e9-9849-ce422226aad5, queue=QueueImpl[name=$.artemis.internal.sf.my-cluster.7ee91868-337b-11e9-9849-ce422226aad5, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUUID=314721ae-337b-11e9-9cfa-0e8a9828b1cb], temp=false]@195607a8 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@379d51e3 [name=$.artemis.internal.sf.my-cluster.7ee91868-337b-11e9-9849-ce422226aad5, queue=QueueImpl[name=$.artemis.internal.sf.my-cluster.7ee91868-337b-11e9-9849-ce422226aad5, postOffice=PostOfficeImpl [server=ActiveMQServerImpl::serverUUID=314721ae-337b-11e9-9cfa-0e8a9828b1cb], temp=false]@195607a8 targetConnector=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=http-connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=http-acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=8080&host=100-116-0-4], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@1699294977[nodeUUID=314721ae-337b-11e9-9cfa-0e8a9828b1cb, connector=TransportConfiguration(name=http-connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=http-acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=8080&host=100-122-0-6, address=jms, server=ActiveMQServerImpl::serverUUID=314721ae-337b-11e9-9cfa-0e8a9828b1cb])) [initialConnectors=[TransportConfiguration(name=http-connector, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEndpoint=http-acceptor&activemqServerName=default&httpUpgradeEnabled=true&port=8080&host=100-116-0-4], discoveryGroupConfiguration=null]] is connected
wildfly-kube-b6f69fb9-b2hd5 wildfly-kube 12:48:38,905 WARN  [org.apache.activemq.artemis.core.server] (Thread-5 …
Run Code Online (Sandbox Code Playgroud)

jgroups wildfly kubernetes activemq-artemis

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

在此期间发送了太多数据,并已在 Application Insights 中删除

使用 Application Insight 进行日志记录时,我收到以下跟踪消息“在此期间发送了太多数据,为了调试器响应而将其删除”。

我真的很想看到所有数据(总共 22 个日志条目,其中大约显示 8 个,其余的被删除)

关于如何配置这个有什么想法吗?

azure azure-application-insights

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

TLS 1. 2 客户端和服务器无法通信,因为它们不具备通用算法

我对 TLS 1.2 有疑问。如果我在客户端计算机中启用 tls1.0,它可以工作,但不建议这样做。

例外是 - 客户端和服务器无法通信,因为它们不具备通用算法System.ComponentModel.Win32Exception (0x80004005):客户端和服务器无法通信,因为它们不具备通用算法。

我的应用程序的目标框架是.NET 4.6.2。

.net c# windows tls1.2

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

更改 Bootstrap 按钮组属性

我有一个来自 Bootstrap 的按钮组:

<div class="btn-group btn-group-toggle" data-toggle="buttons">
            <label class="btn btn-secondary active">
              <input type="radio" name="options" id="option1" autocomplete="off" checked> Active
            </label>
            <label class="btn btn-secondary">
              <input type="radio" name="options" id="option2" autocomplete="off"> Radio
            </label>
            <label class="btn btn-secondary">
              <input type="radio" name="options" id="option3" autocomplete="off"> Radio
            </label>
      </div>
Run Code Online (Sandbox Code Playgroud)

也许它是基本的,但是,我正在尝试改变:

  1. 选中/未选中的背景颜色
  2. 文本 - 字体/颜色

没有任何效果。像这样一个: Bootstrap 4: Buttongroup - 更改活动颜色

html css twitter-bootstrap

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

重复条目异常:Spring Hibernate/JPA 级联保存多对一

它是一个弹簧应用程序(没有弹簧靴)。我使用的数据库是 MySQL。我遇到的问题是保存实体时,Driver它有两个多对一的关系CarrierLocation

我想要做的是,当我保存 Driver 时。驱动程序连同位置和运营商被持久化到数据库中。我遇到的问题是尝试保存时。我收到重复的密钥违规

堆栈跟踪:

org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
WARN: SQL Error: 1062, SQLState: 23000
Feb 18, 2019 1:25:42 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: Duplicate entry '910327' for key 'UK_lheij6i9eldhfhyu9j1q5fjls'
Exception in thread "main" org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [UK_lheij6i9eldhfhyu9j1q5fjls]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
    at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:296)
    at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:253)
    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)
    at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)
    at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)
    at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)
    at …
Run Code Online (Sandbox Code Playgroud)

java spring hibernate jpa

4
推荐指数
1
解决办法
8571
查看次数

如何修复 behat 脚本中的 behat 'DMore\ChromeDriver\StreamReadException'

我正在执行我的 behat 脚本并收到以下异常:

/vendor/dmore/chrome-mink-driver/src/DevToolsConnection.php 中的 DMore\ChromeDriver\StreamReadException

我在本地和 Acquia 管道中遇到以下异常。奇怪的是,此异常并非每次都出现,而是每次出现在不同的步骤定义中。

@smoke
Feature: Test SEARCH box
  @javascript @api @errors
  Scenario: Test For the SEARCH box                                                                                     
    Given I am on "/"
                                                                                                   # Drupal\DrupalExtension\Context\MinkContext::visit()
DMore\ChromeDriver\StreamReadException in /<project_folder>/vendor/dmore/chrome-mink-driver/src/DevToolsConnection.php
Run Code Online (Sandbox Code Playgroud)

php drupal-8 behat

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

房间日历类型转换器 (Kotlin)

我正在尝试使用以下方法在我的房间数据库中保留时间戳TypeConverter

class Converters {

    @TypeConverter
    fun fromTimestamp(value: Long?): Calendar? {

        if(value == null) return null

        val cal = GregorianCalendar()
        cal.timeInMillis = value
        return cal
    }

    @TypeConverter
    fun toTimestamp(timestamp: Calendar?): Long? {

        if(timestamp == null) return null

        return timestamp.timeInMillis
    }
}
Run Code Online (Sandbox Code Playgroud)

我的两个实体包括以下列:

@ColumnInfo(name = "timestamp")
val timestamp: Calendar?,
Run Code Online (Sandbox Code Playgroud)

但是在尝试构建项目时出现编译错误 - 在使用Date TypeConverter开发人员参考指南中的示例时我没有遇到任何问题。

我无法看到实际的错误是什么,因为如果与 Room 相关的代码有问题,我只会收到一堆数据绑定“找不到符号”错误。

sqlite typeconverter kotlin android-room android-architecture-components

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

Squid 4.5 的基本身份验证 - 未找到 /usr/lib64/squid/basic_ncsa_auth 文件

我有centos 7.6并在上面安装了squid 4.5。

sudo yum -y install squid
Run Code Online (Sandbox Code Playgroud)

我按照此链接进行Basic Authentication了.
没有身份验证鱿鱼工作正常。
这是squid.conf添加部分后的文件# Basic Authentication

#
# Recommended minimum configuration:
#

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 0.0.0.1-0.255.255.255  # RFC 1122 "this" network (LAN)
acl localnet src 10.0.0.0/8     # RFC 1918 local private network (LAN)
acl localnet src 100.64.0.0/10      # RFC 6598 shared …
Run Code Online (Sandbox Code Playgroud)

squid basic-authentication centos7.6

6
推荐指数
2
解决办法
4326
查看次数