System io IOException The filename, directory name, or volume label syntax is incorrect

Hi all,
I copied a project from websphere in to tomcat directory, whiel i start the tomcat I am getting the below error.
Any Idea , please help me on this

Show

I have checked the context file and replaced catalina.properties file also.

Oct 24, 2011 12:30:41 PM org.apache.catalina.startup.Bootstrap initClassLoaders
SEVERE: Class loader creation threw exception
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:200)
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:180)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:98)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:213)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)

Also posted in general ASP.NET forum.

System.IO.IOException: The filename, directory name, or volume label
syntax is incorrect.
I have hit a problem for which I can find no solutions. Has anyone any
ideas?

I am writing XML into a Memory STream and using a Transform to make
HTML. This works fine normally, but I have now the above stated error.

I did get some odd chars in the HTML name which caused a problem,
which I corrected. The current error seems to random. I am wondering
if memory is the problem, or disk space.

Last Trace - html 2-->../Grohe/Grohe-Sundries-Handles-Handles-Automatic-2000-47255000.html<--
shows the filename

Code:

string HTMLName = xmlName;

Trace.Warn ("html--" + HTMLName);
string thisManNameDir = thisManName;
thisManNameDir = thisManNameDir.Replace(" ","");

HTMLName = "../" + thisManNameDir + "/" + HTMLName;
Trace.Warn ("html 2-->" + HTMLName + "<--");
//Trace.Warn("writing html" + HTMLName );
XmlUrlResolver resolver = new XmlUrlResolver();

string thisURL1 = Request.Url.ToString();
Trace.Warn("header " + thisURL1);
thisURL1 = thisURL1.Replace("/myxml/Xml1.aspx","");
string thisURL = thisURL1.Replace("http://","");

thisURL1 = thisURL1.Replace(".co.uk","");
thisURL1 = thisURL1.Replace(".com","");
thisURL1 = thisURL1.Replace(".biz","");

thisURL1 = thisURL1.Replace("http://www.","");
string thisDomain = thisURL1.Replace("http://","");

NetworkCredential cred = new
NetworkCredential(thisDomain,"pwd",thisURL);
thisStream.Position = 0;
Trace.Warn("a");
//XmlTextReader myTxtReader = new XmlTextReader (thisStream);
Trace.Warn("a1");
string xslPath = Server.MapPath("myXSL.xsl");
Trace.Warn("a2");
string htmlPath = Server.MapPath(HTMLName);
Trace.Warn("a3");
XPathDocument aXPathDocument = new XPathDocument(thisStream);
Trace.Warn("a4");
XslTransform transform = new XslTransform();
Trace.Warn("a5");
transform.Load(xslPath, resolver);

StreamWriter aStreamWriter = new StreamWriter(htmlPath);

Trace.Warn("a6");
transform.Transform(aXPathDocument,null,aStreamWri ter, resolver);

aStreamWriter.Flush();
aStreamWriter.Close();

Trace.Warn("a7");
//Trace.Warn("ending html");

}

  • Home
  • Anonymous
  • Sign in to post
  • Post
  • Explore
  • Tags
  • Questions
  • Site feedback
  • Articles
  • Users

Skip to main content

System io IOException The filename, directory name, or volume label syntax is incorrect

    • Tags
    • Questions
    • Site feedback
    • Articles
    • Users
  • Sign in to post

  • Home

question

Hello Guys,

I'm trying to add new Domain controllers to my existing domain but I got this error.

Active Directory could not replicate the directory partition CN=Schema,CN=Configuration,DC=mydomain,DC=local from the remote domain controller DC1.

"The filename, directory name, or volume label syntax is incorrect."

I am stuck on this, I don't have a solution.

TCA

windows-serverwindows-active-directory

Can you share the details of the dcpromo.log file? You should find it under: %SystemRoot%\Debug. It will contain actual error codes and additional information.

I'd double check the domain controller and problem member both have the static ip address of DC listed for DNS and no others such as router or public DNS

--please don't forget to upvote and Accept as answer if the reply is helpful--

Just checking if there's any progress or updates?

--please don't forget to upvote and Accept as answer if the reply is helpful--

0 Votes 0 ·

Hello DSPatrick,

I have put static ip address of DC1 in the Preferred DNS of each New DC.

BR,

TCA

0 Votes 0 ·

Please run;

Dcdiag /v /c /d /e /s:%computername% >C:\dcdiag.log
repadmin /showrepl >C:\repl.txt
ipconfig /all > C:\dc1.txt
ipconfig /all > C:\dc2.txt

then put unzipped text files up on OneDrive and share a link.

0 Votes 0 ·

Show more comments

Hello LT,

I can say the DNS server is not healthly. Here is screen shots of dcdiag /test:dns

System io IOException The filename, directory name, or volume label syntax is incorrect
System io IOException The filename, directory name, or volume label syntax is incorrect
System io IOException The filename, directory name, or volume label syntax is incorrect

TCA


question details