Jump to content
Science Forums

Problem creating file


Recommended Posts

I need a computer-whiz to help me with some troubleshooting.

 

I just installed the Sirius molecular modeling software on my laptop. I've been using the same program on my desktop for some time now, and have never had any problems.

 

Well here's the problem. I have Sirius installed. I have POV-Ray installed.

When I try to "Save view as POV-Ray imput file", so I can create a POV-ray image of the protein that I've just made, I get an error:

 

"Error: Exception while exporting image"

 

Clicking on "details", I get the following information:

java.io.FileNotFoundException: C:Program FilesSiriuspovdata.pov (Access is denied)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.<init>(Unknown Source)
java.io.FileOutputStream.<init>(Unknown Source)
java.io.FileWriter.<init>(Unknown Source)
edu.sdsc.sirius.ray.RayTraceUtil.generatePOVContent(RayTraceUtil.java:382)
edu.sdsc.sirius.ray.RayTraceUtil.getPOVContent(RayTraceUtil.java:43)
Viewer$47.run(Viewer.java:1469)

 

That's a completely different language to me, so I need help interpreting it so I can solve the problem.

 

Thanks in advance!

MB

Link to comment
Share on other sites

Have you tried updating your java runtime environment? That's probably not the problem, but is easy enough to do just in case.

 

The file not found error in the first line points to a few possibilities. I'm not familiar with the program you are using, but you might try looking in the settings and see where the default directories are. It seems that the program is either confused by the path or that the file already exists and has write protection enabled (ie Read Only).

 

Hopefully that helps. ;)

Link to comment
Share on other sites

It seems that the program is either confused by the path or that the file already exists and has write protection enabled (ie Read Only).

This is the right direction. Here are some possibilities:

  • The file exists and is read only: Open Windows Explorer and go to the folder "C:Program FilesSirius" and see if "povdata.pov" exists, and if it does, right click -> Properties should tell you if its having this problem. Check not only if the "Read-Only" is checked, but also under the Security tab on the properties window.
  • The folder itself is read-only: Right-click -> Properties on the folder itself, and check the Security settings: could be you're not allowed to write anything there.
  • The program is completely munging the path: In your error message, the path is shown as "C:Program FilesSiriuspovdata.pov" which a programmer would normally assume that the Java is interpreting the backslashes as escape characters and therefore they don't print, but that the code is really seeing "C:Program FilesSiriuspovdata.pov" (or maybe "C:Program FilesSiriuspovdata.pov" so you need to check that too!). OTOH, it could actually be trying to write to that path, which would be interpreted by Windows as "the current default folder on the C: drive" which could be a number of locations depending on what the software is doing. If you wanted to be a total nerd about it, there is a utility you can download from support.microsoft.com called "filemon.exe" which will tell you what files are trying to be opened and let you know exactly what its trying to do.

 

Good luck Mr. Phelps! ;)

Buffy

Link to comment
Share on other sites

The program is completely munging the path: In your error message, the path is shown as "C:Program FilesSiriuspovdata.pov" which a programmer would normally assume that the Java is interpreting the backslashes as escape characters and therefore they don't print, but that the code is really seeing "C:Program FilesSiriuspovdata.pov" (or maybe "C:Program FilesSiriuspovdata.pov" so you need to check that too!).

 

Yeah, the way it's printed in the error message can definitely lead to some problems if that is how the code is actually executing. Perhaps it's ignoring the slashes only for the error console, but the code is parsing correctly. :shrug:

 

An easy test would be to download "filemon" or a similar app and run them on both your desktop and laptop to compare results.

Link to comment
Share on other sites

Well I just noticed one of my mistakes.

 

Buffy...

C:Program FilesSiriuspovdata.pov

You were right. It did delete the slashes, so I'm going to find the *real* file, now that I have the *real* file path....

...and I'll use your above suggestions on that instead. :)

 

Sorry for that oversight guys.

Report to follow...

Link to comment
Share on other sites

Awesome! :hihi:

 

It always bemuses me to see how programs behave differently on different machines. It could be that windows (on your laptop) is automatically assigning read-only permission to your files (perhaps even indiscriminately), though I'm unaware of such a setting. :)

Link to comment
Share on other sites

Awesome! :)

 

It always bemuses me to see how programs behave differently on different machines. It could be that windows (on your laptop) is automatically assigning read-only permission to your files (perhaps even indiscriminately), though I'm unaware of such a setting. :)

 

yeah.... I have absolutely no idea why my lappy did that... but it certainly was read-only, and the permissions were for "Creator", and as far as I know, I wasn't the one who created the program.:hihi:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...