我将如何解析Java类文件常量池?(How would I go about parsing the Java class file constant pool?)
根据https://en.wikipedia.org/wiki/Java_class_file#General_layout - 类文件的Java常量池在文件中开始10个字节。
到目前为止,我已经能够在此之前解析所有内容(魔术来检查它是否是类文件,主要/次要版本,常量池大小)但我仍然不明白如何解析常量池。 比如,有指定方法引用和其他东西的操作码吗?
有没有什么方法可以在以十六进制表示文本之前引用每个十六进制值,以找出以下值是什么?
我应该通过NOP(0x00)分割每组条目然后解析不是文本值的每个字节吗?
According to https://en.wikipedia.org/wiki/Java_class_file#General_layout - the Java constant pool of a class file begins 10 bytes into the file.
So far, I've been able to parse everything before that (magic to check if it's a classfile, major/minor versions, constant pool size) but I still don't understand exactly how to parse the constant pool. Like, are there opcodes for specifying method refs and other things?
Is there any way I can reference each hex value before text is represented in hex to find out what the following value is?
Should I go about by splitting each set of entries by NOPs (0x00) and then parsing each byte that isn't a text value?
For example, how can I work out exactly what each of these values represents?
原文:https://stackoverflow.com/questions/32255023
最满意答案
我最终发现了这个问题。 看来,我需要IIS_USRS和IUSR帐户有读取权限。 我敢肯定,在Vista中我只有IIS_USRS帐户。
I ended up finding the problem. It seems that i need the IIS_USRS & IUSR accounts to have read access. I'm sure in vista i only had the IIS_USRS account.
相关问答
更多-
我最终发现了这个问题。 看来,我需要IIS_USRS和IUSR帐户有读取权限。 我敢肯定,在Vista中我只有IIS_USRS帐户。 I ended up finding the problem. It seems that i need the IIS_USRS & IUSR accounts to have read access. I'm sure in vista i only had the IIS_USRS account.
-
如何使用IIS 7.5压缩ASP.NET MVC中的Json结果(How do I compress a Json result from ASP.NET MVC with IIS 7.5)[2023-02-10]
从IIS 7.5升级到IIS 8.5使用Hawk身份验证中断OData?(Upgrade from IIS 7.5 to IIS 8.5 breaks OData with Hawk Authentication?)[2022-09-04]
这是一个更深层次的问题。 https://github.com/thinktecture/Thinktecture.IdentityModel/issues/79 It was a deeper problem in the package. https://github.com/thinktecture/Thinktecture.IdentityModel/issues/79IIS 7.5 Windows +匿名身份验证间歇性地工作(IIS 7.5 Windows + Anonymous Authentication works intermittently)[2024-03-30]
所以事实证明这是由于web.config的httpErrors部分使用不当造成的... 在IIS7.5上部署MVC4应用程序(Deploying MVC4 App on IIS7.5)[2021-09-25]
解决方案是在IIS中使用虚拟目录。 如果它不起作用,请让Visual Studio配置Web服务器本身。 看看这个很好的一步一步的文章http://blogs.msdn.com/b/rickandy/archive/2011/04/22/test-you-asp-net-mvc-or-webforms-application-on-iis- 7合30 seconds.aspx Solution is to use Virtual Directory in IIS. If it does not work, ...MVC 4 / IIS 7.5 - 提示Windows身份验证凭据(MVC 4 / IIS 7.5 - Prompting for windows authentication credentials)[2022-10-02]
您的浏览器配置可能会出现此问题。 默认情况下,浏览器不允许所有站点使用NTLM。 IE只允许Intranet区域中的站点使用NTLM进行身份验证, 而 Chrome 似乎已经复制了该行为。 因此,要使您的站点正常工作,请转到Internet Explorer中的“Internet选项”,并将您的域添加到Intranet站点。 The issue is likely with your browser configuration. Browsers don't allow all sites to use N ...尝试在IIS 7.5中为该网站禁用匿名身份验证。 打开IIS控制台。 选择网站。 双击“身份验证” 确保禁用“匿名身份验证” 只应为您的目的启用“Windows身份验证”。 这样做的原因是浏览器将匿名执行第一个请求。 如果启用了匿名身份验证,则此请求将成功,因此Web服务器将不知道您是谁。 如果您使用像Fiddler这样的工具来检查您和服务器之间的网络流量,您会注意到如果Windows身份验证是唯一配置的方法,您实际上会收到3个请求。 请求得到以下响应: 请求1:“我可以匿名登录吗?” 回应1:“不!” [ ...这是(某种) 这个问题的重复,它为我解决了这个问题 。 从那篇文章: IIS 7还创建“IUSR”作为默认用户通过IIS访问文件。 因此,使用户IUSR具有对文件/文件夹的读取权限。 如何检查IUSR是否已读取Access? 右键单击 - >文件夹 - >属性 - >安全选项卡查看IUSR是否在组或用户名列表中,如果否。 单击编辑 - >添加 - >高级 - >立即查找 - >选择IUSR,然后单击确定四次 This is (sort of) a duplicate of this question whi ...IIS 7.5中的MVC5与Windows身份验证:无法登录(MVC5 vs Windows Authentication in IIS 7.5: unable to login)[2022-04-25]
我找到了问题的根源 - 主机文件。 每次我进行网站开发时,我都会在hosts文件中创建一条记录,因此它更加用户友好。 一旦我尝试通过http://localhost:81访问该网站,Windows身份验证工作正常并从第一次尝试获取密码。 不知道为什么通过主机通过域名无法正常工作。 但我可以猜到IIS与网站域名和本地工作组/域名混淆了。 某种安全功能。 I have found the source of the problem - hosts file. Every time I do web-site d ...IIS 7.5和ASP.Net中的身份验证设置有什么区别?(Authentication settings in IIS 7.5 and ASP.Net, what is difference?)[2022-02-02]
您需要配置另一个组件:授权。 如果不这样做,未经授权的用户可以访问所有页面,并且不会被重定向到登录页面。 例如:相关文章
更多- Java 流(Stream)、文件(File)和IO
- Groovy 文件I/O 操作详解
- Hadoop的I/O
- Hadoop编译WordCount程序:class file for org.apache.commons.cli.Options no
- Lua 文件 I/O 操作
- I18N 国际化 简介
- java反射详解(一)_Class类
- Hadoop HDFS Wrong FS: hdfs:/ expected file:///
- 如何卸载assembly?或者class
- Java泛型父类取得子类的泛型参数T的Class类型
最新问答
更多- 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
- 如何通过引用返回对象?(How is returning an object by reference possible?)
- 矩阵如何存储在内存中?(How are matrices stored in memory?)
- 每个请求的Java新会话?(Java New Session For Each Request?)
- css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
- 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
- xcode语法颜色编码解释?(xcode syntax color coding explained?)
- 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
- 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
- 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
- 西安哪有PLC可控制编程的培训
- 在Entity Framework中选择基类(Select base class in Entity Framework)
- 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
- 电脑二级VF有什么用
- Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
- 金华英语角.
- 手机软件如何制作
- 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
- 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
- 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
- Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
- 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
- python的访问器方法有哪些
- DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
- 在Ruby中对组合进行排序(Sorting a combination in Ruby)
- 网站开发的流程?
- 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
- 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
- 透明度错误IE11(Transparency bug IE11)
- linux的基本操作命令。。。