Read a file
i wrot the follwing code to search for a word in a list of files
when i compile it ,it does not give me any error , but at run it give me the following Eception:
java.io.FileNotFoundException: home.html (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileReader.(Unknown Source)
at webSearchServlet.readFile(webSearchServlet.java:111)
at webSearchServlet.doGet(webSearchServlet.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at desisoft.server.servlets.Servlet.service(Servlet.java:86)
at desisoft.server.servlets.Servlet.doService(Servlet.java:62)
i put all the fill and the class and the database in the same follder.
i use Blazix web server.
Here is the code:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class SearchServlet extends HttpServlet{
String[] strArray;
public void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, IOException{
try {
Statement stmt;//used for database access
ResultSet rs;//used for database access
Connection conn;
//Set the content type of the data to be sent back
// to the client.
res.setContentType("text/html");
//Get an output writer object to send data back to
// the client.
PrintWriter out = res.getWriter();
//Begin constructing the HTML page to send back to
// the client.
out.println("<HTML>");
out.println("<HEAD><TITLE>Search Result</TITLE></HEAD>");
out.println("<BODY>");
//Register the JDBC driver
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//Construct URL for database on node3
String url = "jdbc:odbc:search";
String username="";
String password="";
//Get a connection to the database
conn = DriverManager.getConnection(url,username,password);
//Get a Statement object
stmt = conn.createStatement();
//Get the incoming parameter named clear from the
// client. If it is Y or y, delete the existing
// table.
//////////////////////////////////////////shimaa/////////////////
String search1 = req.getParameter("go");
String[] result = searchString(search1);
for (int i=0; i<result.length ;i++){
out.println(result);
//Create a new table named servlet05Table in the
// database if it doesn't already exist
/* try{
stmt.executeUpdate("CREATE TABLE searchTable1 ("
+ "firstName char(15),"
+ "middleInitial char(2),"
+ "lastName char(15)"
+ ")");
}catch(Exception e){
out.println(e + "<br>");
out.println("Unable to create table<br><br>");
}//end catch
//Get the incoming data parameters from the client
String firstName = req.getParameter("firstName");
String middleInitial = req.getParameter(
"middleInitial");
String lastName = req.getParameter("lastName");
//Put the data into the database table. Don't forget
// to enclose the string data in single quotes to
// satisfy the SQL syntax requirement.
stmt.executeUpdate("INSERT INTO searchTable1 ("
+ "firstName,middleInitial,lastName)"
+ " VALUES('"
+ firstName + "','"
+ middleInitial + "','"
+ lastName + "'"
+ ")");
//Create a statement object linked to the database
// connection.
stmt = conn.createStatement();
//Use the statement object to execute a query on the
// database.
String query = "SELECT Path FROM searchTable";
rs = stmt.executeQuery(query);
out.println("Contents of Database<BR><BR>");
//Get info about the ResultSet
ResultSetMetaData resultSetMetaData =
rs.getMetaData();
int numColumns = resultSetMetaData.getColumnCount();
//Start an output string that is an HTML table
StringBuffer strBuf = new StringBuffer();
//begin HTML table
strBuf.append("<TABLE BORDER=2>\n");
//Use column labels from ResultSet for table titles
strBuf.append("<TR>");//table row tag
for(int i = 1; i <= numColumns; i++){
strBuf.append("<TH>"//table header tag
+ resultSetMetaData.getColumnLabel(i));
}//end for loop
strBuf.append("</TR>\n");//end table row
while(rs.next()) {
strBuf.append("<TR>");//new row
for(int i = 1; i <= numColumns; i++){
strBuf.append("<TD>");//table data element tag
Object obj = rs.getObject(i);
if(obj != null){
strBuf.append(obj.toString());
}//end if(obj != null)
else{
strBuf.append(" ");//non-breaking space
}//end else
}//end for loop
strBuf.append("</TR>");//end table row
}//end while loop
strBuf.append("</TABLE>");//end table
out.println(strBuf);//send table to client
//Finish the construction of the html page
out.println("</BODY></HTML>");
//Enable the following statement to delete the table
// when the servlet terminates.
//stmt.executeUpdate("DROP TABLE servlet05Table");
//Close the connection to the database
stmt.close();
conn.close();
}catch( Exception e ) {
e.printStackTrace();
}//end catch
}//end doGet()
public String[] searchString(String str) {
int indexOfPlus = str.indexOf('+');
if (indexOfPlus == -1) {
strArray[1] = str;
return strArray;
else {
String firstWord = str.substring(0 ,indexOfPlus-1);
String secondWord = str.substring(indexOfPlus-1);
strArray[1] = firstWord;
strArray[2] = secondWord;
return strArray;
}//end class Servlet05
what is the wrong???
shimaa
Can't find anything to do with your code from the stack trace.
It looks like cause is from webSearchServlet.java line 111. may be you need to specify the full URI for the "home.html" file.
Similar Messages
-
Can no longer read plist files
I've got a script that iterates through a list of hostnames, connects to each host, looks for the existence of a list of applications, and if they exist reads their Info.plist for the version. This worked seamlessly until a couple of days ago. The only change I can think of is having changed my username on all of my Macs from <username> to <username>.sa to differentiate privileged accounts from unprivileged accounts. Yes, this caused a number of issues, and I've hunted them down. I can connect to every host with <username>.sa, perform actions with sudo, etc. What I can't do any more is read plist files, even when logged in locally:
quad:~ username.sa$ defaults read /Applications/Utilities/Adobe\ Flash\ Player\ Install\ Manager.app/Contents/Info.plist
2014-06-26 15:03:59.588 defaults[49157:507]
Domain /Applications/Utilities/Adobe Flash Player Install Manager.app/Contents/Info.plist does not exist
quad:~ username.sa$ ls -l /Applications/Utilities/Adobe\ Flash\ Player\ Install\ Manager.app/Contents/Info.plist
-rw-r--r-- 1 root wheel 1344 May 28 12:02 /Applications/Utilities/Adobe Flash Player Install Manager.app/Contents/Info.plist
quad:~ username.sa$ cat /Applications/Utilities/Adobe\ Flash\ Player\ Install\ Manager.app/Contents/Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>12E55</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>Adobe Flash Player Install Manager</string>
<key>CFBundleIconFile</key>
<string>FlashPlayerInstaller.icns</string>
<key>CFBundleIdentifier</key>
<string>com.adobe.flashplayer.installmanager</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Adobe Flash Player Install Manager</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>14.0.0.125</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>4H1503</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>10K549</string>
<key>DTSDKName</key>
<string>macosx10.6</string>
<key>DTXcode</key>
<string>0463</string>
<key>DTXcodeBuild</key>
<string>4H1503</string>
<key>NSMainNibFile</key>
<string>FPIMMain</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
The file is there. It is readable. I can read it... just not with the 'defaults' command. This is with all plists on all of my Macs.Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test. -
Error: Unable to read footer file
Hoping someone out there can help me. I get this error on
everypage in my site and have no idea how to stop it.
Error: Unable to read footer file
The error does not show up when I preview inside dreamweaver
but only rears its ugly head after I post the site up on the
internet. I have searched for hours through the Dreamweaver menus
and can not find these elusive footers and have no idea where they
are coming from or what footer file it is trying to read.. Please
help. This probably has a simple solution and I am just not able to
understand it. Thank you.sdrouillard wrote:
> This probably has a simple solution and I am just not
able to understand
> it.
Possibly, but without a URL we can't comment. Post it, and
we'll see.
At a guess, sounds like an include file is missing. Are you
on some sort of
free hosting plan where the host puts some adverts in the
footer? If that
file is removed from your site directory you might get the
error you've
mentioned (at least, that was the case on the only other time
I've seen this
error)
Regards,
Pete.
Peter Connolly
http://www.acutecomputing.co.uk
Derby
UK
Skype ID: acutecomputing -
Error reading excel file using POI.
Hi ,
I am having some problem when reading the excel file.
While reading excel file I am getting error-java.io.IOException: Unable to read entire block; 4 bytes read; expected 512 bytes.
part of my code:-
InputStream stream = objFormFile.getInputStream();
POIFSFileSystem fs = new POIFSFileSystem(stream);//getting above error here.
HSSFWorkbook wb = new HSSFWorkbook(fs);
Case 1:
I download the file on the system ,save it ,and then directly upload it to the system ,I get the above error .
Case 2:
It works fine if I download the excel and manually open and save it and then upload it .
I am using JDK1.4.1 and poi-2.5.1-final-20040804.jar.
Can any one please help me out for the above problem?
Edited by: hruday on Jul 31, 2008 3:20 AMInstead of using POIFSFileSystem, try to directly create the HSSFWorkbook
InputStream stream = objFormFile.getInputStream();
//POIFSFileSystem fs = new POIFSFileSystem( stream );//getting above error here.
HSSFWorkbook wb = new HSSFWorkbook( stream ); -
Error reading Remote file when the connection is slow
I have a program that reads a file from a remote server. The file is an xml file.
This uses URL inputstream.
This works just fine but when the xml that it reads grow in size, the content of the file is not completely sent to the variable string.
I have come to a conclusion that slow connection to the server could somehow cause this. The error is intermittent. Sometimes it works, sometimes it doesn't.
I hope you guys could help me tune this code or if you have suggestions like other ways to read a remote file. Which will work even if the file grows bigger.
Thanks
public String readRemoteFile(String fName)
try
boolean bolContinue = true;
URL tUrl = new URL(fName); //create a URL object with the server source file
//Logger.log("Getting filesize : " + fName);
InputStream is = tUrl.openStream();
String strFileSize = "";
StringBuffer sbXML = new StringBuffer();
byte[] b1 = new byte[10];
int intBytesToDownload = 0;
int i = is.read(b1);
strFileSize = new String(b1, 0, i);
//Logger.log(fName + " --- " + strFileSize);
try
intBytesToDownload = Integer.parseInt(strFileSize);
catch (NumberFormatException nfe)
Logger.log("Could not read the file : " + fName);
return null;
int bytesReadInTrip = intBytesToDownload;
int bXMLLocation = 0;
while (bytesReadInTrip > 0)
bytesReadInTrip = 0;
bolContinue = true;
//System.out.println(strFileURLPath);
tUrl = new URL(fName + "&fileOffset=" + bXMLLocation);
//Logger.log("reading file1 : " + fName + "&fileOffset=" + bXMLLocation);
is = tUrl.openStream(); //get Input stream of the server file.
//continue download till continuation flag is set i.e. input stream
// is available.
while (bolContinue)
byte[] bXML = new byte[intBytesToDownload];
i = is.read(bXML);
//Logger.log("i " + i);
if (i > 0)
bXMLLocation += i;
bytesReadInTrip += i;
String strTmpXML = new String(bXML,0,i);
sbXML.append(strTmpXML);
else
bolContinue = false;
is.close(); //close the input stream of the input file.
//Logger.log("bytesReadInTrip : " + bytesReadInTrip);
//Logger.log("Read file : "+ sbXML.toString());
return sbXML.toString();
catch (Exception e)
Logger.log("Exception while reading the file : " + fName);
return null;
}well looks that ur run() method is being called more then one time (..)
why dont u try file method exists() before writing it to ensure that it is not written previously -
Error reading from file glibc-2.5-24.i686.rpm RHEL 5 Setup stuck at 80%
Hi, I am installing Oracle 10g on RHEL 5 (Red Hat Enterprise Linux 5) machine I am facing two problems
1) while installing the rpm packages the following package gave an error
Error reading from file glibc-2.5-24.i686.rpm
2) I still gave a try to runInstaller command the installer opened but was stuck at 80%
I have 3 GB ram and 320GB hard drive I am not sure what to put in the swap memory and other settings i blindly followed instructions given here
http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRHEL5.php
What could be the problem where do I find the error log if its created
Please help me
Thanks
Edited by: 891355 on Nov 6, 2011 12:06 PMI found the installActions file in the installer folder and I think this could be the problem
INFO: The 'shiphomeproperties.xml' file is missing from shiphome location '/home/oracle/Desktop/database/install/../stage/products.xml.' Add this file to the 'Disk1/stage' directory of the shiphome.
though I am attaching the log file for more details do you think the installer is corrupt :(
InstallActions log file ==> http://www.mediafire.com/?nh7mx7bxqht9ovu
Edited by: 891355 on Nov 6, 2011 1:35 PM -
Error reading wsdl file excepetion null
Hi
I am trying to invoke a proxy service (web service) wsdl from a bpel process. When i add a web service adapter, put url of external web service and save it, all my service end points defined in the BPEL process are becoming non editable. Binding of operation is changing from web service to HTTP binding for all end points. When I try to edit any partner link, Jdev throws an error " error reading wsdl file excepetion null " for local services. For external service, even though i am refering to a url on the server, it points to " C:\Oracle\Middleware\jdeveloper\jdev\bin\...\xxxx?WSDL" and throws same error " failed to read wsdl file(System could not find the path specified". I am just clueless as to why this is happening. Any help is much appreciated.Try the SOA Forum - SOA Suite
-
\\Error Reading Rules File when dimbuild with DLR
Hi
I am using Essbase 11.1.2.1.
I create a DLR via the web console EAS (11.1.2.1 too) : a very simple one : dimbuild DLR, ";" as separator, 2 fields (parent and child)
when i try do do a "Update Ouline..." with a very simple file (1 line : accounts;test) I have this error message "\\Error Reading Rules File"
I don't know if it can help but if I create the same DLR on another 7.1 essbase serveur through this same wec eas console (11.1.2.1), I have no problem...
another information, too : my 11.1.2.1 server has a //ESS_LOCALE English_UnitedStates.Latin1@Binary ESSLANG. My 7.1 server has a //ESS_LOCALE French_France.ISO-8859-15@Default ESSLANG. I really don't know if there is a link, or absolutely not.
Thanks in advance for your help!
Fannyunable to load essmsh.exe : the error message seems to indicate that it is a problem with a path in the environment variables.
So if you say that the "Error Reading Rules File" is typically a path issue, all is probably linked!
The admin will probably correct that tomorrow : I let you know if it solves the problem!
Thanks!
Fanny -
Error reading product file driver files
When attempting apply a large merge patch I receive the following error:
Screening out files not valid for this installation...
Determining valid on-site files...
AutoPatch error:
The following file is missing:
/oracle/prodappl/pa/11.5.0/admin/driver/pasb038.drv
AutoPatch error:
Error reading product file driver files [complete; make tapes]
AutoPatch error:
Error determining valid on-site files
Any ideas?
I've tried using options=noprereq option, but that didn't help.- Try to restore the file from a backup you have Or just copy it from any other environment.
- Make sure that you have included all pre-req patches in the merged file.
I've tried using options=noprereq optionBy this you tell adpatch not to check for pre-req, use 'options=prereq' instead. -
Error reading zip file in Java 6
We have a bespoke installer program that fails, intermittently, in Java 6 on Windows. After installing some files, it then fails with a stack trace like this:
java.util.zip.ZipException: error reading zip file
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1200(ZipFile.java:29)
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:447)
at java.util.zip.ZipFile$1.fill(ZipFile.java:230)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at com.XXXX.trent.installer.Installer.writeStreamToFile(Unknown Source)
at com.XXXX.trent.installer.Installer.installFile(Unknown Source)
at com.XXXX.trent.installer.PatchFileInstaller.installFile(Unknown Source)
at com.XXXX.trent.installer.PatchFileInstaller.installFiles(Unknown Source)
at com.XXXX.trent.installer.UpgradeInstaller$TpfAction.run(Unknown Source)
at com.XXXX.trent.installer.UpgradeInstaller.runActions(Unknown Source)
at com.XXXX.trent.installer.UpgradeInstaller.install(Unknown Source)
at com.XXXX.trent.installer.TrentInstall$SoftwareInstallStage.install(Unknown Source)
at com.XXXX.trent.installer.TrentInstall$UpgradeInstallWorker.install(Unknown Source)
at com.XXXX.trent.installer.PatchInstall$InstallWorker.construct(Unknown Source)
at com.XXXX.trent.utils.SwingWorker$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)The same code works in Java 5 on the same environments that it now fails in Java 6 (1.6.0_16).
Any ideas?
Thanks.gimbal2 wrote:
it is not weird, it is a bug in the application. Don't let the upgrade from Java 5 to Java 6 make you believe otherwise.It's a singularly bad exception message though. I would have thought that something from java.util might be a bit more explicit about what the problem is.
Winston -
Error reading project file : no protocol
I have followed the instructions exactly as in the j2ee tutiorial ,but, when I run asant , an error occurs:
: Error reading project file : no protocol: ../../common/targets.xml
Urgent!Could you please provide a bit more detail such as which sample you are using? Also are you using the latest version of the tutorial and have you configured your build.properties in the samples/common directory?
-
I was trying to import a camera into AE, but I encounted the error: AEGP Plugin MayaImport: Error reading Maya file. (5027::12)
Here's how I did:
Version of softwares:
Maya 2014 and 2013
After Effects CS6
System:
Windows 7 & Mac OS 10.6.8
I exported Camera and locator from a maya(.mb) file and save it as a .ma file. I baked all keyables of the camera.
Then I tried to import it into AE. and the error occured.
I tried different versions of maya and different systems, as I mentioned above. But the results were the same.
Does anybody know how to fix it? Or show me another way to import Maya's camera into AE?
Thanks!Without seeing the actual Maya file nobody can say anything. Could simply need a manual editing of the file version info or some reformatting...
Mylenium -
Hey all! Don't know if anyone can help but I keep getting the message...
" Error reading/writing file "com.garageband.cs":`≤Ć». " with a cancel button.
If you click on it it does go away, but after a time playback starts skipping and stuff.
Anyone help please?
Thanks
Righinifirst two things to try for “oddball” probs:
http://www.bulletsandbones.com/GB/GBFAQ.html#oddballprobs
(Let the page FULLY load. The link to your answer is at the top of your screen) -
Error reading/writing file message when opening garageband and/or files
I've been recently getting this message when I open garageband and files
"Error reading/writing file\U201Ccom.apple.garageband.cs\U201D
I've been in and repaired disk permissions and all that it says it is all fine, reinstall garageband and message still comes up, weird.
not only is garageband being a nuisance, Mac OS X 10.6.2 is being a pain when shutting down telling me to restart the computer. This only happened since upgrading to 10.6. No one as yet knows this promble so I'm gonna have to ring apple and see what is going on here.
and also my other problem is that mac doesn't seem as snappy anymore I noticed this before upgrading to 10.6 and made no difference when "cleanly" installing 10.6. I get a colour wheel popping up and i'm having to wait with simple tasks. iMac only 2 years old.i give up with this discussion forum no no one knows anything
-
Error reading configuration file
I've setup the Adobe Access 4.0 trial license server and when I run the Validator.bat with -g -r on the Tomcat install dir \licenseserver I get an 'Error reading configuration file' message. Here is the log dump:
[] 2012-12-20 22:46:32,176 INFO [[Partition(flashaccessserver)].com.adobe.flashaccess.server.license.context.SimpleContex tFactory] Creating class loader for partition 'flashaccessserver' with libraries '[file:/c:/Tomcat6/licenseserver/flashaccessserver/libs/, file:/c:/Tomcat6/licenseserver/flashaccessserver/libs/flashaccess-license-server-ext-samp le.jar]'
[] 2012-12-20 22:46:32,582 ERROR [[Partition(flashaccessserver)].com.adobe.flashaccess.server.license.tools.Validator] Failed to validate tenant deployment 'flashaccessserver/sampletenant'
com.adobe.flashaccess.server.common.configuration.ConfigurationException: Error reading configuration file
at com.adobe.flashaccess.server.license.configuration.commonsadapter.Constants.parseTenantCo nfigurationStream(Constants.java:139)
at com.adobe.flashaccess.server.license.configuration.commonsadapter.TenantConfigurationImpl .<init>(TenantConfigurationImpl.java:110)
at com.adobe.flashaccess.server.license.configuration.commonsadapter.CommonsConfigurationBas edFactory.getTenantConfiguration(CommonsConfigurationBasedFactory.java:90)
at com.adobe.flashaccess.server.license.tools.Validator.validateTenantDeployment(Validator.j ava:255)
at com.adobe.flashaccess.server.license.tools.Validator.validatePartitionDeployment(Validato r.java:283)
at com.adobe.flashaccess.server.license.tools.Validator.validateGlobalDeployment(Validator.j ava:301)
at com.adobe.flashaccess.server.license.tools.Validator.process(Validator.java:173)
at com.adobe.flashaccess.server.license.tools.Validator.main(Validator.java:117)
Caused by: org.apache.commons.configuration.ConfigurationException: Unable to load the configuration
at org.apache.commons.configuration.XMLConfiguration.load(XMLConfiguration.java:863)
at org.apache.commons.configuration.XMLConfiguration.load(XMLConfiguration.java:821)
at com.adobe.flashaccess.server.license.configuration.commonsadapter.Constants.parseTenantCo nfigurationStream(Constants.java:134)
... 7 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 121; columnNumber: 16; cvc-complex-type.2.4.b: The content of element 'KeyServer' is not complete. One of '{"http://licenseserver.flashaccess.adobe.com/tenant":File}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unkno wn Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportErro r(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidComplexT ype(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unk nown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processElementContent(Unkno wn Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk nown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDri ver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.commons.configuration.XMLConfiguration.load(XMLConfiguration.java:855)
... 9 more
I'm using a relative path to my .pfx file for both the transportServerCredential and licenseServerCredential in the flashaccess-tenant.xml and my password has been scrambled using the Scrambler.bat.
Also, when I verify setup using http://<LicenseServer>:8080/flashaccessserver/flashaccess/license/v2 I get the message 'License server is setup correctly.'
Any ideas of why the Validator.bat can't read the configuration file?I agree with you that if I can successfully playback content the license serve is setup successfully. Here is what I've tried and how I've set things up:
I have my license server setup (its the Protected Streaming version).
I'm using Adobe Media Server as my content/packaging server. I successfully served Vanilla PHLS sample streams to the sample Adobe Access player on iOS devices.
I have configured the Adobe Media Server to point to the license server and certificates as per the documenation and this Adobe Dev article (http://www.adobe.com/devnet/adobe-media-server/articles/content-protection-using-phds-phls .html). Since I am using a trial version of Adobe Access my .der files are the same for transport and packaging.
I am using the local key mode to remove one more variable (I have setup a remote key server as well).
I have placed a copy of the 'vod-policy.pol' policy file from the reference license server resources directory in my Adobe Media Server 'creds' directory and used the relative path '..creds/vod-policy.pol' in the httpd.conf file.
When I attempt to load the sample stream http://<mymediaserver>/hls-vod/sample2_1000kbps.f4v.m3u8 using the Adobe Access sample player on my iOS device I receive the following errors in the player:
DRM error Major[3363] minor:[0] NSError:(null)]
From my knowledge of working with the Adobe Access Objective C library to create a PhoneGap plugin it appears that a decrypted playlist is not being returned by the Adobe Media Server. Additionally, I can find no information in the Adobe Media Server or Adobe Access logs that pertain to my setup.
I would love to have someone from Adobe speak to the problems I am having. I find the documentation to be hit and miss and most of my successful results during this proofing process have been from piecing together disparate pieces of information and trial and error. Information on using the Adobe Media Server with Adobe Access is limited to one Devnet article (above) and the help in Adobe Media Server that doesn't explain pathing to the license server or Java policy files in any detail.
Colour me frustrated -
Hi all
I'm trying to install SQL 2008 Express on my Computer: Hp compact DX7300 Slim tower.
and get this error:
TITLE: Microsoft SQL Server 2008 Setup
The following error has occurred:Error reading from file d:\8268cd7b247d294de359c9\x86\setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn\Template\msdbdata.mdf. Verify that the file exists and that you can access it.
Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1823.0&EvtType=0xF45F6601%25401201%25401
Log file
Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Exit code (Decimal): -2068643839
Exit facility code: 1203
Exit error code: 1
Exit message: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Start time: 2014-12-09 23:22:03
End time: 2014-12-09 23:40:28
Requested action: Install
Log with failure: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\sql_engine_core_inst_Cpu32_1.log
Exception help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1823.0
Machine Properties:
Machine name: VISTA-PC
Machine processor count: 2
OS version: Windows Vista
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x86
Process architecture: 32 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature
Language Edition Version Clustered
Package properties:
Description: SQL Server Database Services 2008
SQLProductFamilyCode: {628F8F38-600E-493D-9946-F4178F20A8A9}
ProductName: SQL2008
Type: RTM
Version: 10
SPLevel: 0
Installation location: d:\8268cd7b247d294de359c9\x86\setup\
Installation edition: EXPRESS
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: False
AGTSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASDOMAINGROUP: <empty>
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT: <empty>
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <empty>
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\ConfigurationFile.ini
ENABLERANU: True
ERRORREPORTING: False
FEATURES: SQLENGINE,REPLICATION
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: <empty>
FTSVCPASSWORD: *****
HELP: False
INDICATEPROGRESS: False
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: SQLExpress
INSTANCENAME: SQLEXPRESS
ISSVCACCOUNT: NT AUTHORITY\NetworkService
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
MEDIASOURCE: d:\8268cd7b247d294de359c9\
NPENABLED: 0
PID: *****
QUIET: False
QUIETSIMPLE: False
RSINSTALLMODE: FilesOnlyMode
RSSVCACCOUNT: <empty>
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: <empty>
SQLBACKUPDIR: <empty>
SQLCOLLATION: SQL_Latin1_General_CP1_CI_AS
SQLSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: VISTA-PC\VISTA
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: False
TCPENABLED: 0
X86: False
Configuration file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Feature: SQL Server Replication
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141209_232121\SystemConfigurationCheck_Report.htm
I will very appriciate if someone can help me solve it. I was trying to set Full control for my account in Properties/Security of root folder and try again but error is still.
Many thanksHi Foreverduy,
Before you run SQL Server 2008 express setup, make sure that you have installed Windows installer 4.5 and.NET Framework 3.5 SP1 manually. For more information about the process, please refer to the article:
http://msdn.microsoft.com/en-us/library/ms143506(v=sql.100).aspx. Moreover, please turn off all the third-party softwares which could prohibit the installation process.
According to your error message, the issue could be due to that your account has no rights to install SQL Server, or the corruption on the media.
Firstly, please ensure that your account has admin rights. Also make sure that you right-click the setup.exe and choose “Run as administrator” to complete the installation.
Secondly, please check if "msdbdata.mdf" file exists at d:\8268cd7b247d294de359c9\x86\setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn\Template. If it exists, please make sure that your account has read permission to the extracted
folder.
However, if the file doesn't exist in the extraction, the media could be corrupt. Please download the
media
again and check if the issue still occurs.
Regards,
Michelle Li
Maybe you are looking for
-
Using the Execute Preloaded Option for ABAP Dataflows in SAP BODS
Hello All, This is regarding the use of Advanced Option in SAP Application Type (ECC) Datastore settings in SAP BODS 4.2, where there are two options to select from for ABAP Execution Option property: (1)Generate and Execute and (2) Execute Preloaded
-
Crystal report Subreport linking error
Hi, I have a issue with linking subreport to main report in crystal report. I created a main report with BEx query as source and this query had fiscal year/period as variable. I have a another subreport with different BEx query and this query also ha
-
Hi, I recently purchase a CP1025nw color laserjet printer and am using the network (hard wired to my router) version. I upgraded the firmware and drivers on computer running Windows 7 64bit. The issue I am having is when I try to print a configurat
-
Error reading data after submit.
Hi All, I have a problem getting some data after i submit a standard report FPO4. Here the issue is with a file that is getting created by a dynamic report created and called internally by a report on the same path every time dynamically. say (/devab
-
Volumes and Applications won't open in Tiger
I just got a new iBook lab with Tiger. I can't seem to open any Volume or Application with a double click. I'm only successful with the Open Apple-O command. Is there a new default setting that I'm missing? Sorry if this has been posted before, but I