To access the servlet code causing problems AM...
HelloI use 11gr1p1 and stack of the ADF. I have an ImageServlet and in it, I created an AM root to access the VO to read the image using the VO.
Everything works fine but anyway it messes with the framework and my beginning of LOVs gives below error when I click on the LOV icon.
java.lang.ClassCastException: oracle.jbo.uicli.binding.JUCtrlActionDef cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlActionDef
To locate what is causing the problem, I commented lines where I create an AM and return directly to the servlet. Then I did a mistake.
Any ideas?
The servlet code
-----------
if( request.getParameter( "ImageId" ) != null )
{
String contentType = "image/jpeg; charset=UTF-8";
response.setContentType( contentType );
oracle.jbo.domain.Number imageId = null;
try
{
imageId = new oracle.jbo.domain.Number( request.getParameter( "ImageId" ) );
}
catch( Exception e )
{
return;
}
OutputStream os = response.getOutputStream();
String amDef = "com.zzz.model.mdm.am.MDMMainService";
String config = "ConfigurationServiceLocal";
String viewObject = "OperaImagesRev";
String imageAttributeName = "BfileLocator";
String viewObjectBindParamName = "pBlobId";
if( imageId != null )
{
ApplicationModule am = Configuration.createRootApplicationModule( amDef, config );
try
{
ViewObject vo = am.findViewObject( viewObject );
vo.setNamedWhereClauseParam( viewObjectBindParamName, imageId );
vo.executeQuery();
if( vo.getEstimatedRowCount() > 0 )
{
Row row = vo.first();
oracle.jbo.domain.BFileDomain image =
( oracle.jbo.domain.BFileDomain )row.getAttribute( imageAttributeName );
image.openFile();
InputStream is = image.getInputStream();
byte[] buffer = new byte[10 * 1024];
int nread;
while( ( nread = is.read( buffer ) ) > 0 )
os.write( buffer, 0, nread );
os.close();
image.closeFile();
}
}
catch( Exception e )
{
//e.printStackTrace();
}
finally
{ if (am != null)
Configuration.releaseRootApplicationModule( am, false );
}
}
I ran in the same issue.
Creating an application root module breaks the link whole layer, when done outside the context of limited application. I mean there a servlet or the e-mail application itself.
In my case, I launched a planner to start all batch tasks now and then. Because the task has no application module I create a new one, that breaks the user interface.
Good news for you is that you can solve your problem in the servlet image if you change your web.xml file so that the servlet image goes through the filter adfBindings.
Just add a filter mapping
adfBindings
ImageServlet
FORWARD
REQUEST
to your web.xml file and your servlet is working again.
My case I still looking for a valid solution :-(
Timo
Tags: Java
Similar Questions
-
Hey, I have a laptop of dell 14zxps with windows 7... I get the error code 43 problem when I connect my USB to my laptop... n this laptop is designed in a way where the battery cant b removed... Please help me on how my USB is started again here... Thank you :D
Try this.
-
see the key code is problem
Hello
did you purchase your product of these companies like Amazon? If Yes, this isn't a serial number, only a code with which you can request a serial number from Adobe. Please take a look at http://helpx.adobe.com/x-productkb/global/find-serial-number.html. (Start here: How did you purchase your product?)
The next part, so I don't see at the very least, ceased to exist on my Adobe website, everything happens in the link above. I leave as an info yet, he could still fit for you. For this purpose, please click your way through your Adobe Store and find the button "get serial number". Fill in the form and after awhile, you will get the real serial number.
Hans-Günter
-
Problems accessing the C code execution
I had difficulties to get C code to run in my project bb10
test.h
#ifndef TEST_H_ #define TEST_H_ #ifdef __cplusplus extern "C" { #endif int callMe(void); #ifdef __cplusplus } #endif #endif /* TEST_H_ */
test.c
#include
#include #include #include "test.h" int callMe(void) { printf("C function called"); return 10; } got it: thread as a test that * should * work
I get 'Syntax error' for the extern "C" {line in test.h
compiler error is rather vague:
make [2]: * [o.le-v7-g/.obj/test.o] error 1
make [1]: * [debug] error 2
make: * [Device-Debug] error 2My compiler also gives me this:
-Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 - i. o o.le-v7-g/.obj/test.o... /SRC/test.c
Cc1: error: one or more files PCH used have been found, but they were not valid
Cc1: error: use - Winvalid-pch for more information
Cc1: fatal error: o.le-v7-g/.obj/BB_10: no such file or directory
compilation is complete.BB_10 is the name of the project, and there is an empty folder from BB_10 to the JavaScript on the Project Explorer resources, a red X icon on it. Don't know if this is related to all add C files to the project, but the second I delete the C, all the errors disappear.
Is there an extra step, or something really simple that I'm missing to get the C code execution? I'm completely stumped.
stephenpankiw wrote:
When I clean then rebuild I'll leave 2 errors at more than 300, and is fatal errors in common libraries as follows:
: / bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:54:20: fatal error: string: no such file or directory
but qstring.h is in that folder, I don't know how the compiler is absent, he
errors or because he cannot find a library more:
c:/bbndk/target_10_2_0_1155/QNX6/usr/include/Qt4/QtCore/QByteArray.h:606:1: error: unknown type name 'QByteArray.
Can't find the type of QByteArray in qbytearray.h? What is going on?
On the first error, he complains on line 54 of qstring.h, not not not find qstring.h. Line 54 of qstring.h is:
# include
which seeks to include a system lib. A quick search on Google for "qstring.h:54:20: fatal error: string: no such file or directory" gives a few discussion forums such as:
http://Qt-project.org/forums/viewthread/39367
where a person has apparently concluded that their use of the file .h/.c instead de.hpp/.cpp extensions extensions was causing their generation not to seek the library system in the right place. BTW, I'm not snarking you by mentioning research on google, just trying to help and to learn something of myself because I'd run into this problem myself.
-
I tried to install the drivers for a more BearPaw 2448TA scanner in the edition of Windows 7 Home Premium (64-bit).
Recently, a message appeared in the center of the Action to say that a new driver of Mustek systems was available, I downloaded and tried to install.
A messagebox is displayed during the installation with the following message
"Error 1606.Could not access network location------." and the installation will fail.Help would be greatly appreciated.
Hi HenryGib121,
Thank you for using the Microsoft Answers forums.
I suggest you to download and install the driver from the link below.
http://www.mustek.com/Mustek/support.php
This problem occurs because there is incorrect entries in the Shell folder of the user who is logged on to Microsoft Windows. When Windows Installer goes to the sale of Shell folder of the user who is logged on to the computer, Windows Installer cannot locate the correct entry.If the problem persists try the steps and check them off below.
You can create a system restore before trying the steps below in order to be on the safer side.
http://Windows.Microsoft.com/en-us/Windows7/create-a-restore-pointThe steps to correct this problem involve editing the Windows registry. Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk.
Here are the steps to fix it.
1. click on start, run, type regedit in the Open box, and then click OK.
2. look for the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell dossiers\
3 remove the entries that show the path that is listed in the error message.If the steps above did not resolve your problem, then you can try to create a new user account and check.
http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account
http://support.Microsoft.com/kb/811151 (this article is for xp, but can also be used for vista and windows 7)You can also contact the mustek support team for help.
http://www.mustek.com.tw/support/
Hope this information is useful.
Let me know if it worked.
Thank you, and in what concerns:
Umesh P - Microsoft Support -
I do not have Measurement Studio, but I use the 4 available with DAQmx .NET support.
The following code throws a timeout when calling ReadMultiSample(). Can someone please tell me what I'm doing wrong? I would get 40 000 samples with a sampling rate of 20 kHz. I've renamed by device USB-6216 of 'Meas1' by using MAX.
[edit] I want to emphasize that I use AnalogMultiChannelReader because I intend to grab more than one channel once I understand that.
Thanks in advance!
using (task task = new Task()) {}
task. AIChannels.CreateVoltageChannel ("Meas1/ai1", "", AITerminalConfiguration.Differential, -0.2, 0.2, AIVoltageUnits.Volts);
task. Timing.SampleQuantityMode = SampleQuantityMode.FiniteSamples;
task. Timing.SampleClockRate = 20000;
task. Timing.SamplesPerChannel = 40000;
AnalogMultiChannelReader reader = new AnalogMultiChannelReader (task. Stream);
task. Start();
samples is reader. ReadMultiSample (40000); // <-- timeout="" occurs="" during="" this="">-->
task. Stop();
}I forgot to put the SampleTimingType:
task. Timing.SampleTimingType = SampleTimingType.SampleClock;
-
to access the eprint from iphone problems
I have an officejet 6500 has more. I can access the printer from my iphone at home on my home network fine. When I'm away from home I can not access the printer through the eprint application. I connected to the eprint and activated / adding the printer.
Any suggestion?
Hello
Seems that there is communication developed here.
The iphone uses AIRPRINT and EPRINT not. For airprint works, you two units must be on the same network.
However, you can use Eprint from your Iphone by sending everything you want to print to the adres e-mail provided by the printer when you set up Eprint.
-
Hello
I have photoshop CS5 installed on two computers. One of them broke, so I was hoping to install it on my new laptop. However, because the old PC is now broken I can not be disabling this function. In addition, I don't know what was the activation code (I think I've received by e-mail, but the account is now closed due to piracy). Can anyone help with this? I may be able to retrieve my other PC activation code, but don't know how. However that doesn't solve the question of him be already enabled on both computers.
Thanks in advance for your help.
Best wishes
Matt
Check your Adobe account online: https://www.adobe.com/account.html
If you have registered your product then the serial number can be found in the section Plans and products.
See also: find your serial number
Another option would be to try to use a key research tool...
If it's a Windows machine, and then try running Belarc Advisor
http://www.Belarc.com/free_download.html
For a Mac, you can try:
https://Mac-product-key-Finder.com/
Until you have the facility disabled, you can contact the Adobe Support via chat and ask them to reset your activations. You will need the serial number for this and you get no off-topic or they may send you in the forums without help.
Chat support - the link below click the still need help? the option in the blue box below and choose the option to chat...
Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache. If it fails to connect, try to use another browser.
Serial number and activation support (non - CC) chat
-
After the HARD drive wipe, I used a Windows 7 disc I had to hang out with the code on my box. It's the same model, so the 'real' (or other) policy should cover me. What should I do?
The license corresponds to the edition you have installed? If they don't, then it will not be activated.
Have you tried to restart by phone?
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-us -
Place the .txt document, causing problems of packaging
I place a .txt file into a publication in InDesign. I have the text set to left justification and no hyphenation. Text is not correctly flowing with broken line breaks. For example, the first line MI to the next line breaks. I am able to type in MI immediately after Detroit but when I delete the e on the second line, the newly typed MI is broken in the second line again. If the text block is set on a complete justification, then disappear irregular breaks and MID is on line 1 with Detroit.
A few things to note:
-J' checked for the characters hiding and found there is only 1 space between the words where irregular Break occur
-There is no withdrawal on text frames
-J' use paragraph styles for formatting text
-When you place the text, the character set is Unicode UTF8
I don't know if it's a problem of text frame or a matter of investment. Suggestions?
It's probably the paragraph composer deciding the balance of the line is better with the odd break. You can force the words stay together by using either an or No Break, that are applicable to non-breaking space.
-
Running same virtual machine in the Lion and the snow leopard cause problems?
I just loaded a new hard drive with Mac OS X Lion to run some programs that run only on Lion. My Mac serves mainly through Snow Leopard installed on the main hard drive. I can boot to an OS or the other. Two questions:
(1) can I have my a copy of VMware Fusion 4.1.1 installed on the disk of Lion and leopard snow by car? Of course, I can only use one at a time since I can start only upward in an OS.
(2) if I do the above and open my Windows XP VM on Lion, are all changes to the virtual machine that would make it unusable under Snow Leopard (or vice versa)?
Bill
Make sure that your VM is off - not suspended--before the host.
Then it should work without problem -
using same taskflow 2 times on the same jspx cause problem.
Hello
We have a taskflow called TF1.
I dropped this TF1 on a Test.jspx page, which uses dynamic tab Oracle Shell model.
When I click on a button in Test.jspx, TF1 appeal with launch of TabContext event so that TF1 will open in a new tab.
Requirement is, when I click the button again to call TF1, it should open in a new tab with the same workflow has started with a new txn.
But it is throwing
Caused by: oracle.adf.controller.activity.ActivityLogicException: ADFC-00020: workflow ' / WEB-INF/flows/homeTF.xml#homeTF' requires a new transaction, but surgery is already open on the chassis.
TaskFlow has assigned to the Transaction property * "Always start new Transaction" * (this property of the transaction is scheduled)
Could someone suggest how can I get rid of this error by opening the same workflow in another tab?
Thank you
VinodHi Vinod,
Did you try to uncheck the "share data with the workflow controls the appellant?
Kind regards
Pino
-
drop the triggers in the SQL code causes not properly completed order.
running the following command in SQL developer, giving the following error message
ORA-00933: SQL not correctly completed command.
What I am doing wrong
Published by: Mo2 on April 16, 2010 12:21Begin For I In (Select Trigger_Name, Owner From Dba_Triggers Where Trigger_Name Like 'ABC%' And Owner = 'my_schema') Loop Execute Immediate 'DROP TRIGGER '||I.Owner||'.'||I.Trigger_Name; End Loop; End;
Published by: Mo2 on April 16, 2010 12:24MO2 wrote:
Yes he has.
is an example of the names BIN$ + i6ls2WnR/Svz0wA5LSG8A == $0In fact these triggers created by the database after I have remove the tables. is there a way to avoid their creation?
drop trigger BIN$+i6ls2WnR/Svz0wA5LSG8A==$0; drop trigger BIN$+i6ls2WnR/Svz0wA5LSG8A==$0 * ERROR at line 1: ORA-00933: SQL command not properly ended
Yes, oracle complained about it during a fall.
These objects will be created if you recyclebin on.You can either disable your recyclebin or you can purge these items in recyclebin after a fall. Make sure that you require this function or objects in the future.
Concerning
Anurag -
I was trying to set up a homegroup on my main computer, but on the second computer, I never had the opportunity to join the homegroup. I'm sure that I have everything set up properly, but I can't get the second computer to join.
I have a switch that my internet runs and a cat cable goes to each computer. Each computer can access the internet without any problem, but none appear in other network list. They have the same name of working group, I just can't understand it. I use Windows Firewall.
Any help would be greatly appreciated.
Maybe this can help.----------------------
Win7 when configured on the peer-to-peer network has three types of configurations of sharing.
Group residential network = only works between Win 7 computers. This type of configuration, it is very easy to entry level users to start sharing network.
Working network = fundamentally similar to previous methods of sharing that allow you to control what, how and to whom the records would be shared with.
Public share = network Public (as Internet Café) in order to reduce security risks.For the best newspaper of the results of each computer screen system and together all computers on a network of the same name, while each computer has its own unique name.
http://www.ezlan.NET/Win7/net_name.jpg
Make sure that the software firewall on each computer allows free local traffic. If you use 3rd party Firewall on, Vista/XP Firewall Native should be disabled, and the active firewall has adjusted to your network numbers IP on what is sometimes called the Zone of confidence (see part 3 firewall instructions
General example, http://www.ezlan.net/faq.html#trusted
Please note that some 3rd party software firewall continue to block the same aspects it traffic Local, they are turned Off (disabled). If possible, configure the firewall correctly or completely uninstall to allow a clean flow of local network traffic. If the 3rd party software is uninstalled, or disables, make sure Windows native firewall is active .------------------------------
If your network consists only of Win 7 and you want a simple network, use it.
http://Windows.Microsoft.com/en-us/Windows7/help/videos/sharing-files-with-HomeGroup
After you have configured the homegroup, scroll to the bottom for the Permission/security section.
-----------------------------
Win 7 networking with other version of Windows as a work network.
In the center of the network, by clicking on the type of network opens the window to the right.
Choose your network type. Note the check box at the bottom and check/uncheck depending on your needs.
http://www.ezlan.NET/Win7/net_type.jpg
Win 7 network sharing folder specific work - http://www.onecomputerguy.com/windows7/windows7_sharing.htm
Vista file and printer sharing - http://technet.microsoft.com/en-us/library/bb727037.aspx
Windows XP file sharing - http://support.microsoft.com/default.aspx?scid=kb;en-us;304040
Sharing printer XP - http://www.microsoft.com/windowsxp/using/networking/expert/honeycutt_july2.mspxSetting Windows native firewall for sharing XP - http://support.microsoft.com/kb/875357
Windows XP Patch for sharing with Vista (no need for XP - SP3) - http://support.microsoft.com/kb/922120When you have finished the configuration of the system, it is recommended to restart everything the router and all computers involved.
-------------
If you have authorization and security problems, check the following settings.
Point to a folder that wants to share do right click and choose Properties.
In the properties
Click on the Security tab shown in the bellows of the photo on the right) and verify that users and their permissions (see photo below Centre and left) are configured correctly. Then do the same for the authorization tab.
This screen shot is to Win 7, Vista menus are similar.
http://www.ezlan.NET/Win7/permission-security.jpg
The Security Panel and the authorization Panel, you need to highlight each user/group and consider that the authorization controls are verified correctly.
When everything is OK, restart the network (router and computer).
* Note . The groups and users listed in the screen-shoot are just an example. Your list will focus on how your system is configured.
* Note . There must be specific users. All means all users who already have an account now as users. This does not mean everyone who feel they would like to connect.
---------------------
*** Note. Some of the processes described above are made sake not for Windows, but to compensate for different routers and how their firmware works and stores information about computers that are networked.
Jack-MVP Windows Networking. WWW.EZLAN.NET
-
access to the weblogic Server console problem
Hi all
We have a problem of access to the weblogic Server console page.
We have fresh installed the Enterprise Manager Cloud control 12 c and we can access the MS pages without problems.
When trying to connect to the weblogic Server (https:// < our_server >: 7101/console) with Firefox, IE11 or if the page is loading and loading without showing the login page.
But when trying to connect to this address with a place (elinks) browser on the unix machine we'll see the first page immediately.
Any ideas?
Thank you
Michael
Hi all
We solved the problem in another way: we opened the ports http access.
Because issues were security settings in Internet Explorer.
Thank you
Michael
Maybe you are looking for
-
I just changed my internet provider and they suggested that I set up a gmail email address so that I can keep it just in case I have change of supplier in the future. I created a gmail account that I want to see in thunderbird, rather than having to
-
Satellite M40-265 LCD displays the image complete but crushed
Satellite M40-265 LCD displays the image complete but crushed on two-thirds of the screen When my Satellite M40 - 265 ATIMobility Radeon X 700 and omega 3.8442, Windows Xp drivers, Sp3 boots by setting the LCD + analog RGB, initially only displays on
-
Original title: Windows Sonic Activation Module. Whenever I start my PC, I get a Windows program that is trying to install what is called a sound Module of Activation. He asks I insert the disk and the only way I can get to go is repeatable keep hitt
-
Hi, I have jst my OS to upgrade to windows 7 Professional and my job isn't sidebar. Please, someone should help with a reliable link to download. Thank you. My model is HP G62
-
air 2014 iPad: iPad wifi configuration
Please could someone help me to set up my new iPad to print 4500 from Hp envy? iPad won't let me download the software to set up wireless printing - error message. Also, I have no idea what iPad OS use? Thank you!