我的ColdFusion应用程序有问题.当我尝试登录我的帐户时,它会生成以下错误
JZ0SJ: Metadata accessor information was not found on this database.
Please install the required tables as mentioned in the jConnect documentation.
Run Code Online (Sandbox Code Playgroud)
我正在使用SQL Anywhere 9和jConnect-6_0.任何人都可以帮我这个.
我之前安装的ColdFusion 10多服务器安装已经运行良好.当我创建一个新实例时,通过ColdFusion Administrator,选中"Create Windows Service",一切似乎都顺利; 新实例显示在Administrator中,并且在服务器上创建了新的目录结构,但新实例将无法启动.如果我转到服务器上的Windows服务面板,并尝试手动启动新服务,我会得到:
Windows could not start the ColdFusion 10 Application Server newServer on Local
Computer. For more information, review the System Event Log. If this is a
non-Microsoft service, contact the service vendor and refer to the service
specific error code 2.
Run Code Online (Sandbox Code Playgroud)
Windows系统事件日志包含以下内容:
The ColdFusion Application Server newServer service terminated with non-specific
error. The system cannot find the file specified.
Run Code Online (Sandbox Code Playgroud)
我已经在网络和Adobe网站上搜索了一个解决方案,但空手而归.我很感激任何见解.
提前致谢.
从评论中更新
从命令提示符启动服务我看到此错误:
C:\ColdFusion10\newServer\bin>coldfusion.exe -start -console
ERROR: transport error 202: bind failed: Address already in …Run Code Online (Sandbox Code Playgroud) 我正在尝试copydb在mongodb中使用命令.
当我这样做时,我得到以下异常:
Command 'copydb' failed: access denied; use admin db (response: { "errmsg" : "access denied; use
admin db", "ok" : 0.0 })
Run Code Online (Sandbox Code Playgroud)
我曾尝试以管理员身份登录,但因为我没有使用用户名和密码而失败.
如何在没有用户名和密码的情况下以管理员身份登录?如果我已经拥有权限,为什么需要以管理员身份登录drop?
提前致谢
m_mongoDatabase.RunCommand(new CommandDocument(new BsonElement("copydb", (BsonValue) 1),
new BsonElement("fromdb", (BsonValue) from),
new BsonElement("fromhost", (BsonValue) fromHost),
new BsonElement("todb", (BsonValue) to)));
Run Code Online (Sandbox Code Playgroud) 有没有办法动态替换重音字符,如下所示?
requesón => requeson
Run Code Online (Sandbox Code Playgroud)
我的意思是每个重音(或其他)字符都会被正常字符替换.
这可能使用ColdFusion吗?
我有ColdFusion 9.0.1
将安装ColdFusion 9 Hotfix 4与其一起安装修补程序1,2和3,还是必须单独安装每个修补程序?
谢谢.
我正在测试使用 Web 服务,但出现错误。
这是 Web 服务组件:
<cfcomponent >
<cffunction name="listBooks" access="remote" returntype="string" output="no" >
<cfquery name="getBooks" datasource="cfbookclub" >
SELECT bookID, title, bookDescription, genre
FROM books
ORDER BY title desc
</cfquery>
<cfsavecontent variable="bookList" >
<books>
<cfoutput query="getBooks" >
<book id="#getBooks.bookID#" >
<title>#XMLFormat( getBooks.title )#</title>
<description>#XMLFormat( getBooks.bookDescription )#</description>
<genre>#XMLFormat( getBooks.genre )#</genre>
</book>
</cfoutput>
</books>
</cfsavecontent>
<cfreturn bookList >
</cffunction>
Run Code Online (Sandbox Code Playgroud)
这是消费页面:
<cfinvoke
webservice="http://127.0.0.1/books.cfc?wsdl"
method="listBooks"
returnvariable="rawXMLBookList" >
</cfinvoke>
Run Code Online (Sandbox Code Playgroud)
看起来很简单 - 当我收到初始错误时,我实际上是在尝试传递一个参数“流派”,
Web service parameter name category cannot be found in the provided parameters {genre}. …Run Code Online (Sandbox Code Playgroud) 我一直在使用ColdFusion 9附带的OWASP ESAPI实用程序.ColdFusion的Builtin Enterprise Security API.该encoder工具是非常直接的,我相信我有他们工作的罚款.我的问题在于validator公用事业.
我可以让他们单独上班.也就是说,如果我validator.getValidInput()用"无效"数据调用该方法,它将抛出一个我可以捕获的错误.但是,当我尝试批量调用该validator方法时,我得到一个空指针异常.通过批量我的意思是试图执行验证尝试的群体.这应该通过传递方法一个参数来工作,该参数应该告诉它不要抛出错误,而只是将错误添加到错误列表中.我不能让它在这种模式下工作.我最好的尝试是给我一个空指针异常.validator.getValidInput()ValidationErrorList
这是具体的错误:
java.lang.NullPointerException
Run Code Online (Sandbox Code Playgroud)
使用此堆栈跟踪:
java.lang.NullPointerException at
org.owasp.esapi.reference.DefaultValidator.getValidInput(DefaultValidator.java:238) at
sun.reflect.GeneratedMethodAccessor377.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
coldfusion.runtime.StructBean.invoke(StructBean.java:536) at
coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2393) at
cftest2ecfm989071068.runPage(D:\Web\internet\fboc\test.cfm:19) at
coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at
coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at
cfApplication2ecfc1705903666$funcONREQUEST.runFunction(D:\Web\internet\fboc\Application.cfc:70) at
coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at
coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at
coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at
coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at
coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at
coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491) at
coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:337) at
coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88) at
coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:280) at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:356) at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at
coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) …Run Code Online (Sandbox Code Playgroud) 我在ColdFusion 8中有以下代码
<cfcase value = "envelope, addrfile">
Run Code Online (Sandbox Code Playgroud)
这个工作正常,当值是包络时一切都正确,但是当值为addrfile时,情况不会执行.当我删除信封,然后写
<cfcase value = "addrfile">
Run Code Online (Sandbox Code Playgroud)
案件被执行,一切都是正确的.文档说,我引用:一个cfcase标记可以匹配多个表达式值.为此,请将匹配值与分隔符的默认值分开.例如,以下行匹配"红色","蓝色"或"绿色":
<cfcase value="red,blue,green">
Run Code Online (Sandbox Code Playgroud)
任何人都可以提出一个可能不适合我的原因吗?或者不涉及复制案例中所有代码的解决方法?
大约每月一次,我的 Lucee 应用程序会停止发送电子邮件,并且我会收到管理员的失败任务列表中列出的数千封电子邮件。我可以选择它们,单击“执行”,然后将它们发送出去,但我想以编程方式执行此操作,以便我可以监视失败的电子邮件,然后以编程方式发送它们。有什么办法可以做到这一点吗?在 Adobe ColdFusion 中,我过去只检查坏电子邮件文件夹中的文件,然后将其移动到好电子邮件文件夹中。
是否可以检查 cookie 何时到期?我尝试了以下方法:
首先我设置了三个cookie:
<cfcookie name="test1" value="" expires="10" />
<cfcookie name="test2" value="" expires="never" />
<cfcookie name="test3" value="" expires="now" />
Run Code Online (Sandbox Code Playgroud)
然后在另一个页面上我检查 cookie 数据:
<cfset cookies = getPageContext().getRequest().getCookies()>
<Cfoutput>
<cfloop index="c" array="#cookies#">#c.getName()#:#c.getMaxAge()#<br>
</cfloop>
</Cfoutput>
Run Code Online (Sandbox Code Playgroud)
但是MaxAge返回-1所有 cookie 而不是实际到期日期。我怎样才能得到实际的到期日期?
coldfusion ×9
coldfusion-9 ×3
c# ×1
cfcookie ×1
cfml ×1
coldfusion-8 ×1
email ×1
esapi ×1
hotfix ×1
internals ×1
lucee ×1
mongodb ×1
regex ×1
replace ×1
sybase ×1
sybase-ase ×1
web-services ×1