Compile error help please ...
I was reading the article on RE (http://developer.java.sun.com/developer/technicalArticles/releases/1.4regex/) to try to get a better understanding of regular expression use in Java. When I try to compile
the following:
* Prints out the comments found in a .java file.
import java.util.regex.*;
import java.io.*;
import java.nio.*;
import java.nio.charset.*;
import java.nio.channels.*;
public class CharBufferEx {
public static void main(String[] args) throws Exception {
// Create a pattern to match comments
Pattern p =
Pattern.compile("//.*$", Pattern.MULTILINE);
// Get a Channel for the source file
File f = new File(" Replacement.java ");
FileInputStream fis = new FileInputStream(f);
FileChannel fc = fis.getChannel();
// Get a CharBuffer from the source file
ByteBuffer bb =
fc.map(FileChannel.MAP_RO, 0, (int)fc.size());
Charset cs = Charset.forName("8859_1");
CharsetDecoder cd = cs.newDecoder();
CharBuffer cb = cd.decode(bb);
// Run some matches
Matcher m = p.matcher(cb);
while (m.find())
System.out.println("Found comment: "+m.group());
} I get the following error:
CharBufferEx.java:23: cannot resolve symbol
symbol : variable MAP_RO
location: class java.nio.channels.FileChannel
fc.map(FileChannel.MAP_RO, 0, (int)fc.size());
^
1 errorAny ideas on what is wrong?
Thanks.
SA
:)
Let me be more clear. Don't guess at what it means, tell me what its data type is. Post some documentation about it. The compiler is telling you there's no such thing, so what you need to do is figure out why it thinks so. Think like the compiler. If you had to go open up a class file to find FileChannel.MAP_RO, what class file would it be, and what would you find? Or, does it exist at all?
Similar Messages
-
I created my first program-compiling error-help please
hey there
i just wanted my first program in java and here it is below with the eroor when i'm compiling it, i cant understand whats wrong:
public class SquareArea {
public static void main(String[] args); {
float length;
float width;
float SquareArea;
System.out.println ("Please enter length"+ length);
System.out.println ("Please enter width"+ width);
SquareArea= length*width;
System.out.println ("The area of the square is" + SquareArea);
The error is:C:\Documents and Settings\User\Desktop\SquareArea.java:5: missing method body, or declare abstract
public static void main(String[] args); {
^
1 error
Tool completed with exit code 1There shouldn't be a semicolon between the ")" and the "{" near the end of that line.
With that semicolon, you're basically defining an empty, zero-size main method, and then throwing a bunch of garbage after it. That's what the compiler thinks anyway. Remove that semicolon and it should compile OK.
But it won't work super well, because you're not actually getting any input for length and width. It's just going to output this:
Please enter length0
Please enter width0
The area of the square is0 -
Warning: View altered with compilation errors. : Please help.
Hi All,
Found few views invalid, tried to compile them, but got the following error. It looks like synonyms are calling each other.
Please help to compile the view.
=======================
SQL> alter view APPS.PER_ADDRESSES_AV12 compile;
Warning: View altered with compilation errors.
Checked error:
SQL> SHOW errors VIEW APPS.PER_ADDRESSES_AV12;
Errors for VIEW APPS.PER_ADDRESSES_AV12:
LINE/COL ERROR
0/0 ORA-01775: looping chain of synonyms
Extracted DDL:
==========
CREATE OR REPLACE FORCE VIEW "APPS"."PER_ADDRESSES_AV12" ("ROW_KEY", "ADDRESS_
ID", "TOWN_OR_CITY") AS
SELECT ROW_KEY, ADDRESS_ID, TOWN_OR_CITY FROM PER_ADDRESSES_A WHERE TOWN_OR_CI
TY IS NOT NULL OR SUBSTR(AUDIT_TRUE_NULLS,12,1)='Y' UNION ALL SELECT 99991231235
9591111122222 ROW_KEY, ADDRESS_ID, TOWN_OR_CITY FROM PER_ADDRESSES
Checked synonyms for the base table:
=======================
OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME
PUBLIC PER_ADDRESSES HR PER_ADDRESSES
APPS PER_ADDRESSES HR PER_ADDRESSES
XXHRC PER_ADDRESSES APPS PER_ADDRESSES
Edited by: 784786 on Dec 22, 2011 7:27 AM784786 wrote:
Found few views invalid, tried to compile them, but got the following error. It looks like synonyms are calling each other.
Please help to compile the view.
SQL> alter view APPS.PER_ADDRESSES_AV12 compile;
Warning: View altered with compilation errors.
SQL> SHOW errors VIEW APPS.PER_ADDRESSES_AV12;
Errors for VIEW APPS.PER_ADDRESSES_AV12:
LINE/COL ERROR
0/0 ORA-01775: looping chain of synonyms
CREATE OR REPLACE FORCE VIEW "APPS"."PER_ADDRESSES_AV12" ("ROW_KEY", "ADDRESS_
ID", "TOWN_OR_CITY") AS
SELECT ROW_KEY, ADDRESS_ID, TOWN_OR_CITY FROM PER_ADDRESSES_A WHERE TOWN_OR_CI
TY IS NOT NULL OR SUBSTR(AUDIT_TRUE_NULLS,12,1)='Y' UNION ALL SELECT 99991231235
9591111122222 ROW_KEY, ADDRESS_ID, TOWN_OR_CITY FROM PER_ADDRESSES
OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME
PUBLIC PER_ADDRESSES HR PER_ADDRESSES
APPS PER_ADDRESSES HR PER_ADDRESSES
XXHRC PER_ADDRESSES APPS PER_ADDRESSESso break the chain by dropping one or of them -
Compilation error..Please Help
I had recently installed the jdk1.3 (Win ME version). I have no problem with my path variable although I doubt the classpath variable setting, which is given as follows.
D:\java\p_java>set classpath=%classpath%;D:\java\jdk1.3.1_02\jre\lib;D:\java\jdk1.3.1_02\lib\
where p_java is my java programs directory
jdk1.3.1_02 is the Java 2 SDK directory.
Problem
Whenever a java program is compiled, the very same error of "Access Denied" is displayed. This can be seen in the foll. examples.
Example 1:
D:\java\p_java>javac Statik.java
)Statik.java:3: error while writing Statik: Statik.class (Access is denied
class Statik{
^
1 error
Example 2:
D:\java\p_java>javac Stack.java
)Stack.java:1: error while writing Stack: Stack.class (Access is denied
public class Stack
^
1 error
Request
Could anyone tell me whether the classpath variable has to be set explicitly as in 1.2 version or leave it alone.( in case I don't have any user-classes.
I would be very obliged if u could suggest a possible remedy for this compilation error.
Awaiting a solution,
Thankz,
PreetiThis looks like a file creation problem. The only reason I can think why this might occur, given the information you have supplied, is that the files Statik.class and Stack.class already exist, and are read-only. Have you perhaps copied this example from a CD-ROM? If so, select all the files, right-click, choose properties and clear the read-only checkbox.
If this isn't the case, I'm afraid I can't think of anything else.
Robin -
Can't Export Movie - Unknown Compile Error - Help!
I edited a 32 minute movie in Premiere Elements 10, and now I'm trying to export it. At some point during the export, and it seems to vary, I get an unknown compile error. I've been trying to export the movie for the past week and all I get is failure despite trying just about everything I've found written about how to solve this.
I have Win 7 Ultimate SP 1 running on a Lenovo desktop machine with an Intel Core 2 Quad CPU at 2.67 GHz, 4GB of RAM, 32 bit proc.
Premiere is installed on system C drive with 6 GB of free space.
Project and scrach disks are on D drive with 165 GB of free space.
Media files are on 2nd E drive with 50GB of free space.
Project and most source material is NTSC DV -- there are quite a few photos with motion, plus some iPhone HD video on the timeline, hundreds of clips in all plus narration, a few titles, etc.
Export destination folder is on D drive.
Everything will render to green lines atop timeline (sometimes it quits during render and I have to keep hitting Enter to continue rendering, but eventually it's all green)
So far I've tried:
- Reinstalling PE 10
- Reinstalling Quicktime
- Copying all the photos to their own separate folder
- Editing each photo slightly (outside of PE 10) and resaving to make sure none of the photos are corrupted
- Emptying the temp folder
- Deleting all the renders and cache files and letting them rebuild
- Exporting small pieces of the timeline to try to identify a bad clip -- this is a maddening process and I did find one clip that would generate the error, but I managed to export that to AVI and reimport and replace on timeline. It would be awfully nice if PE would just TELL ME which clip it doesn't like if in fact it's a clip error.
- Turning off the shadow / highlight feature I had on some clips, but this wasn't the issue, smaller sections with these clips exported fine
- Tried exporting to various formats: Vimeo SD, MPEG DV Standard, iPad Standard High Quality, AVI -- all result in the same error (the format I want by the way is Vimeo SD)
- Rebooting the machine and turning everything off that might possibly consume memory
This machine has never had problems exporting in the past. One thing I did try that worked -- installed PE 10 on another (less capable) Win 7 machine, and fed it all the media via an external drive. The other machine did the export fine (though it took a while given it is underpowered). This is nothing more than a work around though as I don't normally have access to this machine and I'm not done editing.
I'm at my wits' end! What else can I do to get this movie file to export?
Appreciate any help or clues you can provide to solve this mystery.Oh, that is tragic!
I never had any issues with mine. Maybe it knew how respectful I was, having come from manual rewinds and a sync block? The Moviola was a godsend, at least for me. I am glad that I got to edit film, and on many setups, as some of that translated well to digital Video. Back when I was in film school, Video was 2" tape, and the only editing was by cutting at a 45 degree angle, and splicing the tape. There was not even deck-to-deck editing, way back then. Also, Video looked like crap, at least to my eyes. We could only use a switcher, to "edit," or do a feed to air. Looked like crap!
As for the Lexus, I can imagine all sorts of problems. My new LX-570 requires me to "Accept," when I put it into reverse, on the rear-view monitor! At least my wife's MB does not require that, but it is a 2011 model, so maybe the 2013 models will require that the user sign off on all sorts of "stuff."
Now, I can play Finding Nemo, for my rear-seat passengers, while driving, but the front-seat passengers cannot see it, which is just fine. When driving, I am not even a fan of hands-free calls, and declined most of the streaming stock quotes, etc. for XM/Sirius radio. NOT while I am driving. I will save that for reading the WSJ in the club at the airport.
Some years ago, our driver in London got a new BMW 7-series, and it allowed the playing of DVD's, even in the front, while driving. Not sure that I would want that, but such is life. At least his seats' ventilation system was "well-chilled," where ours' are just air. He almost froze my bum, showing off his new auto.
Now, working with PS, or PrE in an auto, or even on a mobile device, is just not something that I can wrap my old head around. I want a fast computer, with a big display, and cannot imagine editing Images, or Video, on any handheld (or auto) device.
Hunt -
My ipad keeps crashing and this time it won't come back on it just keeps telling me to connect to itunes which I did and it just keeps telling me it can't restore this ipad because an error has occured! Really need help please?
If it keeps coming up with an unknown error - no error code given - try another computer. If that doesn't work, it's time to take it to an Apple Store or an authorized service center to have the device evaluated.
-
After Effects PNG Sequence Error Help Please
When I try to render a png sequence I got the following errors
After effects warning: Could not create file <file path> Access was denie
Another message box saying
AEGP plugin PNGIO Support: Unable to create PNGIO
(5027::12)
Another message box saying
After Effects error cannot close a closed file
(3::5)
It renders a few frames and then it crashes with these errors. Please help THANKSHere is my log
Adobe After Effects v12.0 (Windows 64) render log for project “Untitled Project.aep”
Rendering started on 11/8/2014 at 9:34:58 AM
11/8/2014 9:34:58 AM: Starting composition “cinematicsPre 2”.
Render Settings: Best Settings
Quality: Best
Resolution: Full
Size: 1702 x 953
Proxy Use: Use No Proxies
Effects: Current Settings
Disk Cache: Read Only
Color Depth: Current Settings
Frame Blending: On for Checked Layers
Field Render: Off
Pulldown: Off
Motion Blur: On for Checked Layers
Solos: Current Settings
Time Span: Work Area
Start: 0:00:04:10
End: 0:00:25:27
Duration: 0:00:21:19
Frame Rate: 30.00
Guide Layers: All Off
Skip Existing Files: Off
Output Module:Lossless
Output To:C:\Users\Matthew\Desktop\Youtube Stuff\ObeyRC\Sequence\1\cinematicsPre 2_[#####].png
Format: PNG
Output Info: -
Start Frame: 130
Output Audio: -
Channels: RGB
Depth: Millions of Colors
Color: Premultiplied
Resize: -
Crop: -
Final Size: 1702 x 953
Profile: -
Post-Render Action: None
0:00:04:10 (1): 3 Seconds
0:00:04:11 (2): 1 Seconds
0:00:04:12 (3): 1 Seconds
0:00:04:13 (4): 1 Seconds
0:00:04:14 (5): 1 Seconds
0:00:04:15 (6): 1 Seconds
0:00:04:16 (7): 1 Seconds
0:00:04:17 (8): 1 Seconds
0:00:04:18 (9): 1 Seconds
0:00:04:19 (10): 1 Seconds
0:00:04:20 (11): 1 Seconds
0:00:04:21 (12): 1 Seconds
0:00:04:22 (13): 1 Seconds
0:00:04:23 (14): 1 Seconds
0:00:04:24 (15): 1 Seconds
0:00:04:25 (16): 1 Seconds
0:00:04:26 (17): 0 Seconds
0:00:04:27 (18): 1 Seconds
0:00:04:28 (19): 1 Seconds
0:00:04:29 (20): 1 Seconds
0:00:05:00 (21): 1 Seconds
0:00:05:01 (22): 1 Seconds
0:00:05:02 (23): 1 Seconds
0:00:05:03 (24): 0 Seconds
After Effects warning: Could not create the file 'C:\Users\Matthew\Desktop\Youtube Stuff\ObeyRC\Sequence\1\cinematicsPre 2_00154.png'. Access was denied.
AEGP Plugin PNGIO Support: Unable to create PNGIO. (5027 :: 12)
After Effects error: cannot close a closed file. (3 :: 5)
11/8/2014 9:35:23 AM: Finished composition “cinematicsPre 2”.
Total Time Elapsed: 25 Seconds
Log closed on 11/8/2014 at 9:35:23 AM -
Every time I install itunes 10.4.1 64bit for Win 7, it says it is unable to find quicktime, then instructs me to uninstall itunes then install it again. I've done this several times but still have the same problem. There is also another promt that says quicktime can't find the entry point and there's an error having to do with QTCF.dll ... what is this and how can I get my iTunes to work? Help please!
hi guys i found the solution from a wizard of the community and it works, so u may try as follows:-
Correct Answer by b noir on Aug 24, 2011 8:13 PM
Let's try a standalone QuickTime.msi update. It may not install correctly either, but fingers crossed at least the error messages we get from that install may better indicate the nature of the trouble with the QuickTime install.
Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
http://www.apple.com/itunes/download/
Download and install the free trial version of WinRAR:
http://www.rarlab.com/
Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
Go into the folder and doubleclick the QuickTime.msi to do a standalone QuickTime.msi install.
Does it install properly for you? If so, does iTunes install properly now?
If instead you get an error message during the install, let us know what it says. (Precise text, please.) -
Procedure created with compilation errors. help?
SQL> create or replace procedure p_update_audit_log
2 ( p_audit_id audit_log.audit_id%type
3 p_grade_update audit_log.grade_update%type
4 p_grade audit_log.grade%type
5 sys_date
6 p_user_id audit_log.user_id%type
7 is
8 BEGIN
9 insert into audit_log (user_id, audit_id, grade, grade_update,
10 sys_date)
11 values (p_user_id, p_audit_id, p_grade, p_grade_update, sys_date);
12 END p_update_audit_log;
13
14
15
16
17
18 /
Warning: Procedure created with compilation errors.
SQL> show errors
Errors for PROCEDURE P_UPDATE_AUDIT_LOG:
LINE/COL ERROR
3/1 PLS-00103: Encountered the symbol "P_GRADE_UPDATE" when expecting
one of the following:
:= ) , default character
The symbol "," was substituted for "P_GRADE_UPDATE" to continue.
4/1 PLS-00103: Encountered the symbol "P_GRADE" when expecting one of
the following:
:= ) , default character
The symbol "," was substituted for "P_GRADE" to continue.
5/1 PLS-00103: Encountered the symbol "SYS_DATE" when expecting one
LINE/COL ERROR
of the following:
:= ) , default character
The symbol ", was inserted before "SYS_DATE" to continue.
7/1 PLS-00103: Encountered the symbol "IS" when expecting one of the
following:
:= ) , default character
The symbol ")" was substituted for "IS" to continue.
Could anyone help me with this problem?These are syntax errors:
Try this
create or replace procedure p_update_audit_log
( p_audit_id audit_log.audit_id%type,
p_grade_update audit_log.grade_update%type,
p_grade audit_log.grade%type,
sys_date DATE,
p_user_id audit_log.user_id%type)
is
BEGIN
insert into audit_log (user_id, audit_id, grade, grade_update,
sys_date)
values (p_user_id, p_audit_id, p_grade, p_grade_update, sys_date);
END p_update_audit_log; -
hi
i have the following code which is a retrive method from an array list
however im getting a compile error i dont understand, it says:
"non-static method get Firstname() cannot be referenced from a static context"
if anybody is able to tell me where iv gone wrong id very much appreciate it
public Player retrievePlayer(String firstname, String surname)
Player retPlayer = null;
for (Player player : players)
if (Player.getFirstname().equals(firstname) ||
Player.getSurname().equals(surname))
retPlayer = player;
return retPlayer;
}Don't you mean:
public Player retrievePlayer(String firstname, String surname)
Player retPlayer = null;
for (Player player : players)
if (player.getFirstname().equals(firstname) ||
player.getSurname().equals(surname))
retPlayer = player;
return retPlayer;
} -
Xcode entering input error help please
When i run Xcode 4.5.2 on Lion and i need to enter some input (ex. cin.getline(array,10)), i need to press enter two times to keep going.
Here is the code:
player1 and palindrom are arrays of char
and here is the output:
I enter Juan in player1 then i press [Enter] and i need to press another [Enter] if i want the prgram to continue
and when i enter the palindrom is not stored in the array, instead the second [Enter] is stored on the palindrom array.
Help please
i dont know what to do i have looked on the internet but i havent found anything to solve this problem......You are mixing up two different ways of getting user input.
1. getline -- a standard <stdio> function which reads user input and a return;
2. cin -- a C++ <iostream> function which reads user input and a return.
See http://crasseux.com/books/ctutorial/getline.html and http://www.htmlhelpcentral.com/messageboard/showthread.php?4359-C-Tutorial-1-cou t-cin for the proper way to use either one of them; you cannot use both in the same command.
quiban92 wrote:
i dont know what to do i have looked on the internet but i havent found anything to solve this problem......
Those two links were the very first hits on a search for "getline tutorial" and "cin tutorial". -
Help Finding Compiler error solution please
When I type in Javac at C prompt to this code I receive the following errors
Code:
public class PayrollExecute
// main method
public static void main( String args[] )
// Display welcome message
Payroll myPayroll = new Payroll( "Payroll " );
mypayroll.displayMessage(); // display first message
myPayroll.determineWeeklyRate(); // find weekly rate
} // end main method
} // end class
Error:
C:\>Javac Payroll.java
Payroll.java:1: class PayrollExecute is public, should be declared in a file named PayrollExecute.java
public class PayrollExecute
^
.\Payroll.java:1: class PayrollExecute is public, should be declared in a file named PayrollExecute.java
public class PayrollExecute
^
Payroll.java:13: cannot access Payroll
bad class file: .\Payroll.java
file does not contain class Payroll
Please remove or make sure it appears in the correct subdirectory of the classp
th.
Payroll myPayroll = new Payroll( "Payroll " );
^
3 errors
C:\>The name of the file you are compiling needs to be PayrollExecute.java OR remove the "public" before public class PayrollExecute.
Either choice should do the trick. -
Compiling error. help!!!!!!
in .cc file only one statement:
#include"dmcb.hh"
in dmcb.hh, just one template class was defined:
#ifndef DM_CB_h_1
#define DM_CB_h_1
#include<DMCBContainer.hh>
template <class TData,class TObject>
class DM_CB : public DM_CBContainer<TData>
public :
DM_CB(TObject* target_to_store )
: target(target_to_store)
target = target_to_store ;
DM_CB(const DM_CB<TData,TObject>& original) : target(original.target)
virtual ~DM_CB()
TObject* get_target() const {return target.resolve();};
void* get_CBtarget() const {return target.resolve();};
static os_typespec* get_os_typespec();
protected :
os_Reference<TObject> target ;
#endif then I compiled it as follow:
CC -library=rwtools7,iostream -c dmcb.o dmcb.cc
it report error:
1.Error: "}" expected instead of "end of file".
2 Use ";" to terminate declarations
Does anybody experience such problem ? Please help me !! thank you!!Unfortunately, the Forum software sometimes drops things in angle brackets, so the include statement, and possibly some other code, is missing. Types os_Reference and os_typespec are not declared in the sample code. I added typedefs declaring them "int" and the code compiled OK by itself using several Sun compilers. (You don't say which compiler you are using.)
Maybe the problem is in whatever files you are including.
But your problem might also be related to the code organization. You are not following the Sun C++ rules for template definition files. The rules are these:
If you separate template declarations and template definitions, put the declarations in a file T.h and the corresponding definitions in a file T.cc (or T.cpp, T.cxx, T.c). The T.c file must contain the definitions for the templates declared in T.h, and nothing else. No #include directives, no other declarations.
When the compiler sees a declaration for template X in T.h but not a needed definition, it automatically includes file T.cc if it exists.
This example is backwards, and runs the risk of recursive file inclusion until the compiler runs out of memory, or exceeds some other system limit.
Try fixing the code organization first. If that does not eliminate the problem, try posting the code again putting a space before and after each "<" and ">". Also be sure to preview your post to be sure it looks the way you expect. -
I'm just learning PS scripting and Chef Programming, so I'm sure I'm missing something simple. I'm trying to run a recipe that is using PS as the interpreter. I've ensured I'm running PS in 64 bit with admin privileges, and have Imported the ServerManager
module. I even added a line to my script to have it run that first, but am still receiving an error in my script. I'm running this on a VM of Server 2008R2
Script:
powershell_script 'Install IIS' do
code "Import-Module ServerManager -passthru"
code "Add-WindowsFeature Web-Server"
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name Web-Server).Installed"
end
Error:
PS C:\Users\Administrator\chef-repo> chef-apply webserver.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* powershell_script[Install IIS] action run
================================================================================
Error executing action `run` on resource 'powershell_script[Install IIS]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
---- Begin output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat
None -File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" ----
STDOUT:
STDERR: The term 'Add-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
---- End output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat No
ne -File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" ----
Ran "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -File "C:/Us
ers/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" returned 1
Resource Declaration:
# In webserver.rb
1: powershell_script 'Install IIS' do
2: code "Import-Module ServerManager -passthru"
3: code "Add-WindowsFeature Web-Server"
4: guard_interpreter :powershell_script
5: not_if "(Get-WindowsFeature -Name Web-Server).Installed"
6: end
Compiled Resource:
# Declared in webserver.rb:1:in `run_chef_recipe'
powershell_script("Install IIS") do
action "run"
retries 0
retry_delay 2
guard_interpreter :powershell_script
command "\"powershell.exe\" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -Fi
le \"C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1\""
backup 5
returns 0
code "Add-WindowsFeature Web-Server"
interpreter "powershell.exe"
cookbook_name "(chef-apply cookbook)"
recipe_name "(chef-apply recipe)"
not_if "(Get-WindowsFeature -Name Web-Server).Installed"
end
[2014-12-24T10:29:56-08:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out
[2014-12-24T10:29:56-08:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: powershell_script[Install IIS] ((chef-apply coo
kbook)::(chef-apply recipe) line 1) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0
], but received '1'
---- Begin output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None
-File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" ----
STDOUT:
STDERR: The term 'Add-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable prog
ram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
---- End output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -
File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" ----
Ran "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -File "C:/Users/
ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" returned 1Hi There,
We have a application named Microsoft SCOM. That as well requires ISS to be installed. I tried this long back and it worked in powershell. Below is the powershell script i used to install IIS and some specific features from it. Hope it helps in altering
it and making one of your own script.
1. Launch the PowerShell command
prompt
Run this command
Import-Module ServerManager
3. Press Enter
4. Run this
command
Add-WindowsFeature NET-Framework-Core,Web-Metabase,Web-WMI,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Filtering,Web-Windows-Auth,
Web-Mgmt-Console –restart
Gautam.75801 -
Chapter end action triggers General Error - Help please!
Hi, I am working on a project and have come to a big problem in the last hurdle, classic! Really need your help, experts!
I have 2 Timelines, each one with 6 audio tracks and 2 subtitle tracks
One of the timelines is longer than the other one because it has two different films in it.
Everything was working fine until I realised I had forgotten to set the end action to the last chapter of the first video in the timeline, I need it to either stop or return to main menu or last menu, otherwise it will go on to play the second film and i don't want this to happen.
When I set the end action to the chapter 10, it looks fine, I check and no problems.
But when it starts transcoding... after a bit, when it has transcoded all the languages it goes to prepare to build and I get GENERAL ERROR and it freezes.
Please please please if somebody can help me it would be very much appreciated.
Mariana
ps I have no overrides or anything like that in the whole projectPlease list the Assets on each of the two Timelines with full detail. A screen-cap of each would probably be very useful and save you some typing.
Some things to also think about is are there any spots where your Audio is longer (even very slightly) than the accompanying Video? Are there any gaps on any of the Timelines? When you added that "End Action," exactly how/where did you add it? Also, if you have any Chapter Playlists, or Playlists, please give details on those.
Note: to attach the screen-caps, us the little "camera" icon on the editing screen:
Good luck,
Hunt
Maybe you are looking for
-
XFi-Fatal1ty /w top end machine stutteri
I purchased and built a new computer. It's a: Quad core QX6700 (4 x 2.667GHz) processor< EVGA nForce 680i motherboard< EVGA Geforce 8800GTX /w 768MB RAM per card x 2 in SLI mode< 2GB PC6400 RAM (800MHz)< XFi Fatalty Audio card< 50GB Raptor HD (fast)<
-
Hi All. Ive just finished downloading episodes from 2 different programs.I've sorted, grouped etc them all in iTunes, however when i sync them to my iPhone, they all group under program X rather than two separate programs; x and y. Any help as to how
-
hellpppp meee i just want french subtitles so when i watch the movie with my french friend, she'll understand!! thanks
-
Hi all, I have a pair of 4710s running A3(2.5) OS. Could somebody please recommend what would be the best OS to upgrade to? Only requirement is that it supports this feature "insert Subject and Subject-CN client certificate headers". Thank you very m
-
Assign a new Screen sequence to a BP role.
Hi, I am trying to assign a new 'Z-screen sequence' to a new 'Z-BP role' but the 'Z-screen sequence' does not appear when creating a BP with the 'Z-BP role'. The new 'Z-screen sequence category' looks fine in the BUCA (Screen configuration) I have as