java中505是什么错误(jsp运行时错误,代码505)
老铁们,大家好,相信还有很多朋友对于java中505是什么错误和jsp运行时错误,代码505的相关问题不太懂,没关系,今天就由我来为大家分享分享java中505是什么错误以及jsp运行时错误,代码505的问题,文章篇幅可能偏长,希望可以帮助到大家,下面一起来看看吧!
Java调用URL错误,报505
1.启用了 HTTP 1.1,则可能出现此类错误。要禁用 HTTP 1.1,请单击“工具”按钮,单击“Internet选项”,然后单击“高级”选项卡。在“设置”下,滚动到“HTTP 1.1设置”部分,清除“使用 HTTP 1.1”复选框。如果第三方产品干扰 Internet Explorer,则可能出现此类错误。请尝试关闭所有程序,然后重新尝试访问该网页。
2.大多数浏览器都默认Web服务器支持 1.x的版本的 HTTP协议。但实际上如 0.9版今天已很少使用,关键是因为和新版本的协议比起来它们的安全性和性能都差得多。所以,如果您在浏览器中看到这个错误,可以升级您的Web服务器软件。如果版本 1.x的请求失败,很可能是因为您的 Web服务器不是很好地支持 1.x协议版本,而不是根本不支持。
java发送邮件时出现的错误,端口什么的都开了
今天在做内网邮箱发送功能时报如下错误:
554 Relay rejected for policy reasons.
测试时给内容邮箱发送正常,给126发送就报如上错误,后来查看是权限限制的问题。
在网上查找到邮件发送时的常见问题总结,备注一下。
介绍邮件系统常见的错误代码及解释,还有客户端报错相关信息
按照下列“Q”代表问题,“A”代表解答。
Q:the server says:550 relaying mail to<> is not allowed
Q:The server says:550<>... relaying denied
Q:the server says:550 5.7.1 relaying not permitted:
A:使用某些Smtp服务器时,限制了收件人的地址,只能换一个Smtp服务器。
Q:The server says:550<>:local user only
Q:The server says:550<>:Invalid User
Q:The server says:550 Invalid recipient
A:使用163.NET,163.com,yeah.Net和netease.com之类的Smtp服务器时,只能用自身的信箱发信,所以要在Outlook Express的“帐户属性”中的“个人信息”里面填写正确的邮件地址。
Q:the server says:551 delivery not allowed to non-local recipient
Q:The server says:553 Relay restriction.
Q:The server says:553 From<>, message blocked.
Q:The server says:553 sorry,you are not allow to use this SMTP to relay your eami
Q:The server says:553 sorry, that domain isn't in my list of allowed rcpthosts
A:使用21cn.com,china.com,371.net,sina.com等大多数信箱的smtp服务器时,只能用自身的信箱发信,所以要在Outlook Express的“帐户属性”中的“个人信息”里面填写正确的邮件地址。
Q:The server says:505 client was not authenticated
Q:The server says:553 authentication is required to send mail as<>
A:使用263.net和sohu.com的Smtp服务器时,不但要用自身的邮箱发信,而且要加入身份验证,所以即要在“个人信息”中填写正确邮箱地址,又要选中“SMTP服务器需要认证”。
Q:The server says:535 Error:authenticatin failed
Q:The server says:535 Authentication unsuccessful
Q:The server says:452 Insufficient system storage
A:在使用Esmtp认证的过程中出错,检查一下Esmtp设置,多试几次。
Q:The server says:553<>...domain name required
Q:The server says:550 Unable to relay for...
A:多出现在用Wingate代理服务器发送邮件时。虽然在Wingate中“POP3邮箱帐号”要使用“用户名#POP3地址”的格式,但在“帐户属性”中的“个人信息”中还是要填写一般的格式。
Q:The server says:553 mailbox name not allowed
A:收件人邮箱地址不允许,需检查收件人地址是否正确。
Q:the server says:553 sorry, your envelop sender is in my badmailfrom list
A:服务器限制了收件人的地址,只能换一个smtp服务器发信。
Q:the server says:554 Transaction failed
Q:The server says:451 Requested action aborted,errno=28
A:传输失败,检查网络问题。
Q:the server says:503 error:needmail command
Q:The server says:503 need mail before RCPT.
Q:The server says:503 Bad sequence of commands
A:消息命令顺序出错,一般出现在其他错误之后,先检查之前出现的错误提示。
Q:The Server says:501 syntax.helo hostname
Q:The server says:501 Invalid domain name
Q:The server says:502 unimplemented command
Q:the server says:503 5.0.0 polite people say HELO first
Q:The server says:533 relay restriction
Q:The server says:544<>:Recipient address rejected: Relay access denied
A:传输中的语法错误,原因不明。
连接服务器错误,请检查您的网络设置。如果安装防火墙/杀毒软件,请检查防火墙/杀毒软件是否允许DreamMail程序访问 Internet。
账号“xxx”发送邮件错误,错误代码:554;错误信息:554 Relay rejected for policy reasons.(检查邮件系统是否有发送外网邮箱的权限)
附相关资料
SMTP有一组固定的响应代码,表示邮件服务器对于传送邮件要求的响应状况。其中 421、450、451、452、550、551、552、553、554等 9组代码表示您要求邮件服务器执行的动作不成功。
354
Start Mail input
开始传输邮件正文
421
<domain> Service not available, closing transmission channel
括号内的主机无法提供正常服务,关闭传送管道,邮件将滞留在主机上
440
邮件址错误
445
Server Rejected
被封锁
450
Client host rejected, Cannot resolve PTR
Temporary Process Error
Resource temporarily unaviable,please try again later
Requested mail action not taken: mailbox unavailable
无法 IP反查
Requested mail action not taken: mailbox unavailable
所要求的邮件动作无法执行:邮件信箱无法提供服务,邮件将滞留在主机上
451
Domain of sender address sender@mail.com.tw does not resolve
qq trouble creating files in queue(#4.3.0)
queuename: Cannot create"qfCAA21081" in"/var/spool/mqueue"(euid=0): No space left on device
Requested action aborted, errno=28.
无法解析寄件者邮件地址
Requested action aborted: local error in processing
要求动作中断:本地端错误
Requested action aborted,errno=28
传送失败,检查网络问题。
452
Message for would exceed mailbox quota
Requested action not taken: insufficient system storage
要求动作无法执行:系统空间不足
Insufficient system storage
在使用Esmtp认证的过程中出错,检查一下Esmtp设置,多试几次。
454
Client was not authenticated
安全因素,被封锁
472
sender@mail.com.tw no DNS A-data returned
无法 IP反查
501
Domain of sender address sender@mail.com.tw does not exist
无法 IP反查
Mailbox not found
5.1.1... User unknown
无此使用者
Syntax error,parameters in command"RCPT TO:min@laohuyatse.com.tw>"unrecognized or missing
no local part
Syntax error in recipient:
"@" or"." expected after"CC"
"@" or"." expected after"fau":
email格式l错误
503
Either sender or receiver must be local account.
安全因素,权限不足
CAT@MAIL.FORTEK.COM.TW
无此使用者,不是本主机转送信件的使用者
error:needmail command
need mail before RCPT
Bad sequence of commands
消息命令顺序出错,一般出现在其他错误之后,先检查之前出现的错误提示。
5.0.0 polite people say HELO first
传输中的语法错误,原因不明
505
client was not authenticated
使用263.net和sohu.com的Smtp服务器时,不但要用自身的邮箱发信,而且要加入身份验证,所以即要在"个人信息"中填写正确邮箱地址,又要选中"SMTP服务器需要认证"。
521
This system is configured to reject mail from 211.20.70.148
安全因素,被封锁
535
Error:authenticatin failed
Authentication unsuccessful
在使用Esmtp认证的过程中出错,检查一下Esmtp设置,多试几次。
550
unknown user
User unknown
Invalid User
Recipient unknown
Mailbox disabled for this recipient
Unknown local part
Invalid recipient
Unable to relay for no such user
Recipient unknown
This account is not allowed
recipient unknown
No such mail drop defined,user disabled
I don't know
Relaying is prohibited
Relaying denied
relaying mail to<> is not allowed
<>... relaying denied
5.7.1 relaying not permitted:
REJECT SMTP Protocol Returned a Permanent Error 550 Forwarding percent hack is not permitted
Requested action not taken: mailbox unavailable
无此使用者,所要求动作无法执行:信箱不存在,邮件将退回给寄件者,或者限制了收件人的地址,只能换一个Smtp服务器。
System is busy
邮件系统错误
Subj similar too many!!
太多同主题信件
Relaying denied. IP name lookup failed
IP name lookup failed
DNS FAILURE
cannot route to sender address
无法 IP反查
Relaying denied
Mailbox unavailable: This site may not be used as a relay agent.
无法转寄
<>:local user only
<>:Invalid User
Invalid recipient
使用163.net,163.com,yeah.net和netease.com之类的Smtp服务器时,只能用自身的信箱发信,所以要在Outlook Express的"帐户属性"中的"个人信息"里面填写正确的邮件地址。
Unable to relay for...
多出现在用Wingate代理服务器发送邮件时。虽然在Wingate中"POP3邮箱帐号"要使用"用户名#POP3地址"的格式,但在"帐户属性"中的"个人信息"中还是要填写一般的格式。
551
we do not relay...
delivery not allowed to non-local recipient
无法转寄,使用21cn.com,china.com,371.net,sina.com等大多数信箱的smtp服务器时,只能用自身的信箱发信,所以要在Outlook Express的"帐户属性"中的"个人信息"里面填写正确的邮件地址。
User not local; please try<forward-path>
邮件服务器知道使用者不属于本地端,将尝试括号内的转送路径
552
Requested mail action aborted: exceeded storage allocation
所要求的动作中断:超出所分配的储存空间,邮件将退回给寄件者
Sorry, we don't allow mail from your host.
被封锁
553
sorry, that domain isn't in my list of allowed rcpthosts
mailbox name not allowed
邮件地址错误
Requested action not taken: mailbox name not allowed
sorry, your envelop sender is in my badmailfrom list
所要求的动作未执行:信箱不允许该动作执行,或者服务器限制了收件人的地址,只能换一个smtp服务器发信。
Relay restriction.
From<>, message blocked.
sorry,you are not allow to use this SMTP to relay your eami
sorry, that domain isn't in my list of allowed rcpthosts
使用21cn.com,china.com,371.net,sina.com等大多数信箱的smtp服务器时,只能用自身的信箱发信,所以要在Outlook Express的"帐户属性"中的"个人信息"里面填写正确的邮件地址。
authentication is required to send mail as<>
使用263.net和sohu.com的Smtp服务器时,不但要用自身的邮箱发信,而且要加入身份验证,所以即要在"个人信息"中填写正确邮箱地址,又要选中"SMTP服务器需要认证"。
<>...domain name required
多出现在用Wingate代理服务器发送邮件时。虽然在Wingate中"POP3邮箱帐号"要使用"用户名#POP3地址"的格式,但在"帐户属性"中的"个人信息"中还是要填写一般的格式。
554
delivery error: dd This user doesn't have a yahoo.com account
delivery error: dd Sorry, your message to xxxxyahoo.com cannot be delivered. This account is over quota.
无此使用者
Transaction failed
传送失败,检查网络问题。
571
we don't accept junk mail(mail.sysnet.net.tw)
无效的寄件者
java项目出现500错误是什么原因
原因可能为:
1、运行的用户数过多,对服务器造成的压力过大,服务器无法响应,则报HTTP500错误。减小用户数或者场景持续时间,问题得到解决。
2、该做关联的地方没有去做关联,则报HTTP500错误。进行手工或者自动关联,问题得到解决。
3、录制时请求的页面、图片等,在回放的时候服务器找不到,则报HTTP500错误,若该页面无关紧要,则可以在脚本中注释掉,问题将会得到解决。例如:有验证码的情况下,尽管测试时已经屏蔽了,但是录制的时候提交了请求,但回放的时候不存在响应。
4、参数化时的取值有问题,则报HTTP500错误。可将参数化列表中的数值,拿到实际应用系统中进行测试,可排除问题。
5、更换了应用服务器(中间件的更换,如tomcat、websphere、jboss等),还是利用原先录制的脚本去运行,则很可能报HTTP500错误。因为各种应用服务器处理的机制不一样,所录制的脚本也不一样,解决办法只有重新录制脚本。
6、Windows xp2与ISS组件不兼容,则有可能导致HTTP500错误。对ISS组件进行调整后问题解决。
7、系统开发程序写的有问题,则报HTTP500错误。例如有些指针问题没有处理好的,有空指针情况的存在。修改程序后问题解决。
8、如果测试中所进行的操作需要向数据库中插入数据,若大数据量的情况下导致数据库中表空间已满,或缓冲池较小无法满足数据的存取等,都有可能导致HTTP500错误。调整数据库、修改连接池大小,问题解决。
500错误出现的原因太多了,对于我来说,出现500错误很都情况下都是代码里有些关联没有做,然后导致出错,当然还有一小部分是有时候不注意,服务器开的时间过长,导致服务器崩溃,总之,很多地方都需要注意
jsp运行时错误,代码505
控制客户端访问是开发一个基于B/S的架构的系统的开发者必须考虑的问题。JSP或SERVLET规范的基于配置文件的安全策略对资源的控制是以文件为单位的,即只可以定义某个视图全部可以或全部不能被访问。一个比较复杂的系统往往要要求对视图的一部分(如JSP页面里的一个按钮)提供访问控制,只允许被某种角色的用户访问。如果采用可编程的安全策略,因为对用户角色和操作的定义在开发时不能定义,而且这种策略加大了程序员的工作量,它可能不是一种好的办法。
我采用定制标签库和和配置文件来解决这个问题:把要权限控制的JSP页面元素如BUTTON,作为标签的内容。为受保护的内容起一个唯一的名称,把这个名称作为标签的一个属性。某个角色对某个页面元素或一组页面元素是否有权限,在XML配置文件中描述。
例如,下面的JSP页面有“详细”和“修改”两个按钮。
<%@ taglib uri="http://mytag" prefix="custTag"%>
<html>
<head>
<title>test</title>
</head>
<body>
<form name="form1">
<table width="600" border="0" cellspacing="0" cellpadding="2">
<tr>
<td>
<custTag:JspSecurity elementName="employeedetail">
<input type="button" name="detail" value="详细">
</custTag:JspSecurity>
<custTag:JspSecurity elementName="employeemodify">
<input type="button" name="modify" value="修改">
</custTag:JspSecurity>
</td>
</tr>
</table>
<br>
</form>
</body>
下面XML配置文件内容表示对角色为common的用户,只对名为employeedetail的页面元素即“详细”按钮有权限,对角色为“admin”的用户,对名为employeedetail和employeemodify的页面元素即两个按钮都有权限。
<?xml version="1.0" encoding="GB2312"?>
<security>
<htmlElement name="employeedetail">
<roleName name="common"/>
<roleName name="admin"/>
</htmlElement>
<htmlElement name="employeemodify">
<roleName name="admin"/>
</htmlElement>
</security>
定制标签类JspSecurityTag继承了BodyTagSupport类。BodyTagSupport有一个变量bodyContent指向起始标志和结束标志之间的内容。JspSecurityTag的私有静态变量roleList保存从XML文件中取到角色和页面元素的对应集合,私有变量ElementName对应页面元素的名称。当解析该定制标签时,首先先取到页面元素的名称,再取到当前用户的角色,如果角色有该页面元素的权限,就显示标签正文(即页面元素),否则不显示。
Pagekage com.presentation.viewhelper.JspSecurityTag;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.util.*;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
import org.w3c.dom.*;
import java.io.*;
太多了,发不完,自己去看吧
关于java中505是什么错误的内容到此结束,希望对大家有所帮助。