草庐IT

ambiguities

全部标签

php - "Ambiguous output redirect"是什么意思?

我有一个PHP脚本,我想在执行某些表单操作时调用它。这个命令工作正常:/usr/local/bin/php-qscript.php>/dev/null2>&1&但是当我在命令中添加参数时,一切都出错了:/usr/local/bin/php-qscript.php--var=value>/dev/null2>&1&它返回“不明确的输出重定向”。我读过这个http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean/文章也是如此,据我所知几乎尝试了所有可能的方法,但仍然不知道如何修复它。请帮帮我。

java - 映射结构 : Ambiguous mapping methods found for mapping collection element

我有两种将实体映射到域的方法。RDomainentityToDomain(REntityrEntity)/*thismethodignoressomeofthefieldsinthedomain.*/RDomainentityToDomainLight(REntityrEntity)当我尝试定义实体列表到域的映射方法时,我得到了为映射集合找到的模糊映射方法元素。ListentitiesToDomains(ListrEntities)有没有办法定义用于映射对象集合的方法 最佳答案 正如@Filip所建议的那样,最好这样做:RDomai

java - CDI部署失败:WELD-001414 Bean name is ambiguous

我有一个应用程序,它有多个模块和各种依赖项。当我在Glassfish4上部署应用程序时,出现错误:org.jboss.weld.exceptions.DeploymentException:WELD-001414Beannameisambiguous.NameJerseyClassAnalyzerresolvestobeans:[ManagedBean[classorg.glassfish.jersey.internal.inject.JerseyClassAnalyzer]withqualifiers[@Default@Named@Any],ManagedBean[classorg.

java - Mockito doReturn : ambiguous reference to overloaded definition

我正在尝试将Scala系统移植到Mockito2。有一些使用doReturn的测试用例,现在在Mockito2.18.0中我得到这个错误:Error:(34,5)ambiguousreferencetooverloadeddefinition,bothmethoddoReturninobjectMockitooftype(x$1:Any,x$2:Object*)org.mockito.stubbing.StubberandmethoddoReturninobjectMockitooftype(x$1:Any)org.mockito.stubbing.Stubbermatchargume

java - Caused by : java. lang.IllegalStateException : Ambiguous mapping found. Cannot map 'appController' bean method

大家早上好,我正在处理一个我无法解码的模糊映射...我正在使用Springmvc4.0.6和hibernate4.3.6在tomcat中发起war时出现此错误:ERROR[localhost-startStop-2]:Contextinitializationfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'requestMappingHandlerMapping'definedinclassorg.springframework.web.servlet.con

java - Joda Time : Convert local to UTC ambiguity

我正在尝试使用JodaTime将本地日期转换为UTC.我使用的代码如下所示,效果很好。DatelocalDate=newDate();System.out.println("LocalDate:"+localDate);DateTimeZonetz=DateTimeZone.getDefault();DateutcDate=newDate(tz.convertLocalToUTC(localDate.getTime(),false));System.out.println("UTCDate:"+utcDate);Output:LocalDate:WedMay2911:54:46EEST

java - JDK-9 不允许我使用字符串 : "java.lang.String is ambiguous"?

一周前,我的每个项目都正常工作,但是当我将Eclipse更新到Oxygen版本并安装JDK-9时,事情就变得奇怪了。当我尝试使用字符串时,一段时间后(更像是每次我保存项目时),编译器会针对我项目中的每个字符串向我抛出一个错误。字符串类型被识别为有歧义的类"Thetypejava.lang.Stringisambiguous"所以我尝试导入java.lang.String看看它是否修复了错误:导入后"Thepackagejava.langisaccessiblefrommorethanonemodule:java.base,java.base"惊喜!?它不会:(我尝试在Google和SO

c++ - 转发声明使用 enable_if : ambiguous call 的函数

我在声明一个使用boost::enable_if的函数时遇到了一些麻烦:下面的一段代码给我一个编译器错误://Declarationtemplatevoidfoo(Tt);//Definitiontemplatetypenameboost::enable_if>::typefoo(Tt){}intmain(){foo(12);return0;}编译时,出现“对foo的模糊调用”错误。根据enable_if的定义,'type'typedef在条件为真时对应于void,据我所知,的两个签名foo匹配。为什么编译器认为它们不同,是否有正确的方法来转发声明foo(最好不要重复enable_if

c++ - C++中的继承, "...is an ambiguous base of ..."错误

如“TheC++ProgrammingLanguage3.Edition-BjarneStroustrup”中所写。我们可以使用范围解决方案来防止歧义错误。下面的基本程序,当我在类混合中使用3层范围时,会发生错误。但是当我使用2层时没问题。怎么了?还是像设计问题?错误是;deneme.cpp:Inconstructor‘mix::mix(std::__cxx11::string,int)’:deneme.cpp:45:22:error:‘plane’isanambiguousbaseof‘mix’pervaneli::plane::engine=b;我不想制作钻石模型。我对两个基础(平

c++ - QObject 继承 Ambiguous Base

我有一个简单的类,它在我的程序获得和失去焦点时停止和启动计时器,但它给出了错误,即QObject在每个信号槽连接上都是MyApp的模糊基础。相关代码如下:classMyApp:publicQApplication,publicQObject{Q_OBJECT...}这是我的(凌乱的)Main.cpp:#include#include"qmlapplicationviewer.h"#include#include#include#include#include"timecontrol.h"#include"scorecontrol.h"#include"Retry.h"#include#