I Lopes de Sarria

Greenhorn
+ Follow
since Oct 30, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by I Lopes de Sarria

Thanks, I got past this issue eventually and it wasn't anything to do with the encoding setup, rather that the response was being converted to string in the Java component. Changing this to stream seemed to do the trick,

Thank you
11 years ago
Hi,

I am using a webservice proxy to get a pdf from a website on IIS which gets a report from MSSQL Reporting Services.

The webservice proxy is hosted on Mulesoft which runs on Tomcat.

When the webservice is called directly my browser returns and opens a perfect PDF.

But when it runs via the proxy which uses java code to return the http response, the pdf is rendered as blank. if i capture the response though I see that there is data in the pdf, and the readable metatdata at the top and bottom of the file are the same, but where the glyph section starts the characters differ from the original correct PDF. The metadata ontop of both the original PDF and the wrong one state that the file has the same number of characters.

When i try to open the proxied document in Adobe Reader 10.1.3 (Mac) i get this error:

Cannot extract the embedded font 'ABCDEE+Tahoma'. Some characters may not display or print correctly.

I'm guessing when the PDF went via Mulesoft's Tomcat server, the Tahoma characters were not processed correctly? But this is where it gets sketchy, so i'm hoping someone who's had similar experience can help me out with this. I don't have control over the Mulesoft server so i ideally need a workaround at the receiving point if at all possible.

I have even tried to edit this raw data and remove the ABCDEE+ from ABCDEE+Tahoma, and also tried replacing ABCDEE+Tahoma with Helvetica, but to no avail

Some of the metadata from the pdf file related to the font:

<< /Type /Font /Subtype /TrueType /FirstChar 0 /LastChar 255 /Widths [ 500 1000 500 500 500 500 500 500 500 500 259 500 500 259 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 312 332 401 727 545 976 673 210 382 382 545 727 302 363 302 382 545 545 545 545 545 545 545 545 545 545 353 353 727 727 727 473 909 599 589 600 678 561 521 667 675 373 416 587 497 770 667 707 551 707 620 557 583 655 596 901 580 576 559 382 382 382 727 545 545 524 552 461 552 526 318 552 557 228 281 498 228 839 557 542 552 552 360 446 334 557 498 742 495 498 444 480 382 480 727 500 545 500 210 545 397 817 545 545 545 1390 557 382 976 500 559 500 500 210 210 401 401 454 545 909 545 875 446 382 908 500 444 576 312 332 545 545 545 545 382 545 545 928 493 573 727 363 928 545 470 727 493 493 545 567 545 353 545 493 493 573 1000 1000 1000 473 599 599 599 599 599 599 913 600 561 561 561 561 373 373 373 373 698 667 707 707 707 707 707 727 707 655 655 655 655 576 565 548 524 524 524 524 524 524 879 461 526 526 526 526 228 228 228 228 545 557 542 542 542 542 542 727 542 557 557 557 557 498 552 498 ] /Encoding /WinAnsiEncoding /BaseFont /ABCDEE+Tahoma /FontDescriptor 12 0 R >>
endobj
12 0 obj
<< /Type /FontDescriptor /Ascent 765 /CapHeight 0 /Descent -207 /Flags 32 /FontBBox [ -600 -216 1516 1034 ] /FontName /ABCDEE+Tahoma /ItalicAngle 0 /StemV 0 /FontFile2 10 0 R >>
endobj
6 0 obj
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>
endobj
7 0 obj
<< /Type /Font /Subtype /TrueType /FirstChar 0 /LastChar 255 /Widths [ 500 1000 490 490 490 490 490 490 490 500 260 490 490 260 490 490 490 490 490 490 490 490 490 490 490 490 490 490 490 490 490 490 292 342 489 818 636 1198 781 275 454 454 636 818 312 431 312 577 636 636 636 636 636 636 636 636 636 636 363 363 818 818 818 566 919 684 686 667 757 615 581 745 764 483 500 696 572 893 770 770 657 770 726 633 612 738 674 1027 684 670 622 454 577 454 818 636 545 598 631 527 629 593 382 629 640 301 362 602 301 953 640 617 629 629 433 514 415 640 578 889 604 575 525 623 636 623 818 500 636 500 275 636 489 1000 636 636 545 1675 633 424 1036 500 622 500 500 275 275 489 489 636 636 909 545 860 514 424 985 500 525 670 292 342 636 636 636 636 636 636 545 928 507 703 818 431 928 636 519 818 539 539 545 650 636 363 545 539 539 703 1127 1127 1127 566 684 684 684 684 684 684 988 667 615 615 615 615 483 483 483 483 773 770 770 770 770 770 770 818 770 738 738 738 738 670 659 645 598 598 598 598 598 598 937 527 593 593 593 593 301 301 301 301 619 640 617 617 617 617 617 818 617 640 640 640 640 575 629 575 ] /Encoding /WinAnsiEncoding /BaseFont /ABCDEE+Tahoma,Bold /FontDescriptor 13 0 R >>
endobj
13 0 obj
<< /Type /FontDescriptor /Ascent 765 /CapHeight 0 /Descent -207 /Flags 32 /FontBBox [ -698 -216 1625 1065 ] /FontName /ABCDEE+Tahoma,Bold /ItalicAngle 0 /StemV 0 /FontFile2 11 0 R >>

Thank you!!
11 years ago
Resolved. In the client to test the call, i needed to add a header: Content-Type: application/xml and if receiving XML back then an additional Content-Type of "Accept"
I have a basic CRUD webservice. The lookups (@GET methods) work but the create/edit/deletes are giving the Unsupported Media Type error ie:

SEVERE [org.jboss.resteasy.core.SynchronousDispatcher] (http--127.0.0.1-8080-3) Failed executing POST /Funds/create: org.jboss.resteasy.spi.UnsupportedMediaTypeException: Cannot consume content type
at org.jboss.resteasy.core.registry.Segment.match(Segment.java:117) [resteasy-jaxrs-2.3.2.Final.jar:]

I have tried different method signatures to no avail:


and the class signature for the Fund entity is:

...

Can anyone see anything obviously wrong with this?
Many thanks
I agree, but unfortunately this is not my api but one of Google's, that I am merely using. There are already 6 versions since the beginning of last year , and i was really hoping that there would be a way around this

Thanks for your input
12 years ago
Hi there,

Is there a way to create an alias or placeholder name for package names in classes? This is my use case: I am using an API that has the year and month of the latest version in the package name eg firstpartofpackagename.201203 for example. Now every time a new API is released i can't simply change the jar file that my project references and re-deploy the code, but i have to do a find and replace on all my classes to use the new version of all these packages in all my imports, and recompile the code.

Is there a way to create a configurable placeholder/alias for the updated packages that i can use in the classes?


Many thanks
12 years ago
Does anyone have any recommendations for a (preferably open source) FTPS library i can use?

Thank you
Hi there,


Is there an official book or study material for this cert? I have seen this book http://www.amazon.com/Certified-Developer-Services-310-220-Certification/dp/0072259523, can anyone recommend it?

I've also just downloaded the study guide from Ivan Krizsans site ( thank you) . Would this guide alone be enough or better for studying for this exam?

I'm trying to determine if i can get away with not doing the oracle 1 week training that they offer for this cert.

Many thanks
iva
Ok great, now I know how much time I will need to commit for.

Thanks again, glad I stumbled upon this forum
Fantastic thank you. The 4 to 5 months that you spent on it, was that a few hours every day? Weekends?
Wow the FAQs page is really comprehensive, thanks Roel.
I'll check it out
Hi there

Hope you guys can help answer some of my questions. I am thinking of taking this certification, having done the SCJP years ago and am just wondering what commitment is involved.

Is there any useful or recommended training material for this certification? Or is it straight jump into the project and code?

Also, to get an idea, how long does the project take to do for the average person working on it after hours?

Are the specifications quite exact?



Many thanks
iva