[SOLVED]Makepkg does not create package
I downloaded the b43 firmware from the AUR (https://aur.archlinux.org/packages.php?ID=21690) and I executed makepkg -S, but there isn't any file that I can install.
Last edited by giwrg98 (2012-04-17 14:29:04)
iAmAhab wrote:
/dev/zero wrote:
I'm guessing you're going to hate this, but it's appropriate:
RTFM
And if that doesn't work, look up AUR on the wiki.
I'm not familiar with this particular abbreviation
So google: http://en.wikipedia.org/wiki/RTFM :-)
iAmAhab wrote:
but I'm gonna go out on a limb and guess:
"Read The Fucking Manual" ?
Or 'read the fine manual' / 'read the friendly manual'.
giwrg98, if things are working now, please remember to mark the thread as solved.
Similar Messages
-
Captive runtime -target bundle does not create the package fails after creating a .tmp folder
Hi Adobe Team, Experts,
I cannot create a captive runtime package successfully on windows.
This is the command I am using to create a captive runtime package for windows
adt -package -keystore CodeSigning.pfx -storetype pkcs12 -storepass password -target bundle TestPackage Test-app.xml Test.swf
The issue is the above command creates a .tmp directory "adt5072057577475387637.tmp" but does not create a directory by name "TestPackage" .
Another observation is the above command works in-consistently it seems to create the directory sometimes but fails for the most.
Funny enough !! It worked when I was creating a POC but now when I am trying to release it stops working on me.
It is the same machine I did POC on.
The application descriptor has
<supportedProfiles>desktop extendedDesktop</supportedProfiles>
I have also tried
adt -package -keystore CodeSigning.pfx -storetype pkcs12 -storepass password -target bundle TestPackage.exe Test-app.xml Test.swf
as mentioned here - http://www.riaspace.com/2011/08/bundling-air-3-runtime-in-air-desktop-applications/
Flex SDK version - 4.6.0
AIR SDK version - 3.1
JDK version - jdk1.6.0_18
Please advise as to how to fix this issue.
Thanks,
vshareHi vshare,
did you ever find a solution to this? I'm running into the same problem with no apparent solution.
Thanks! -
Makepkg does not extract anything before trying to make [SOLVED]
I have a puzzeling problem with my makepkg. When trying to install any package from the aur (with or without yaourt) I get an error similar to this:
[chris@cow ~]$ wget http://aur.archlinux.org/packages/opera/opera.tar.gz
--2009-09-14 16:55:28-- http://aur.archlinux.org/packages/opera/opera.tar.gz
Resolving aur.archlinux.org... 208.92.232.29
Connecting to aur.archlinux.org|208.92.232.29|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2724 (2.7K) [application/x-tgz]
Saving to: `opera.tar.gz'
100%[=====================================================================================================================================================================================================>] 2,724 --.-K/s in 0.001s
2009-09-14 16:55:28 (2.87 MB/s) - `opera.tar.gz' saved [2724/2724]
[chris@cow ~]$ tar -xzvf opera.tar.gz
opera
opera/opera.desktop
opera/PKGBUILD
opera/opera-qt4-theme.patch
tar: Record size = 18 blocks
[chris@cow ~]$ cd opera
opera/ opera.tar.gz
[chris@cow ~]$ cd opera
[chris@cow opera]$ makepkg
==> Making package: opera 10.00-3 x86_64 (Mon Sep 14 16:56:23 PDT 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Downloading opera-10.00.gcc4-qt4.x86_64.tar.bz2...
--2009-09-14 16:56:24-- http://ftp.opera.com/pub/opera/linux/10 … 64.tar.bz2
Resolving ftp.opera.com... 195.189.143.122
Connecting to ftp.opera.com|195.189.143.122|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9262414 (8.8M) [application/x-tar]
Saving to: `opera-10.00.gcc4-qt4.x86_64.tar.bz2.part'
100%[=====================================================================================================================================================================================================>] 9,262,414 79.7K/s in 23s
2009-09-14 16:56:47 (399 KB/s) - `opera-10.00.gcc4-qt4.x86_64.tar.bz2.part' saved [9262414/9262414]
-> Found opera.desktop in build dir
-> Found opera-qt4-theme.patch in build dir
==> Validating source files with md5sums...
opera-10.00.gcc4-qt4.x86_64.tar.bz2 ... Passed
opera.desktop ... Passed
opera-qt4-theme.patch ... Passed
==> Extracting Sources...
==> Entering fakeroot environment...
==> Starting build()...
/home/chris/opera/PKGBUILD: line 24: cd: /home/chris/opera/src/opera-10.00-4585.gcc4-qt4.x86_64: No such file or directory
sed: can't read usr/share/opera/defaults/pluginpath.ini: No such file or directory
==> ERROR: Build Failed.
Aborting...
[chris@cow opera]$
With the good help of irc people I discovered that makepkg was not extracting archives before it tried to use them to make a package. (An example in this case would be it not extracting opera-10.00.gcc4-qt4.x86_64.bz2 and then trying to use what would have resulted from its extraction to actually make the application.) This is why it would give the "No such file or directory" error.
I havn't the slightest clue why packages aren't extracting. Any ideas?
Last edited by opothehippo (2009-09-23 03:14:19)I edited my makepkg as follows:
642 # fix flyspray #6246
643 local file_type=$(file -bizL "$file")
644 echo "FILE TYPE: $file_type"
645 local cmd=''
646 case "$file_type" in
647 *application/x-tar*|*application/zip*|*application/x-zip*|*application/x-cpio*)
648 echo "CASE TAR"
649 cmd="bsdtar -x -f" ;;
650 *application/x-gzip*)
651 echo "CASE GZIP"
652 cmd="gunzip -d -f" ;;
653 *application/x-bzip*)
654 echo "CASE BZIP"
655 cmd="bunzip2 -f" ;;
656 *application/x-xz*)
657 echo "CASE XZ"
658 cmd="xz -d -f" ;;
659 *)
660 # Don't know what to use to extract this file,
661 # skip to the next file
662 echo "CASE SKIP"
663 continue;;
664 esac
665
I ran makepkg again and received this:
==> Extracting Sources...
FILE TYPE: application/x-tar; charset=binary compressed-encoding=application/x-bzip2; charset=binary; charset=binary
CASE SKIP
FILE TYPE: text/plain; charset=utf-8
CASE SKIP
FILE TYPE: text/plain; charset=us-ascii
CASE SKIP
==> Entering fakeroot environment...
==> Starting build()...
/tmp/yaourt-tmp-chris/aur-opera/opera/./PKGBUILD: line 24: cd: /tmp/yaourt-tmp-chris/aur-opera/opera/src/opera-10.00-4585.gcc4-qt4.x86_64: No such file or directory
sed: can't read usr/share/opera/defaults/pluginpath.ini: No such file or directory
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build opera package.
I have a limited understanding of this, I'm guessing makepkg does not recognize the binary and so it skips it?
@iBertus: Thanks for veryifying it works on you 64 bit arch. However I've had this problem on 32 bit arch also. -
Payment Wizard Does not create the File
Hi I am trying to run the payment wizard and in the final step it says it ran successful and create the outgoing payments but it does not create the payment file for the bank.
Step 1
Start a new Payment run
Step 2
payment type : out going
payment method : bank transfer
File Path : Go to Desktop and file name is test
Step3
Select the business partner
Step 4
Select the date range
Step 5
Select the payment method
Step 6
Select the Invoices
Step 7
Execute
It says successfully Executed the payment and create outgoing payment for the business partner.
But it does not create the payment file (test in the Desktop)
Please help me!!!
Thanks
SanjayaHi Sanjaya,
Check the link
Payment Wizard
Payment Wizard Run does not create Payment/Check
Payment Wizard/Engine - creation of Bank File
*Close the thread if issue solved.
Regards
Jambulingam.P -
SQLJ Translation does not create profile file
SQLJ Translation does not create profile file.
After translating a small file HelloWorld.sqlj
the following files are created:
HelloWorld_SJProfileKeys.class
HelloWorld.class
HelloWorld.java
Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
My environment variables were set up with instructions from:
http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
When I run java HelloWorld to run the .java file, I get the error:
SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
I searched the internet high and low for a similar error to mine but I could not find a match.
I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
but it does not help me.
"ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
If you see an exception such as:
java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
java.lang.ClassNotFoundException:
xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
Any ideas? Thanks in advance,
John
Helloworld.sqlj before translation:
The program HelloWorld.sqlj illustrates how to connect to a
database, and display the words "Hello World" along with
the current date.
// import required packages
import java.sql.Date;
import java.sql.SQLException;
import oracle.sqlj.runtime.Oracle;
public class HelloWorld {
public static void main(String [] args) {
java.sql.Date current_date;
try {
// connect to the database
Oracle.connect(
"jdbc:oracle:thin:@localhost:1521:orac",
"scott",
"tiger"
// get the current date from the database
#sql { SELECT sysdate INTO :current_date FROM dual };
// display message
System.out.println("Hello World! The current date is " +
current_date);
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} finally {
try {
// disconnect from the database
Oracle.close();
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} // end of main()
HelloWorld.java after translation:
/*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
The program HelloWorld.sqlj illustrates how to connect to a
database, and display the words "Hello World" along with
the current date.
// import required packages
import java.sql.Date;
import java.sql.SQLException;
import oracle.sqlj.runtime.Oracle;
public class HelloWorld {
public static void main(String [] args) {
java.sql.Date current_date;
try {
// connect to the database
Oracle.connect(
"jdbc:oracle:thin:@localhost:1521:orcl",
"scott",
"tiger"
// get the current date from the database
/*@lineinfo:generated-code*//*@lineinfo:28^7*/
// #sql { SELECT sysdate FROM dual };
sqlj.runtime.profile.RTResultSet __sJT_rtRs;
sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
synchronized (__sJT_execCtx) {
sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
try
sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
__sJT_rtRs = __sJT_result;
finally
__sJT_execCtx.releaseStatement();
try
sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
if (!__sJT_rtRs.next())
sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
current_date = __sJT_rtRs.getDate(1);
if (__sJT_rtRs.next())
sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
finally
__sJT_rtRs.close();
/*@lineinfo:user-code*//*@lineinfo:28^58*/
// display message
System.out.println("Hello World! The current date is " +
current_date);
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} finally {
try {
// disconnect from the database
Oracle.close();
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} // end of main()
}/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
private static HelloWorld_SJProfileKeys inst = null;
public static java.lang.Object getKey(int keyNum)
throws java.sql.SQLException
if (inst == null)
inst = new HelloWorld_SJProfileKeys();
return inst.keys[keyNum];
private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
private java.lang.Object[] keys;
private HelloWorld_SJProfileKeys()
throws java.sql.SQLException
keys = new java.lang.Object[1];
keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
}SQLJ Translation does not create profile file.
After translating a small file HelloWorld.sqlj
the following files are created:
HelloWorld_SJProfileKeys.class
HelloWorld.class
HelloWorld.java
Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
My environment variables were set up with instructions from:
http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
When I run java HelloWorld to run the .java file, I get the error:
SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
I searched the internet high and low for a similar error to mine but I could not find a match.
I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
but it does not help me.
"ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
If you see an exception such as:
java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
java.lang.ClassNotFoundException:
xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
Any ideas? Thanks in advance,
John
Helloworld.sqlj before translation:
The program HelloWorld.sqlj illustrates how to connect to a
database, and display the words "Hello World" along with
the current date.
// import required packages
import java.sql.Date;
import java.sql.SQLException;
import oracle.sqlj.runtime.Oracle;
public class HelloWorld {
public static void main(String [] args) {
java.sql.Date current_date;
try {
// connect to the database
Oracle.connect(
"jdbc:oracle:thin:@localhost:1521:orac",
"scott",
"tiger"
// get the current date from the database
#sql { SELECT sysdate INTO :current_date FROM dual };
// display message
System.out.println("Hello World! The current date is " +
current_date);
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} finally {
try {
// disconnect from the database
Oracle.close();
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} // end of main()
HelloWorld.java after translation:
/*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
The program HelloWorld.sqlj illustrates how to connect to a
database, and display the words "Hello World" along with
the current date.
// import required packages
import java.sql.Date;
import java.sql.SQLException;
import oracle.sqlj.runtime.Oracle;
public class HelloWorld {
public static void main(String [] args) {
java.sql.Date current_date;
try {
// connect to the database
Oracle.connect(
"jdbc:oracle:thin:@localhost:1521:orcl",
"scott",
"tiger"
// get the current date from the database
/*@lineinfo:generated-code*//*@lineinfo:28^7*/
// #sql { SELECT sysdate FROM dual };
sqlj.runtime.profile.RTResultSet __sJT_rtRs;
sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
synchronized (__sJT_execCtx) {
sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
try
sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
__sJT_rtRs = __sJT_result;
finally
__sJT_execCtx.releaseStatement();
try
sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
if (!__sJT_rtRs.next())
sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
current_date = __sJT_rtRs.getDate(1);
if (__sJT_rtRs.next())
sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
finally
__sJT_rtRs.close();
/*@lineinfo:user-code*//*@lineinfo:28^58*/
// display message
System.out.println("Hello World! The current date is " +
current_date);
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} finally {
try {
// disconnect from the database
Oracle.close();
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} // end of main()
}/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
private static HelloWorld_SJProfileKeys inst = null;
public static java.lang.Object getKey(int keyNum)
throws java.sql.SQLException
if (inst == null)
inst = new HelloWorld_SJProfileKeys();
return inst.keys[keyNum];
private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
private java.lang.Object[] keys;
private HelloWorld_SJProfileKeys()
throws java.sql.SQLException
keys = new java.lang.Object[1];
keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
} -
save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014
When I open is adobe acrobat I get this message.
"This is an Adobe® Illustrator® File that was
saved without PDF Content.
To Place or open this le in other
applications, it should be re-saved from
Adobe Illustrator with the "Create PDF
Compatible File" option turned on. This
option is in the Illustrator Native Format
Options dialog box, which appears when
saving an Adobe Illustrator le using the
Save As command." -
MRP does not creates Shcedule Line
I have a valid scheduling agreement LPA in place. Scheduling Agreement is approved and released status.
I have source list also maintained for same scheduling agreement with long validity and MRP indicator as 2 - Create Schedule line automatically.
I am running MRP using following parameters in MD02.
Processing key NETCH Net Change in Total Horizon
Create purchase req. 3 Planned orders
Delivery schedules 3 Schedule lines
Create MRP list 1 MRP list
Planning mode 3 Delete and recreate planning data
Scheduling 2 Lead Time Scheduling and Capacity Planni
Even schedule line and other parameters maintained properly, MRP creates planned order and does not creates Schedule Line automatically. Material Master is maintained MRP Type PD, Lot Size as Replenishment to maximum stock level, Safety stock, No strategy and availability on.
What I am doing wrong? With same setting in other system it is working perfectly fine.
Any feedback appreciated.
Thanks
PPHi
Check whether the Agreement Open Target value .
If the target quantity was completed . so system will not create the Schedule lines for the material
2. If you mainatian the open period in the smk.
so system will create the planned order instead of schedule agreement. check -
Mail does not create new emails based on the highlighted mailbox, but rather according the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part? (I do have the setting for creating new emails from the highlighted mailbox checked.)
The questions about time was not only because of thinking about the Time Machine, but also possible impact on recognizing which messages remaining on a POP server (doesn't apply to IMAP) have been already downloaded. In the Mail folder, at its root level, in Mail 3.x there is a file named MessageUidsAlreadyDownloaded3 that should prevent duplicate downloading -- some servers may not communicate the best with respect to that, and the universal index must certainly be involved in updating that index file. If it corrupts, it can inhibit proper downloading. However, setting the account up in a New User Account and having the same problem does not point that way, unless your POP3 server is very different from most.
That universal index is also typically involved when messages are meant to be moved from the Inbox to another mailbox -- in Mail 3.x the message does not move, but rather is copied, and then erased from the origin mailbox. That requires updating the Envelope Index to keep track of where the message is, and should keep track of where it is supposed to have been removed after the "Move".
Ernie -
Adobe After Effects CC 2014 Multi-machine rendering does not create RCF after Collect-File
This was working in the previous release. After going through all of the steps to perform a multi-machine render, not only does it say it is limiting it to 5 machines instead of the usual 99 (and I have over 100 cores on the render farm) but "Collect Files" (File/Dependencies/Collect Files) does not create the Render Control File (RCF) that kicks off the process on the other machines, like it did before and is supposed to do.
This release was supposed to fix the 32 core limitation on render nodes (my server has 48), but now does nothing at all.
Anyway, I assume there is a check box somewhere that says "do something" that hasn't been checked and another that says "Maybe my machine has more than 5 cores", and I would appreciate being steered in the direction of these new mis-features.
Just as background, the 48 core server does show the little TV screen that monitors the watch folder, and I know for a fact that process looks for the "RCF" file. Looking at the directory specified for "collect files", I can see that no RCF file is created, only 1 file, a report.txt file which contains this information is produced:
Report created:
7/9/2014 1:54:12 AM
Project name: highup.aep
Source files collected to:
P:\temp\highup folder
Source files collected: All
Collected comps:
Thomas Falke - High Again High On Emotion)
Number of collected files: 1
Size of collected files: 63.4 MB
Collected source files:
C:\Users\Jeff K\Videos\Down\2014-2015\Thomas Falke - High Again High On Emotion).mp4
Rendering plug-ins:
Classic 3D
Effects used: 1
Effect: Detail-preserving UpscaleThe dialog box has been slightly refactored. You must click "Allow watch folder rendering" and then all is good. Hope this helps anyone else. Thanks to Rafil at customer support chat for this.
-
MS Outlook 2010 Add in Create pdf - does not create pdf of draft emails- Adobe Acrobat Pro X
In MS Outlook 2010 Add in Create pdf- does not create pdf of draft emails- this maybe the case, but just wanted to make sure this is normal for the program- though I guess one can print as an Adobe pdf but it does not maintain the hyperlinks of email addresses etc. the functionality is compromised in a print vs create a pdf.
Here's a workaround by the team:
Right click on the message from Explorer list view or folder view and chose the option to convert to PDF. -
Need to create a sales order that does not create demand
Hi,
We need to create a no cost sales order - that does not create demand
In our current set-up when we try to create a no cost sales order with a material ( It Cat = Norm) we see demand being created in MD04
What configuration settings will allow us a deliverable order - that does not create demand (no MRP run?)
Thanks,
SMHello,
For this set of requirement i think the best option would be to configure a New Sales Order Type and a new Schedule Line Category. In VOV6, While you are defining a new Schedule line category in the transaction flow make sure to switch off the three check box.
Transfer of requirements / Begin assembly order from SD
Availability check for sales
Product allocation active
Then when we are assigning this newly defined Schedule line Category to Item category, make sure to leave the field of MRP Type as blank in VOV5.
Regards,
Sarthak -
Server does not create ois ?
Hi folks !
At first I wanted to send some Strings via the Client to the Server and print them onto the screen. On a specific String "antwort" I would like to send an Object k from the Server to the Client and prove on the Client the correctness of the object by reading the attribute set on the serverside before sending.
But somehow the server does not create the ObjectInputStreams and I don�t know why.
That�s the code:
// Server:
public class Server {
public Server() {
try{
String input = new String();
ServerSocket sock = new ServerSocket(16348);
Socket socket = sock.accept();
System.out.println("socket"); // this line is printed on connection
ObjectInputStream sockin = new ObjectInputStream(socket.getInputStream());
System.out.println("objectinputstream"); // but this one never appears
ObjectOutputStream sockout = new ObjectOutputStream(socket.getOutputStream());
Kunde k = new Kunde();
k.setNummer(13);
while(!input.equals("Ende")){
input = sockin.readObject().toString();
if(input.equals("antwort")){
sockout.writeObject(k);
sockout.flush();
sockout.reset();
System.out.println(input);
socket.close();
catch(Exception e){
public static void main(String[] args) {
// TODO code application logic here
new Server();
// The Client
public class Client {
public Client() {
try{
Socket sock = new Socket("localhost",16348);
// System.out.println(sock.isOutputShutdown());
sock.setSoTimeout(5000);
System.out.println("socket hergestellt");
ObjectInputStream sockin = new ObjectInputStream(sock.getInputStream());
System.out.println("sockin");
ObjectOutputStream sockout = new ObjectOutputStream(sock.getOutputStream());
System.out.println("sockout");
String eing = "";
System.out.println("vor while");
while(!eing.equals("close")){
eing = erwarteEingabe();
System.out.println("Sende:"+eing);
if(eing.equals("antwort")){
sockout.writeObject(eing);
Kunde k = (Kunde)sockin.readObject();
System.out.println("Nummer des Kunden: "+k.getNr());
else{
sockout.writeObject(eing);
sockout.flush();
sockout.reset();
catch(Exception e){
System.out.println(e);
public static void main(String[] args) {
// TODO code application logic here
new Client();
private String erwarteEingabe(){
String eing = "";
System.out.println("nehme Eing entgegen");
try{
BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
return b.readLine();
catch(Exception e){
System.out.println(e);
return "";
}When you create an ObjectInputStream it tries to read the object stream header from the underlaying stream. In this case both your server and client are waiting for the other one to send the header before they can continue. This problem can be avoided by simply creating the object output streams first:ObjectOutputStream sockout = new ObjectOutputStream(socket.getOutputStream());
ObjectInputStream sockin = new ObjectInputStream(socket.getInputStream()); -
Package javax.servlet does not exist, package javax.servlet.http does not
Dear All,
I am a newbie to JAVA.
I installed JDK1.6.0_04, then NetBeans IDE 6.0
I tried compiling an example servlet, but got this error message:
package javax.servlet does not exist, package javax.servlet.http does not exist
I tried locating these packages, but in vain. I also tried setting the CLASSPATH to many values, still it did not work.
Can anyone, please, help me with this.
Should I be able to see/locate these packages, do I have to download them?
Thank you very much.davidgoodman wrote:
Dear All,
I am a newbie to JAVA.
I installed JDK1.6.0_04, then NetBeans IDE 6.0
I tried compiling an example servlet, but got this error message:
package javax.servlet does not exist, package javax.servlet.http does not exist
What servlet/JSP engine do you plan to deploy to? Tomcat, perhaps?I think it's Tomcat (C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14). Are there other engines that come with NetBeans IDE 6.0 (when I downloaded NetBeans, I chose ALL)
>
If so, you'll need to put the servlet JAR in your CLASSPATH. (servlet-api.jar for Tomcat 5.5 and earlier, servlet.jar for 6.0 >and later.)
I tried locating these packages, but in vain.
You won't find them until you realize that you have to deploy that servlet someplace.How to deploy?
I also tried setting the CLASSPATH to many values, still it did not work.
See above. What were you planning to set CLASSPATH to?First I set to:
C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\lib (because I found jar named servlet-api.jar in this folder)
Later I added this:
C:\Program Files\Java\jdk1.6.0_04\lib (out of trial-and-fail)
Finally I added some paths that lead to a library such as
C:\Program Files\glassfish-v2\lib
C:\Program Files\glassfish-v2\lib\ant\lib
Can anyone, please, help me with this.
Should I be able to see/locate these packages, do I have to download them?
You have to get a servlet/JSP engine. Step 1.Thank you for your help -
Transport Screen objects-GUI status(SAP does not create request, why)?
Hi experts,
I use SE80 to change GUI status, but system does not create a transport request for me to transfer? why?Hi,
Thanks for replay. Actually, the SE80->program->Gui status have some objects and they are already transfered. But I can't see them on target system. But When I create exactly the same name, the system tell me they are already created. I think it becuase the original language is 'DE' but I use default language 'EN' to modify and create the request? -
The SQLJ translater that comes with JDeveloper 9.0.3 preview does not create profiles (.SER) when running with -codegen=ansi or iso. Thus producing none runnable code.
It is not possible to set any switches in JDev.
Previous versions of the translated did produce the .SER files.
Is there a workaround possible?
Thanks,
RobertFo the answer and a workaround look here:
Re: A field is missing in my table.....
-Robert
Maybe you are looking for
-
Hey people, I am encountering some problems on unzipping received file. I have downloaded winrar for mac from http://unrarx.com/ However I cant open the zipped file. I actually downloaded it and click on the unrarx icon. I tried to test and extractin
-
Photoshop CS6 Student Limitations
Hi everyone. I have a few questions regarding Photoshop CS6 Student Edition that I hope someone can answer. I am fairly new to Photoshop and I've only used it in school and during the CC trial period. I've grown a liking to the software since it is m
-
EMET 4.1 (Update 1) - GPO Settings
We have successfully deployed EMET 4.1 Update 1 via SCCM and now I am controlling EMET settings with GPO using the EMET GPO templates from the Deployment folder. However, after group policy is set, you have to use the command "emet_conf.exe --refresh
-
Integration Config Steps between FI-CO-ISH
Hi All, Anyone can send me Integration Config Steps between FI-CO-ISH..to this is removed by moderator regards JK Edited by: Claudius Metze on May 16, 2008 10:35 AM
-
Hi there, A weird one I need help with. We have 3 macs at home and an iPhone that have all been joining mu airport network with no problems since day one. A few days ago my girlfriend's Macbook just stopped seeing our network on her machine. All are